aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-06-11 11:57:28 -0400
committerGitHub <noreply@github.com>2016-06-11 11:57:28 -0400
commitcccc27483114dc9782cc76aa6ad4ce7a23891794 (patch)
tree4a541169a784dd2f094211a4836eaa5b94bfb135 /MediaBrowser.ServerApplication
parentea3b099f7f57f5a5bcc824e95cbb375e2f561050 (diff)
parentdc5c15c60b598a58c924daa350dfaf9f6b7d1c17 (diff)
Merge pull request #1837 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.ServerApplication')
-rw-r--r--MediaBrowser.ServerApplication/Native/DbConnector.cs13
1 files changed, 2 insertions, 11 deletions
diff --git a/MediaBrowser.ServerApplication/Native/DbConnector.cs b/MediaBrowser.ServerApplication/Native/DbConnector.cs
index 6001ac3c0..9aaa96a80 100644
--- a/MediaBrowser.ServerApplication/Native/DbConnector.cs
+++ b/MediaBrowser.ServerApplication/Native/DbConnector.cs
@@ -16,18 +16,9 @@ namespace MediaBrowser.ServerApplication.Native
_logger = logger;
}
- public async Task<IDbConnection> Connect(string dbPath, int? cacheSize = null)
+ public Task<IDbConnection> Connect(string dbPath, bool isReadOnly, bool enablePooling = false, int? cacheSize = null)
{
- try
- {
- return await SqliteExtensions.ConnectToDb(dbPath, cacheSize, _logger).ConfigureAwait(false);
- }
- catch (Exception ex)
- {
- _logger.ErrorException("Error opening database {0}", ex, dbPath);
-
- throw;
- }
+ return SqliteExtensions.ConnectToDb(dbPath, isReadOnly, enablePooling, cacheSize, _logger);
}
}
} \ No newline at end of file