mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
26 lines
525 B
C#
26 lines
525 B
C#
|
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"));
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|