Trait Driver

Source
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§

Required Methods§

Source

fn new_database(&mut self) -> Result<Self::DatabaseType>

Allocate and initialize a new database without pre-init options.

Source

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.

Implementors§