pub trait Driver {
type DatabaseType: Database;
// Required methods
fn new_database(&mut self) -> Result<Self::DatabaseType>;
fn new_database_with_opts(
&mut self,
opts: impl IntoIterator<Item = (OptionDatabase, OptionValue)>,
) -> Result<Self::DatabaseType>;
}Expand description
A handle to an ADBC driver.
Required Associated Types§
type DatabaseType: Database
Required Methods§
Sourcefn new_database(&mut self) -> Result<Self::DatabaseType>
fn new_database(&mut self) -> Result<Self::DatabaseType>
Allocate and initialize a new database without pre-init options.
Sourcefn new_database_with_opts(
&mut self,
opts: impl IntoIterator<Item = (OptionDatabase, OptionValue)>,
) -> Result<Self::DatabaseType>
fn new_database_with_opts( &mut self, opts: impl IntoIterator<Item = (OptionDatabase, OptionValue)>, ) -> Result<Self::DatabaseType>
Allocate and initialize a new database with pre-init options.
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.