refactor: add SqlKata for SQL generation, move connection handling into ModelRepository

This commit is contained in:
spiral 2021-09-29 21:51:38 -04:00
parent 6251d29abb
commit 92e45a07ff
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
60 changed files with 806 additions and 640 deletions

View file

@ -5,10 +5,11 @@ namespace PluralKit.Core
public partial class ModelRepository
{
private readonly ILogger _logger;
public ModelRepository(ILogger logger)
private readonly IDatabase _db;
public ModelRepository(ILogger logger, IDatabase db)
{
_logger = logger.ForContext<ModelRepository>();
_db = db;
}
}
}