Page 1 of 1

In-memory database possible?

Posted: Thu 09 Feb 2012 08:21
by Marc V
I'm looking for a way to use in-memory temp databases. So I don't want it to write to disk.

Is this possible?

Posted: Thu 09 Feb 2012 09:37
by Pinturiccio
Yes, in-memory database is supported by dotConnect for SQLite. To use an in-memory database, set DataSource to :memory:

Code: Select all

SQLiteConnection conn = new SQLiteConnection("DataSource=:memory:");

Posted: Thu 09 Feb 2012 10:56
by Marc V
Aaah, couldn't be simpler :). Thanks.