Reputation: 1834
I am using an in-memory SQLite database to store part of a configuration for use in copy/paste. I need to be able to grab the memory to stream it to the clipboard and read it back in. Does anyone know how to grab the memory?
Upvotes: 1
Views: 113
Reputation: 180020
SQLite has no mechanism to grab the actual memory of an in-memory database.
You could use the backup API to copy the database to a temporary file, but then it might have been a better idea to create a file-based database in the first place.
Alternatively, it would be possible to write your own VFS that stores the data in RAM instead of in a file. However, this might be more effort than you want to spend.
Upvotes: 1