Path: redb-route/redb.Route.Sql/SqlEnums.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/SqlEnums.cs ---- namespace redb.Route.Sql; /// /// Operating mode for the SQL endpoint. /// Determines whether the endpoint acts as a polling consumer or a producer. /// public enum SqlMode { /// Polling consumer: periodically executes SELECT and emits an Exchange per row. Poll, /// Producer: executes INSERT/UPDATE/DELETE/SELECT statements. Execute, /// Producer: calls a stored procedure or function with IN/OUT/INOUT parameters. Procedure } /// /// Determines how SQL query results are mapped to the Exchange body. /// public enum SqlOutputType { /// /// Auto-detect based on the SQL statement: SELECT/WITH → , /// INSERT/UPDATE/DELETE/MERGE → . /// Auto, /// All rows → List<Dictionary<string, object>>. SelectList, /// First row only → Dictionary<string, object> (or mapped POCO). SelectOne, /// Streaming: IAsyncEnumerable<Dictionary<string, object>>. StreamList, /// First column of first row (scalar value). Scalar, /// No result body. Affected rows count goes to header redbSql.updateCount. None } /// /// How a poll consumer hands the polled rows to the route. /// public enum SqlPollDelivery { /// An exchange per row; onSuccess / onFailure run for each row. PerRow, /// /// One exchange with every polled row (Apache Camel useIterator=false): a list, or with /// the open stream; onSuccess / onFailure run once for it. /// List } /// /// Direction of a stored procedure parameter. /// public enum SqlParamDirection { /// Input-only parameter. In, /// Output-only parameter (value set by the procedure). Out, /// Bi-directional parameter (input and output). InOut } /// /// How a :#name placeholder is written in the statement the connector sends to the provider. /// public enum SqlPlaceholderStyle { /// @name, one parameter per name: Npgsql, SqlClient, Microsoft.Data.Sqlite, MySqlConnector, Firebird. At, /// :name, one parameter per occurrence, so binding by name and by position both work: Oracle (ODP.NET). Colon, /// ?, one parameter per occurrence, in order: ODBC and OleDb providers. Question }