Skip to main content

Module db

Module db 

Source
Expand description

The SQL backend abstraction: values, rows, batches, and the Db trait.

Structs§

DbColumnDescription
One column of an introspected table (see DbTableDescriptor).
DbRow
One result row: a positional list of column values.
DbStatementResult
The outcome of a single statement once its batch has committed.
DbTableDescriptor
An existing table’s shape as reported by backend introspection (Db::describe_table). Used by schema reconciliation to compare the live table against the declared schema.
StmtId
Identifies one statement queued into a DbBatch.
ValueBinder
Builds a parameterized statement: each bind_next records a value and returns its placeholder string, so a query builder can splice placeholders into SQL text and hand the collected values to the driver in bind order.

Enums§

DbError
An error from a SQL backend operation.
DbType
A generic SQL storage class, independent of any data protocol.
DbValue
A Db value — used for both parameters and query results.

Traits§

Db
A SQL backend: reads, one-off writes/DDL, and a factory for atomic batches.
DbBatch
An atomic, all-or-nothing unit of writes.