diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-26 17:20:26 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-26 17:20:26 -0400 |
| commit | 2d8152f36ad8ecc5674cfb25ad328d3e671a22de (patch) | |
| tree | 3adc6e475d7375141af11acb80714114a5fab931 /MediaBrowser.ServerApplication/Native | |
| parent | 2d0cc66e6bea278b7be5078130f55fc05ce756ce (diff) | |
mono progress - able to start app
Diffstat (limited to 'MediaBrowser.ServerApplication/Native')
| -rw-r--r-- | MediaBrowser.ServerApplication/Native/Sqlite.cs | 36 |
1 files changed, 0 insertions, 36 deletions
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 -{ - /// <summary> - /// Class Sqlite - /// </summary> - public static class Sqlite - { - /// <summary> - /// Connects to db. - /// </summary> - /// <param name="dbPath">The db path.</param> - /// <returns>Task{IDbConnection}.</returns> - /// <exception cref="System.ArgumentNullException">dbPath</exception> - public static async Task<IDbConnection> 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; - } - } -} |
