pub struct Connection { /* private fields */ }Implementations§
Source§impl Connection
impl Connection
pub fn new(database_path: &str) -> Result<Self>
pub fn new_in_memory() -> Result<Self>
pub fn close(&mut self) -> Result<()>
pub fn journal_mode(&self) -> Result<JournalMode>
pub fn set_journal_mode(&mut self, journal_mode: JournalMode) -> Result<()>
pub fn checkpoint_wal(&mut self) -> Result<()>
pub fn execute(&mut self, sql: &str) -> Result<QueryResult>
pub fn execute_result(&mut self, sql: &str) -> Result<ExecutedStatement>
pub fn iter_script<'a>(&'a mut self, sql: &str) -> Result<ScriptIter<'a>>
pub fn execute_batch(&mut self, sql: &str) -> Result<()>
pub fn execute_query(&mut self, sql: &str) -> Result<QueryResult>
pub fn prepare(&self, sql: &str) -> Result<PreparedStatement>
pub fn begin_transaction(&mut self) -> Result<Transaction<'_>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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