2021-08-27 15:03:47 +00:00
|
|
|
using System;
|
2020-06-13 16:31:20 +00:00
|
|
|
using System.Data;
|
|
|
|
using System.Data.Common;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace PluralKit.Core
|
|
|
|
{
|
|
|
|
public interface IPKCommand: IDbCommand, IAsyncDisposable
|
|
|
|
{
|
|
|
|
public Task PrepareAsync(CancellationToken ct = default);
|
|
|
|
public Task<int> ExecuteNonQueryAsync(CancellationToken ct = default);
|
2021-05-07 08:56:15 +00:00
|
|
|
public Task<object?> ExecuteScalarAsync(CancellationToken ct = default);
|
2020-06-13 16:31:20 +00:00
|
|
|
public Task<DbDataReader> ExecuteReaderAsync(CancellationToken ct = default);
|
|
|
|
public Task<DbDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken ct = default);
|
|
|
|
}
|
|
|
|
}
|