mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
Wrap DbTransaction too
This commit is contained in:
parent
e176ccbab5
commit
37b99f9521
6 changed files with 89 additions and 36 deletions
13
PluralKit.Core/Database/Wrappers/IPKTransaction.cs
Normal file
13
PluralKit.Core/Database/Wrappers/IPKTransaction.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
public interface IPKTransaction: IDbTransaction, IAsyncDisposable
|
||||
{
|
||||
public Task CommitAsync(CancellationToken ct = default);
|
||||
public Task RollbackAsync(CancellationToken ct = default);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue