2020-06-13 18:31:20 +02:00
|
|
|
using System.Data;
|
|
|
|
using System.Data.Common;
|
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
namespace PluralKit.Core;
|
|
|
|
|
|
|
|
public interface IPKCommand: IDbCommand, IAsyncDisposable
|
2020-06-13 18:31:20 +02:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
public Task PrepareAsync(CancellationToken ct = default);
|
|
|
|
public Task<int> ExecuteNonQueryAsync(CancellationToken ct = default);
|
|
|
|
public Task<object?> ExecuteScalarAsync(CancellationToken ct = default);
|
|
|
|
public Task<DbDataReader> ExecuteReaderAsync(CancellationToken ct = default);
|
|
|
|
public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken ct = default);
|
2020-06-13 18:31:20 +02:00
|
|
|
}
|