Extract Database to interface

This commit is contained in:
Ske
2020-06-13 19:36:43 +02:00
parent 70df9cd893
commit 90ac186183
27 changed files with 76 additions and 54 deletions

View File

@@ -15,9 +15,9 @@ using Serilog;
namespace PluralKit.Core
{
public class PKCommand: DbCommand, IPKCommand
internal class PKCommand: DbCommand, IPKCommand
{
public NpgsqlCommand Inner { get; }
private NpgsqlCommand Inner { get; }
private readonly PKConnection _ourConnection;
private readonly ILogger _logger;

View File

@@ -15,7 +15,7 @@ using Serilog;
namespace PluralKit.Core
{
public class PKConnection: DbConnection, IPKConnection
internal class PKConnection: DbConnection, IPKConnection
{
public NpgsqlConnection Inner { get; }
public Guid ConnectionId { get; }

View File

@@ -8,7 +8,7 @@ using Npgsql;
namespace PluralKit.Core
{
public class PKTransaction: DbTransaction, IPKTransaction
internal class PKTransaction: DbTransaction, IPKTransaction
{
public NpgsqlTransaction Inner { get; }