From 2d8152f36ad8ecc5674cfb25ad328d3e671a22de Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 26 Sep 2013 17:20:26 -0400 Subject: mono progress - able to start app --- MediaBrowser.ServerApplication/Native/Sqlite.cs | 36 ------------------------- 1 file changed, 36 deletions(-) delete mode 100644 MediaBrowser.ServerApplication/Native/Sqlite.cs (limited to 'MediaBrowser.ServerApplication/Native') diff --git a/MediaBrowser.ServerApplication/Native/Sqlite.cs b/MediaBrowser.ServerApplication/Native/Sqlite.cs deleted file mode 100644 index cc20952d7..000000000 --- a/MediaBrowser.ServerApplication/Native/Sqlite.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Data; -using System.Data.SQLite; -using System.Threading.Tasks; - -namespace MediaBrowser.ServerApplication.Native -{ - /// - /// Class Sqlite - /// - public static class Sqlite - { - /// - /// Connects to db. - /// - /// The db path. - /// Task{IDbConnection}. - /// dbPath - public static async Task OpenDatabase(string dbPath) - { - var connectionstr = new SQLiteConnectionStringBuilder - { - PageSize = 4096, - CacheSize = 4096, - SyncMode = SynchronizationModes.Normal, - DataSource = dbPath, - JournalMode = SQLiteJournalModeEnum.Wal - }; - - var connection = new SQLiteConnection(connectionstr.ConnectionString); - - await connection.OpenAsync().ConfigureAwait(false); - - return connection; - } - } -} -- cgit v1.2.3