pub struct Database { /* private fields */ }Implementations§
Source§impl Database
impl Database
pub fn open(options: DatabaseOptions) -> DbResult<Self>
pub fn path(&self) -> &DatabasePath
pub fn prepare(&self, sql: impl Into<String>) -> DbResult<Statement>
pub fn exec(&self, sql: &str) -> DbResult<ExecutionResult>
pub fn query(&self, sql: &str, params: &[SqlValue]) -> DbResult<QueryResult>
pub fn pragma(&self, pragma: &str) -> DbResult<QueryResult>
pub fn transaction<F, T>(&self, f: F) -> DbResult<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
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