Expand description
Database operations dispatched to drivers.
An Operation is the unit of work sent to Connection::exec.
The query engine compiles user queries into one or more Operation values.
SQL drivers handle QuerySql, RawSql, and Insert; key-value
drivers handle GetByKey, QueryPk, DeleteByKey,
FindPkByIndex, UpdateByKey, and (when
Capability::scan is true) Scan. Both
driver types handle Transaction operations.
Structs§
- Delete
ByKey - Deletes one or more records from a table by primary key.
- Find
PkBy Index - Looks up primary keys through a secondary index.
- GetBy
Key - Fetches one or more records by exact primary key match.
- Insert
- Inserts one or more records into a table.
- QueryPk
- Queries a table by primary key (or secondary index) with optional filtering, ordering, and pagination.
- Query
Sql - Executes a SQL statement against the database.
- RawSql
- Executes user-authored SQL against a SQL-capable driver.
- Scan
- A full-table scan operation.
- Typed
Value - A bind parameter value paired with its database storage type.
- Update
ByKey - Updates one or more records identified by primary key.
Enums§
- Isolation
Level - SQL transaction isolation levels.
- Operation
- A single database operation to be executed by a driver.
- Pagination
- Describes how results from a paged operation should be bounded.
- RawSql
Ret - Return mode for a
RawSqloperation. - Transaction
- A transaction lifecycle operation.
- Transaction
Mode - How a transaction acquires write locks.