|
|
@ -29,7 +29,7 @@ namespace NzbDrone.Core.Datastore
|
|
|
|
connectionBuilder.DataSource = dbPath;
|
|
|
|
connectionBuilder.DataSource = dbPath;
|
|
|
|
connectionBuilder.CacheSize = (int)-10.Megabytes();
|
|
|
|
connectionBuilder.CacheSize = (int)-10.Megabytes();
|
|
|
|
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
|
|
|
|
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
|
|
|
|
connectionBuilder.JournalMode = SQLiteJournalModeEnum.Wal;
|
|
|
|
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
|
|
|
connectionBuilder.Pooling = true;
|
|
|
|
connectionBuilder.Pooling = true;
|
|
|
|
|
|
|
|
|
|
|
|
return connectionBuilder.ConnectionString;
|
|
|
|
return connectionBuilder.ConnectionString;
|
|
|
|