Struct RawStatement

Source
pub struct RawStatement {
    ptr: *mut sqlite3_stmt,
    cache: ParamIndexCache,
    statement_cache_key: Option<Arc<str>>,
}

Fields§

§ptr: *mut sqlite3_stmt§cache: ParamIndexCache§statement_cache_key: Option<Arc<str>>

Implementations§

Source§

impl RawStatement

Source

pub unsafe fn new(stmt: *mut sqlite3_stmt) -> Self

Source

pub fn is_null(&self) -> bool

Source

pub(crate) fn set_statement_cache_key(&mut self, p: impl Into<Arc<str>>)

Source

pub(crate) fn statement_cache_key(&self) -> Option<Arc<str>>

Source

pub unsafe fn ptr(&self) -> *mut sqlite3_stmt

Source

pub fn column_count(&self) -> usize

Source

pub fn column_type(&self, idx: usize) -> c_int

Source

pub fn column_name(&self, idx: usize) -> Option<&CStr>

Source

pub fn step(&self) -> c_int

Source

pub fn reset(&self) -> c_int

Source

pub fn bind_parameter_count(&self) -> usize

Source

pub fn bind_parameter_index(&self, name: &str) -> Option<usize>

Source

pub fn bind_parameter_name(&self, index: i32) -> Option<&CStr>

Source

pub fn clear_bindings(&mut self)

Source

pub fn sql(&self) -> Option<&CStr>

Source

pub fn finalize(self) -> c_int

Source

fn finalize_(&mut self) -> c_int

Source

pub fn readonly(&self) -> bool

Source

pub(crate) fn expanded_sql(&self) -> Option<SqliteMallocString>

Source

pub fn get_status(&self, status: StatementStatus, reset: bool) -> i32

Source

pub fn is_explain(&self) -> i32

Trait Implementations§

Source§

impl Debug for RawStatement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for RawStatement

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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.