Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created June 27, 2014 17:13
Show Gist options
  • Save timheuer/41d955408e12f56a1f5d to your computer and use it in GitHub Desktop.
Save timheuer/41d955408e12f56a1f5d to your computer and use it in GitHub Desktop.
SQlite Memory Store
var dbPath = Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, "somedb.db");
using (var db = new SQLite.SQLiteConnection(dbPath))
{
// set this to memory instead of directory
db.Execute("PRAGMA temp_store = memory;");
// do your other stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment