[][src]Struct deslite::Stmt

pub struct Stmt<'con> {
    pub stmt: *mut sqlite3_stmt,
    // some fields omitted
}

Fields

stmt: *mut sqlite3_stmt

Methods

impl<'con> Stmt<'con>[src]

pub fn init(con: &'con SqliteCon) -> Self[src]

pub fn prepare(&mut self, sql: &str) -> Result<&mut Self, Error>[src]

pub fn bind_values<T>(&mut self, params: &Vec<T>) -> Result<(), Error> where
    T: Clone,
    Value: From<T>, 
[src]

pub fn bind<T>(&mut self, param: T, index: i32) -> Result<(), Error> where
    Value: From<T>, 
[src]

pub fn step(&self) -> Result<c_int, Error>[src]

pub fn execute(&self) -> Result<(), Error>[src]

pub fn get_rows(self) -> Rows<'con>[src]

pub fn get_row(&'con self) -> Result<Row<'con>, Error>[src]

pub fn reset(&self)[src]

pub fn clear_bindings(&mut self)[src]

pub fn colum_count(&self) -> usize[src]

pub fn colum_name(&self, index: usize) -> &str[src]

pub fn colum_index(&self, key: &str) -> Result<usize, Error>[src]

pub fn colum_type(&self, index: usize) -> Result<SqliteTypes, Error>[src]

pub fn get_double(&self, index: usize) -> Value[src]

pub fn get_int32(&self, index: usize) -> Value[src]

pub fn get_int64(&self, index: usize) -> Value[src]

pub fn get_blob(&self, index: usize) -> Value[src]

pub fn get_text(&self, index: usize) -> Value[src]

Trait Implementations

impl<'con> Drop for Stmt<'con>[src]

impl<'con> Debug for Stmt<'con>[src]

Auto Trait Implementations

impl<'con> !Send for Stmt<'con>

impl<'con> !Sync for Stmt<'con>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]