Path: redb-route/redb.Route.Sql/Batch/BatchOutcome.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/BatchOutcome.cs
----
namespace redb.Route.Sql.Batch;
/// What a batch writer achieved: rows the statements reported, items written, round trips, and items undone to a savepoint.
internal sealed class BatchOutcome
{
/// Sum of the rows affected reported by the provider.
public int RowsAffected { get; set; }
/// Items whose statement succeeded and stays in the batch.
public int ItemsWritten { get; set; }
/// DbBatch round trips; null for strategies that send one statement at a time.
public int? ChunkCount { get; set; }
/// Items that failed and were undone to their savepoint (continue mode only).
public List Errors { get; } = [];
}