pub struct FfiDatabase { /* private fields */ }Expand description
Trait Implementations§
Source§impl Database for FfiDatabase
impl Database for FfiDatabase
type ConnectionType = FfiConnection
Source§fn new_connection(&self) -> AdbcResult<Self::ConnectionType>
fn new_connection(&self) -> AdbcResult<Self::ConnectionType>
Allocate and initialize a new connection without pre-init options.
Source§fn new_connection_with_opts(
&self,
opts: impl IntoIterator<Item = (OptionConnection, OptionValue)>,
) -> AdbcResult<Self::ConnectionType>
fn new_connection_with_opts( &self, opts: impl IntoIterator<Item = (OptionConnection, OptionValue)>, ) -> AdbcResult<Self::ConnectionType>
Allocate and initialize a new connection with pre-init options.
Source§impl Optionable for FfiDatabase
impl Optionable for FfiDatabase
type Option = OptionDatabase
Source§fn set_option(
&mut self,
key: Self::Option,
value: OptionValue,
) -> AdbcResult<()>
fn set_option( &mut self, key: Self::Option, value: OptionValue, ) -> AdbcResult<()>
Set a post-init option.
Source§fn get_option_string(&self, key: Self::Option) -> AdbcResult<String>
fn get_option_string(&self, key: Self::Option) -> AdbcResult<String>
Get a string option value by key.
Source§fn get_option_bytes(&self, key: Self::Option) -> AdbcResult<Vec<u8>>
fn get_option_bytes(&self, key: Self::Option) -> AdbcResult<Vec<u8>>
Get a bytes option value by key.
Source§fn get_option_int(&self, key: Self::Option) -> AdbcResult<i64>
fn get_option_int(&self, key: Self::Option) -> AdbcResult<i64>
Get an integer option value by key.
Source§fn get_option_double(&self, key: Self::Option) -> AdbcResult<f64>
fn get_option_double(&self, key: Self::Option) -> AdbcResult<f64>
Get a float option value by key.
Auto Trait Implementations§
impl Freeze for FfiDatabase
impl RefUnwindSafe for FfiDatabase
impl Send for FfiDatabase
impl Sync for FfiDatabase
impl Unpin for FfiDatabase
impl UnsafeUnpin for FfiDatabase
impl UnwindSafe for FfiDatabase
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more