Path: redb-route/redb.Route.Sql/SqlHeaders.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/SqlHeaders.cs ---- namespace redb.Route.Sql; /// /// Constants for exchange headers set by the SQL component. /// All prefixed with "redbSql." to avoid collisions with other connectors. /// public static class SqlHeaders { /// Common prefix for all SQL component headers. public const string Prefix = "redbSql."; // ── Query metadata ──────────────────────────────────────────────── /// The SQL statement that was executed. public const string Query = "redbSql.query"; /// Number of rows affected by INSERT/UPDATE/DELETE. public const string UpdateCount = "redbSql.updateCount"; /// Number of rows returned by SELECT. public const string RowCount = "redbSql.rowCount"; /// Name of the DataSource used for the query. public const string DataSource = "redbSql.dataSource"; /// Output type used for result mapping. public const string OutputType = "redbSql.outputType"; // ── INSERT keys ─────────────────────────────────────────────────── /// /// Rows the statements of a batch returned (INSERT … RETURNING, OUTPUT inserted.*), in item order, when /// outputType reads rows: a List<Dictionary<string, object?>>, or List<T> with /// outputClass (Apache Camel CamelSqlGeneratedKeyRows). The body is left alone. /// public const string GeneratedKeys = "redbSql.generatedKeys"; /// Number of rows in (Apache Camel CamelSqlGeneratedKeysRowCount). public const string GeneratedKeysRowCount = "redbSql.generatedKeysRowCount"; // ── Error ───────────────────────────────────────────────────────── /// Error message when the query failed (if not thrown). public const string Error = "redbSql.error"; // ── Transaction ─────────────────────────────────────────────────── /// Transaction identifier when transacted=true. public const string TransactionId = "redbSql.transactionId"; // ── Stored procedure ────────────────────────────────────────────── /// Name of the stored procedure that was called. public const string StoredProcedure = "redbSql.storedProcedure"; // ── Performance ─────────────────────────────────────────────────── /// Query execution time in milliseconds. public const string ExecutionTime = "redbSql.executionTime"; // ── Batch ───────────────────────────────────────────────────────── /// /// Batch strategy that ran: None (empty batch source, nothing executed), DbBatch (break on the first error, /// chunks of batchSize statements per round trip), Commands (break on the first error, the connection has no /// DbBatch) or Savepoints (continue past errors). The driver's capability decides, not an option. /// public const string BatchStrategy = "redbSql.batchStrategy"; /// Round trips of a DbBatch batch ( DbBatch); absent for other strategies. public const string BatchChunkCount = "redbSql.batchChunkCount"; /// Batch items written successfully; in batch mode carries the same value. public const string BatchItemCount = "redbSql.batchItemCount"; /// /// Zero-based index of the item that ended a batch. The thrown provider exception carries the same value in its /// under this key. /// public const string BatchFailedIndex = "redbSql.batchFailedIndex"; /// /// Items that failed and were undone to their savepoint in a batch that continues past errors /// (breakBatchOnError=false): an IReadOnlyList<SqlBatchItemError>. /// public const string BatchErrors = "redbSql.batchErrors"; }