Skip to main content

Crate saddle_db

Crate saddle_db 

Source
Expand description

Saddle-managed MySQL/MariaDB access and single-source transactions.

Applications receive this capability from Saddle. They do not create a pool, acquire a connection, or manage a sqlx transaction directly.

Structs§

CallContext
The minimum identity propagated through Service, DB and Observability in V1.
Database
The process-wide managed database capability.
DatabaseConfig
Configuration for the single V1 MySQL/MariaDB data source.
DbRow
A database row that exposes stable typed access without exposing sqlx.
SaddleError
An error safe to propagate across Saddle component boundaries.
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_INBOUND_PACKET_BYTES
Maximum MySQL protocol packet accepted by the V1 deployment contract.
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§

Result
TransactionFuture