Path: redb-route/redb.Route.Sql/Batch/IBatchWriter.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Sql/Batch/IBatchWriter.cs
----
namespace redb.Route.Sql.Batch;
/// Writes the items of one batch inside the connection and transaction the batch processor opened.
internal interface IBatchWriter
{
/// Strategy name reported in the header.
string Strategy { get; }
///
/// Writes the items. The item that ends the batch is reported by throwing with the
/// provider's exception inside; cancellation propagates as is.
///
Task WriteAsync(BatchWriteRequest request, CancellationToken ct);
}