diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-11 11:56:15 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-11 11:56:15 -0400 |
| commit | dc5c15c60b598a58c924daa350dfaf9f6b7d1c17 (patch) | |
| tree | c643c0f4604ed939c1261c2016f0a9be121db8d3 /MediaBrowser.ServerApplication/Native/DbConnector.cs | |
| parent | 4c7f292ba884c16b9e95eb319f3664469189d22c (diff) | |
update elements
Diffstat (limited to 'MediaBrowser.ServerApplication/Native/DbConnector.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/Native/DbConnector.cs | 13 |
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 |
