Module transaction

Source
Expand description

SQL transactions

A transaction encapsulates all the mutable functionality provided by the SQL database, and allows for mutable operations to be combined into complex updates that affect the main database atomically. A transaction also provides all the immutable query functionality of a regular database connection, so that the updated state of the database can be queried midway through a transaction.

Macros§

impl_tuple_params 🔒

Structs§

PoolMetrics 🔒
Read
Marker type indicating a transaction with read-only access to the database.
Transaction
An atomic SQL transaction.
TransactionMetricsGuard 🔒
Write
Marker type indicating a transaction with read-write access to the database.

Enums§

CloseType 🔒

Traits§

Executor
A type that contains or can provide a database connection to use for executing queries against the database.
FixedLengthParams
A collection of parameters with a statically known length.
Params
A collection of parameters which can be bound to a SQL query.
TransactionMode
Trait for marker types indicating what type of access a transaction has to the database.

Functions§

build_where_in
query
query_as

Type Aliases§

Query
QueryAs