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.
Sonarr/src/NzbDrone.Core/Datastore/MainDatabase.cs

34 lines
646 B

using System;
using System.Data;
namespace NzbDrone.Core.Datastore
{
public interface IMainDatabase : IDatabase
{
}
public class MainDatabase : IMainDatabase
{
private readonly IDatabase _database;
public MainDatabase(IDatabase database)
{
_database = database;
}
public IDbConnection OpenConnection()
{
return _database.OpenConnection();
}
public Version Version => _database.Version;
public int Migration => _database.Migration;
public void Vacuum()
{
_database.Vacuum();
}
}
}