SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

How to load db from memory?

Open bitnick10 opened this issue 4 years ago • 2 comments

Hey guys.Is there a way to load db from memory?

bitnick10 avatar Mar 23 '21 11:03 bitnick10

The best approach is probably to use the Backup to load a db from a file and copy it in a db ":memory:" (eg in Python https://stackoverflow.com/a/53253110)

I should add an example doing exactly that

SRombauts avatar Jul 24 '22 16:07 SRombauts

There's also sqlite3_deserialize since SQLite 3.23.

PMeira avatar Jan 16 '23 00:01 PMeira