Trait sqlx::Database [−][src]
pub trait Database: 'static + Send + Debug + for<'r> HasValueRef<'r, Database = Self> + for<'q> HasArguments<'q, Database = Self> + for<'q> HasStatement<'q, Database = Self> { type Connection: Connection; type TransactionManager: TransactionManager; type Row: Row; type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>; type Column: Column; type TypeInfo: TypeInfo; type Value: 'static + Value; }
Expand description
A database driver.
This trait encapsulates a complete set of traits that implement a driver for a specific database (e.g., MySQL, PostgreSQL).
Associated Types
type Connection: Connection
type Connection: Connection
The concrete Connection
implementation for this database.
type TransactionManager: TransactionManager
type TransactionManager: TransactionManager
The concrete TransactionManager
implementation for this database.
type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>
type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>
The concrete QueryResult
implementation for this database.