Struct deslite::Stmt [−][src]
pub struct Stmt<'con> { pub stmt: *mut sqlite3_stmt, // some fields omitted }
Fields
stmt: *mut sqlite3_stmt
Methods
impl<'con> Stmt<'con>
[src]
impl<'con> Stmt<'con>
pub fn init(con: &'con SqliteCon) -> Self
[src]
pub fn init(con: &'con SqliteCon) -> Self
pub fn prepare(&mut self, sql: &str) -> Result<&mut Self, Error>
[src]
pub fn prepare(&mut self, sql: &str) -> Result<&mut Self, Error>
pub fn bind_values<T>(&mut self, params: &Vec<T>) -> Result<(), Error> where
T: Clone,
Value: From<T>,
[src]
pub fn bind_values<T>(&mut self, params: &Vec<T>) -> Result<(), Error> where
T: Clone,
Value: From<T>,
pub fn bind<T>(&mut self, param: T, index: i32) -> Result<(), Error> where
Value: From<T>,
[src]
pub fn bind<T>(&mut self, param: T, index: i32) -> Result<(), Error> where
Value: From<T>,
pub fn step(&self) -> Result<c_int, Error>
[src]
pub fn step(&self) -> Result<c_int, Error>
pub fn execute(&self) -> Result<(), Error>
[src]
pub fn execute(&self) -> Result<(), Error>
pub fn get_rows(self) -> Rows<'con>
[src]
pub fn get_rows(self) -> Rows<'con>
pub fn get_row(&'con self) -> Result<Row<'con>, Error>
[src]
pub fn get_row(&'con self) -> Result<Row<'con>, Error>
pub fn reset(&self)
[src]
pub fn reset(&self)
pub fn clear_bindings(&mut self)
[src]
pub fn clear_bindings(&mut self)
pub fn colum_count(&self) -> usize
[src]
pub fn colum_count(&self) -> usize
pub fn colum_name(&self, index: usize) -> &str
[src]
pub fn colum_name(&self, index: usize) -> &str
pub fn colum_index(&self, key: &str) -> Result<usize, Error>
[src]
pub fn colum_index(&self, key: &str) -> Result<usize, Error>
pub fn colum_type(&self, index: usize) -> Result<SqliteTypes, Error>
[src]
pub fn colum_type(&self, index: usize) -> Result<SqliteTypes, Error>
pub fn get_double(&self, index: usize) -> Value
[src]
pub fn get_double(&self, index: usize) -> Value
pub fn get_int32(&self, index: usize) -> Value
[src]
pub fn get_int32(&self, index: usize) -> Value
pub fn get_int64(&self, index: usize) -> Value
[src]
pub fn get_int64(&self, index: usize) -> Value
pub fn get_blob(&self, index: usize) -> Value
[src]
pub fn get_blob(&self, index: usize) -> Value
pub fn get_text(&self, index: usize) -> Value
[src]
pub fn get_text(&self, index: usize) -> Value
Trait Implementations
impl<'con> Debug for Stmt<'con>
[src]
impl<'con> Debug for Stmt<'con>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'con> Drop for Stmt<'con>
[src]
impl<'con> Drop for Stmt<'con>