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
impl RawStatement
pub unsafe fn new(stmt: *mut sqlite3_stmt) -> Self
pub fn is_null(&self) -> bool
pub(crate) fn set_statement_cache_key(&mut self, p: impl Into<Arc<str>>)
pub(crate) fn statement_cache_key(&self) -> Option<Arc<str>>
pub unsafe fn ptr(&self) -> *mut sqlite3_stmt
pub fn column_count(&self) -> usize
pub fn column_type(&self, idx: usize) -> c_int
pub fn column_name(&self, idx: usize) -> Option<&CStr>
pub fn step(&self) -> c_int
pub fn reset(&self) -> c_int
pub fn bind_parameter_count(&self) -> usize
pub fn bind_parameter_index(&self, name: &str) -> Option<usize>
pub fn bind_parameter_name(&self, index: i32) -> Option<&CStr>
pub fn clear_bindings(&mut self)
pub fn sql(&self) -> Option<&CStr>
pub fn finalize(self) -> c_int
fn finalize_(&mut self) -> c_int
pub fn readonly(&self) -> bool
pub(crate) fn expanded_sql(&self) -> Option<SqliteMallocString>
pub fn get_status(&self, status: StatementStatus, reset: bool) -> i32
pub fn is_explain(&self) -> i32
Trait Implementations§
Source§impl Debug for RawStatement
impl Debug for RawStatement
Auto Trait Implementations§
impl !Freeze for RawStatement
impl !RefUnwindSafe for RawStatement
impl !Send for RawStatement
impl !Sync for RawStatement
impl Unpin for RawStatement
impl UnwindSafe for RawStatement
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