Struct rust_query::client::Client
source · pub struct Client { /* private fields */ }
Expand description
This is a wrapper for rusqlite::Connection. It’s main purpose is to remove the need to depend on rusqlite in the future. Right now it is mostly used in the tests.
Implementations§
source§impl Client
impl Client
sourcepub fn open_in_memory() -> Self
pub fn open_in_memory() -> Self
Create a new client with recommended settings.
sourcepub fn execute_batch(&self, sql: &str)
pub fn execute_batch(&self, sql: &str)
Execute a raw sql statement, useful for loading a schema.
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
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