Expand description
Types related to database connections
Modules§
- statement_
cache i-implement-a-third-party-backend-and-opt-into-breaking-changes
- Helper types for prepared statement caching
Structs§
- Ansi
Transaction Manager - An implementation of
TransactionManager
which can be used for backends which use ANSI standard syntax for savepoints such as SQLite and PostgreSQL. - Default
Loading Mode - The default loading mode provided by a
Connection
. - DynInstrumentation
i-implement-a-third-party-backend-and-opt-into-breaking-changes
- An optional dyn instrumentation.
- InTransaction
Status i-implement-a-third-party-backend-and-opt-into-breaking-changes
- Various status fields to track the status of a transaction manager with a started transaction
- StrQuery
Helper i-implement-a-third-party-backend-and-opt-into-breaking-changes
- A helper type that allows printing out str slices
- Valid
Transaction Manager Status i-implement-a-third-party-backend-and-opt-into-breaking-changes
- Valid transaction status for the manager. Can return the current transaction depth
Enums§
- Cache
Size - Set cache size for a connection
- Instrumentation
Event - This enum describes possible connection events
that can be handled by an
Instrumentation
implementation - Transaction
Depth Change - Represents a change to apply to the depth of a transaction
- Transaction
Manager Status i-implement-a-third-party-backend-and-opt-into-breaking-changes
- Status of the transaction manager
Traits§
- Boxable
Connection - A variant of the
Connection
trait that is usable with dynamic dispatch - Connection
- A connection to a database
- Connection
Sealed i-implement-a-third-party-backend-and-opt-into-breaking-changes
- This trait restricts who can implement
Connection
- Debug
Query - A helper trait for opaque query representations
which allows to get a
Display
andDebug
representation of the underlying type without exposing type specific details - Instrumentation
- A type that provides an connection
Instrumentation
- Load
Connection - The specific part of a
Connection
which actually loads data from the database - Multi
Connection Helper i-implement-a-third-party-backend-and-opt-into-breaking-changes
- This trait provides helper methods to convert a database lookup type
to/from an
std::any::Any
reference. This is used internally by the#[derive(MultiConnection)]
implementation - Simple
Connection - Perform simple operations on a backend.
- Transaction
Manager - Manages the internal transaction state for a connection.
- With
Metadata Lookup i-implement-a-third-party-backend-and-opt-into-breaking-changes
- Describes a connection with an underlying
crate::sql_types::TypeMetadata::MetadataLookup
Functions§
- get_
default_ instrumentation - Get an instance of the default
Instrumentation
- set_
default_ instrumentation - Set a custom constructor for the default
Instrumentation
used by new connections