Module diesel::connection
source · Expand description
Types related to database connections
Structs§
- An implementation of
TransactionManager
which can be used for backends which use ANSI standard syntax for savepoints such as SQLite and PostgreSQL. - The default loading mode provided by a
Connection
. - InTransaction
Status Non- 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 - Valid
Transaction Manager Status Non- i-implement-a-third-party-backend-and-opt-into-breaking-changes
Valid transaction status for the manager. Can return the current transaction depth
Enums§
- This enum describes possible connection events that can be handled by an
Instrumentation
implementation - Represents a change to apply to the depth of a transaction
- Transaction
Manager Status Non- i-implement-a-third-party-backend-and-opt-into-breaking-changes
Status of the transaction manager
Traits§
- A variant of the
Connection
trait that is usable with dynamic dispatch - A connection to a database
- A helper trait for opaque query representations which allows to get a
Display
andDebug
representation of the underlying type without exposing type specific details - A type that provides an connection
Instrumentation
- The specific part of a
Connection
which actually loads data from the database - Perform simple operations on a backend.
- Manages the internal transaction state for a connection.
- With
Metadata Lookup Non- i-implement-a-third-party-backend-and-opt-into-breaking-changes
Describes a connection with an underlyingcrate::sql_types::TypeMetadata::MetadataLookup
Functions§
- Get an instance of the default
Instrumentation
- Set a custom constructor for the default
Instrumentation
used by new connections