1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 18:42:42 +01:00
Radarr/NzbDrone.Core/Datastore/SqliteProvider.cs

29 lines
597 B
C#
Raw Normal View History

2011-06-05 22:01:28 +02:00
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"));
}
}
}