mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
28 lines
597 B
C#
28 lines
597 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
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"));
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|