Module operation

Module operation 

Source
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§

DeleteByKey
Deletes one or more records from a table by primary key.
FindPkByIndex
Looks up primary keys through a secondary index.
GetByKey
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.
QuerySql
Executes a SQL statement against the database.
UpdateByKey
Updates one or more records identified by primary key.

Enums§

IsolationLevel
SQL transaction isolation levels.
Operation
A single database operation to be executed by a driver.
Transaction
A transaction lifecycle operation.