Created
June 27, 2014 17:13
-
-
Save timheuer/41d955408e12f56a1f5d to your computer and use it in GitHub Desktop.
SQlite Memory Store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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