Module diesel::connection

source ·
Expand description

Types related to database connections


  • statement_cachei-implement-a-third-party-backend-and-opt-into-breaking-changes
    Helper types for prepared statement caching


  • 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.
  • InTransactionStatusi-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
  • ValidTransactionManagerStatusi-implement-a-third-party-backend-and-opt-into-breaking-changes
    Valid transaction status for the manager. Can return the current transaction depth



  • A variant of the Connection trait that is usable with dynamic dispatch
  • A connection to a database
  • ConnectionSealedi-implement-a-third-party-backend-and-opt-into-breaking-changes
    This trait restricts who can implement Connection
  • The specific part of a Connection which actually loads data from the database
  • MultiConnectionHelperi-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
  • Perform simple operations on a backend.
  • Manages the internal transaction state for a connection.