Trait Database
pub trait Database:
'static
+ Sized
+ Send
+ Debug {
type Connection: Connection<Database = Self>;
type TransactionManager: TransactionManager<Database = Self>;
type Row: Row<Database = Self>;
type Query<'a>: Query<Database = Self>;
type Column: Column<Database = Self>;
type TypeInfo: TypeInfo;
const NAME: &'static str;
}Expand description
A database driver.
Required Associated Constants§
Required Associated Types§
type Connection: Connection<Database = Self>
type Connection: Connection<Database = Self>
The concrete Connection implementation for this database.
type TransactionManager: TransactionManager<Database = Self>
type TransactionManager: TransactionManager<Database = Self>
The concrete TransactionManager implementation for this database.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.