pub struct Connection { /* private fields */ }Expand description
Database connection.
Implementations§
Trait Implementations§
Source§impl Debug for Connection
impl Debug for Connection
Source§impl<'s> Execute<'s> for &'s mut Connection
impl<'s> Execute<'s> for &'s mut Connection
impl Send for Connection
SAFETY: Checked that sqlite compiled with SERIALIZE_MODE
thus synchronization is handled by sqlite
impl Sync for Connection
SAFETY: Checked that sqlite compiled with SERIALIZE_MODE
thus synchronization is handled by sqlite
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe 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
Source§impl<T> DatabaseExt for Twhere
T: Database,
impl<T> DatabaseExt for Twhere
T: Database,
Source§fn last_insert_rowid(&self) -> i64
fn last_insert_rowid(&self) -> i64
returns the rowid of the most recent successful INSERT into a rowid table
or virtual table on database connection Read more
Source§fn mutex_enter(&self) -> SqliteMutexGuard
fn mutex_enter(&self) -> SqliteMutexGuard
attempt to enter a mutex, if another thread is already within the mutex,
this call will block Read more
Source§fn busy_timeout(
&mut self,
timeout: impl Into<Duration>,
) -> Result<(), ConfigureError>
fn busy_timeout( &mut self, timeout: impl Into<Duration>, ) -> Result<(), ConfigureError>
This routine sets a busy handler that sleeps for a specified amount of time when a table is locked. Read more
Source§fn extended_result_codes(&mut self, onoff: bool) -> Result<(), ConfigureError>
fn extended_result_codes(&mut self, onoff: bool) -> Result<(), ConfigureError>
enables or disables the extended result codes feature of SQLite. Read more
Source§fn errmsg(&self) -> Option<&str>
fn errmsg(&self) -> Option<&str>
return recent error’s English-language text that describes the error,
as either UTF-8 or UTF-16 respectively, or NULL if no error message is available Read more
Source§fn errstr(code: i32) -> Option<&'static str>
fn errstr(code: i32) -> Option<&'static str>
returns English-language text that describes the result code E, as UTF-8,
or NULL if E is not an result code for which a text error message is available. Read more
Source§fn extended_errcode(&self) -> i32
fn extended_errcode(&self) -> i32
returns extended result code for recent error Read more