Skip to main content

Module db

Module db 

Source
Expand description

Business-facing managed database capability.

Pool construction and shutdown are intentionally not exposed here. The facade creates exactly one underlying pool and injects this capability into Service implementations.

Structs§

Database
Cloneable handle to Saddle’s single process-wide database pool.
DbRow
A database row that exposes stable typed access without exposing sqlx.
Statement
A parameterized SQL statement and its operation name.
Transaction
A single-level managed transaction.
WriteResult
Stable write metadata returned by insert, update and delete operations.

Enums§

DbValue
A scalar parameter accepted by the controlled V1 database API.

Constants§

MAX_FIELD_BYTES
Maximum supported decoded field size. The stricter driver allocation bound is enforced by MAX_INBOUND_PACKET_BYTES during pool startup.
MAX_PARAMETERS
MAX_PARAMETERS_TOTAL_BYTES
MAX_PARAMETER_BYTES
MAX_QUERY_ROWS
MAX_RESULT_BYTES
Maximum decoded payload retained by one multi-row result.
MAX_SQL_BYTES

Type Aliases§

TransactionFuture