views:

342

answers:

1

I have a small database with tables containing a small amount of data which I need to copy into memory.

Currently I am using:

insertcommand.CommandText = "SELECT sql FROM sqlite_master WHERE sql NOT NULL;";

To pull all the table schema from the file database, however I'm not really sure how to proceed with creating these tables in the new memory database, and copying all the relevant data across.


In short, how do I copy an SQLite database from file to memory using C# and System.Data.SQLite?

A: 

See Example 1: Loading and Saving In-Memory Databases on the SQLite Online Backup API page.

Doug Currie
That is fairly helpful, however, I am not sure how to use those functions when using the ADO style of System.Data.SQLite
davidb
Further research suggests that these functions are not yet available in System.Data.SQLite, but the developer states that they are "coming soon"
davidb