Struct InnerConnection

Source
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

Source

fn busy_timeout(&mut self, timeout: c_int) -> Result<()>

Source§

impl InnerConnection

Source

pub unsafe fn new(db: *mut sqlite3, owned: bool) -> Self

Source

pub fn open_with_flags( c_path: &CStr, flags: OpenFlags, vfs: Option<&CStr>, ) -> Result<Self>

Source

pub fn db(&self) -> *mut sqlite3

Source

pub fn decode_result(&self, code: c_int) -> Result<()>

Source

pub fn close(&mut self) -> Result<()>

Source

pub fn get_interrupt_handle(&self) -> InterruptHandle

Source

pub fn last_insert_rowid(&self) -> i64

Source

pub fn prepare<'a>( &mut self, conn: &'a Connection, sql: &str, flags: PrepFlags, ) -> Result<(Statement<'a>, usize)>

Source

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

Source

pub fn changes(&self) -> u64

Source

pub fn total_changes(&self) -> u64

Source

pub fn is_autocommit(&self) -> bool

Source

pub fn is_busy(&self) -> bool

Source

pub fn cache_flush(&mut self) -> Result<()>

Source

fn remove_hooks(&mut self)

Source

fn remove_preupdate_hook(&mut self)

Source

pub fn db_readonly<N: Name>(&self, db_name: N) -> Result<bool>

Source

pub fn txn_state<N: Name>(&self, db_name: Option<N>) -> Result<TransactionState>

Source

pub fn release_memory(&self) -> Result<()>

Source

pub fn is_interrupted(&self) -> bool

Trait Implementations§

Source§

impl Drop for InnerConnection

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for InnerConnection

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.