Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created September 10, 2012 23:11
Show Gist options
  • Save timheuer/3694655 to your computer and use it in GitHub Desktop.
Save timheuer/3694655 to your computer and use it in GitHub Desktop.
SQLite Open with Flags
var dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "foo.db");
using (var db = new SQLite.SQLiteConnection(dbpath, SQLite.SQLiteOpenFlags.Create | SQLiteOpenFlags.ReadWrite, true))
{
db.DropTable<Person>();
db.CreateTable<Person>();
db.Insert(new Person() { Fullname = "Tim Heuer" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment