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 and Insert; key-value drivers handle
GetByKey, QueryPk, DeleteByKey, FindPkByIndex, and
UpdateByKey. 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.
- 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.
- Transaction
- A transaction lifecycle operation.