Created
April 12, 2025 18:27
-
-
Save JosiahParry/bca0af1b83602f85acfe96d321a29ab2 to your computer and use it in GitHub Desktop.
Backup a sqlite database using Rhttps://mastodon.social/@gvwilson/114316283939691522
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RSQLite) | |
db_disk <- dbConnect(SQLite(), "/path/to/database.sqlite3") | |
db_mem <- dbConnect(SQLite(), ":memory:") | |
sqliteCopyDatabase(db_disk, db_mem) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment