mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Refactor import/export database code
This commit is contained in:
parent
3d69a00716
commit
39f92309b7
6 changed files with 381 additions and 229 deletions
|
|
@ -155,7 +155,7 @@ namespace PluralKit.Core
|
|||
}
|
||||
}
|
||||
|
||||
public class PerformanceTrackingConnection: IDbConnection
|
||||
public class PerformanceTrackingConnection: IDbConnection, IAsyncDisposable
|
||||
{
|
||||
// Simple delegation of everything.
|
||||
internal NpgsqlConnection _impl;
|
||||
|
|
@ -226,6 +226,7 @@ namespace PluralKit.Core
|
|||
public string Database => _impl.Database;
|
||||
|
||||
public ConnectionState State => _impl.State;
|
||||
public ValueTask DisposeAsync() => _impl.DisposeAsync();
|
||||
}
|
||||
|
||||
public class DbConnectionCountHolder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue