pub struct SqliteContext { /* private fields */ }Expand description
SQLite execution context wrapping a connection.
Implementations§
Source§impl SqliteContext
impl SqliteContext
Sourcepub fn open_in_memory() -> Result<Self, Error>
pub fn open_in_memory() -> Result<Self, Error>
Open an in-memory SQLite database
Sourcepub fn connection(&self) -> &Connection
pub fn connection(&self) -> &Connection
Get the underlying connection
Sourcepub fn connection_mut(&mut self) -> &mut Connection
pub fn connection_mut(&mut self) -> &mut Connection
Get mutable access to the underlying connection
Sourcepub fn into_connection(self) -> Connection
pub fn into_connection(self) -> Connection
Consume and return the underlying connection
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SqliteContext
impl !RefUnwindSafe for SqliteContext
impl Send for SqliteContext
impl !Sync for SqliteContext
impl Unpin for SqliteContext
impl !UnwindSafe for SqliteContext
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