pub struct InnerConnection {
pub db: *mut sqlite3,
interrupt_lock: Arc<Mutex<*mut sqlite3>>,
owned: bool,
}
Fields§
§db: *mut sqlite3
§interrupt_lock: Arc<Mutex<*mut sqlite3>>
§owned: bool
Implementations§
Source§impl InnerConnection
impl InnerConnection
fn busy_timeout(&mut self, timeout: c_int) -> Result<()>
Source§impl InnerConnection
impl InnerConnection
pub unsafe fn new(db: *mut sqlite3, owned: bool) -> Self
pub fn open_with_flags( c_path: &CStr, flags: OpenFlags, vfs: Option<&CStr>, ) -> Result<Self>
pub fn db(&self) -> *mut sqlite3
pub fn decode_result(&self, code: c_int) -> Result<()>
pub fn close(&mut self) -> Result<()>
pub fn get_interrupt_handle(&self) -> InterruptHandle
pub fn last_insert_rowid(&self) -> i64
pub fn prepare<'a>( &mut self, conn: &'a Connection, sql: &str, flags: PrepFlags, ) -> Result<(Statement<'a>, usize)>
unsafe fn prepare_( &self, z_sql: *const c_char, n_byte: c_int, flags: PrepFlags, pp_stmt: *mut *mut sqlite3_stmt, pz_tail: *mut *const c_char, ) -> c_int
pub fn changes(&self) -> u64
pub fn total_changes(&self) -> u64
pub fn is_autocommit(&self) -> bool
pub fn is_busy(&self) -> bool
pub fn cache_flush(&mut self) -> Result<()>
fn remove_hooks(&mut self)
fn remove_preupdate_hook(&mut self)
pub fn db_readonly<N: Name>(&self, db_name: N) -> Result<bool>
pub fn txn_state<N: Name>(&self, db_name: Option<N>) -> Result<TransactionState>
pub fn release_memory(&self) -> Result<()>
pub fn is_interrupted(&self) -> bool
Trait Implementations§
Source§impl Drop for InnerConnection
impl Drop for InnerConnection
impl Send for InnerConnection
Auto Trait Implementations§
impl Freeze for InnerConnection
impl RefUnwindSafe for InnerConnection
impl !Sync for InnerConnection
impl Unpin for InnerConnection
impl UnwindSafe for InnerConnection
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