Is it possible to open a SQLiteConnection on a binary stream without first saving it to disk? Surely there's a way to 'trick' the connection into thinking the stream is a file. I mean, internally that's what it's doing anyway, right?
A:
Assuming you're talking about System.Data.SQLite
from http://sqlite.phxsoftware.com/), then you can set the file name on your connection string to :memory:
and it should create an in-memory database.
var connection = new SQLiteConnection("Data source=:memory:");
Travis Gockel
2010-10-05 23:14:11