mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
Extract Database to interface
This commit is contained in:
parent
70df9cd893
commit
90ac186183
27 changed files with 76 additions and 54 deletions
|
|
@ -16,10 +16,10 @@ namespace PluralKit.Core
|
|||
private const string RootPath = "PluralKit.Core.Database"; // "resource path" root for SQL files
|
||||
private const int TargetSchemaVersion = 7;
|
||||
|
||||
private Database _conn;
|
||||
private IDatabase _conn;
|
||||
private ILogger _logger;
|
||||
|
||||
public Schemas(Database conn, ILogger logger)
|
||||
public Schemas(IDatabase conn, ILogger logger)
|
||||
{
|
||||
_conn = conn;
|
||||
_logger = logger.ForContext<Schemas>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue