RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Showing: redb.Route.Sql Show all

redb.Route.Sql

Classes

C ServiceCollectionExtensions Extension methods for registering the SQL transport in a DI container.
C Sql Entry point for the SQL Fluent API. Three methods → three modes.
C SqlBatchItemError A batch item that failed in a batch configured with breakBatchOnError=false: its statement was undon...
C SqlBuilder Fluent builder for SQL endpoint URIs. Thin sugar over .
C SqlComponent SQL component. Scheme: sql.
C SqlConfigurationBuilder Fluent builder for configuring the SQL connector.
C SqlEndpoint SQL endpoint. Creates a consumer (polling) or producer (execute/procedure)
C SqlEndpointOptions Options for the SQL endpoint. Inherits for automatic
C SqlHeaders Constants for exchange headers set by the SQL component.
C SqlNamedQueryRegistry Default named query registry. Thread-safe, case-insensitive name matching.

Interfaces

I ISqlNamedQueryRegistry Registry for named SQL queries. Queries are registered at startup and referenced

Enums

E SqlMode Operating mode for the SQL endpoint.
E SqlOutputType Determines how SQL query results are mapped to the Exchange body.
E SqlParamDirection Direction of a stored procedure parameter.
E SqlPlaceholderStyle How a :#name placeholder is written in the statement the connector sends to the provider.
E SqlPollDelivery How a poll consumer hands the polled rows to the route.

redb.Route.Sql.Connection

Classes

C SqlConnectionFactory Default connection factory. Resolves from the provider
C SqlConnectionLease The connection one sql: step runs on: an open connection, the transaction its commands must be bound...
C SqlConnectionOptions Configuration options for a named data source connection.

Interfaces

I ISqlConnectionFactory Abstraction for creating instances.

redb.Route.Sql.Mapping

Classes

C DictionaryRowMapper Maps a row to Dictionary<string, object?>.
C PocoRowMapper<T> Maps a row to a POCO of type T
C ScalarMapper<T> Maps the first column of the current row to a scalar value.
C SqlRowMappingException A column of a result row cannot become its property (or the scalar type) without loss or guessing: t...

Interfaces

I ISqlRowMapper<T> Maps a row to type T.

redb.Route.Sql.Repositories

Classes

C SqlClaimCheckOptions Configuration options for .
C SqlClaimCheckRepository SQL-backed implementation of .
C SqlIdempotentOptions Configuration for .
C SqlIdempotentRepository Idempotent repository backed by a raw ADO.NET table.