1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00

building connection string using SQLiteConnectionStringBuilder

This commit is contained in:
kay.one 2013-05-22 19:14:30 -07:00
parent e03e2c46d6
commit a37ccf1d94

View file

@ -50,7 +50,13 @@ namespace NzbDrone.Core.Datastore
private string GetConnectionString(string dbPath)
{
return String.Format("Data Source={0};Version=3;", dbPath);
var connectionBuilder = new SQLiteConnectionStringBuilder();
connectionBuilder.DataSource = dbPath;
connectionBuilder.CacheSize = (int)-10.Megabytes();
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
return connectionBuilder.ConnectionString;
}
}
}