You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
525 B
26 lines
525 B
using System;
|
|
using Migrator.Framework;
|
|
using Migrator.Providers.SQLite;
|
|
|
|
namespace NzbDrone.Core.Datastore
|
|
{
|
|
class SqliteProvider
|
|
{
|
|
private readonly ITransformationProvider _dataBase;
|
|
|
|
public SqliteProvider(string connectionString)
|
|
{
|
|
_dataBase = new SQLiteTransformationProvider(new SQLiteDialect(), connectionString);
|
|
}
|
|
|
|
|
|
public int GetPageSize()
|
|
{
|
|
return Convert.ToInt32(_dataBase.ExecuteScalar("PRAGMA cache_size"));
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|