Struct sqlite::Statement [−][src]
pub struct Statement<'l> { /* fields omitted */ }
A prepared statement.
Methods
impl<'l> Statement<'l>
[src]
impl<'l> Statement<'l>
pub fn bind<T: Bindable>(&mut self, i: usize, value: T) -> Result<()>
[src]
pub fn bind<T: Bindable>(&mut self, i: usize, value: T) -> Result<()>
Bind a value to a parameter.
The leftmost parameter has the index 1.
pub fn count(&self) -> usize
[src]
pub fn count(&self) -> usize
Return the number of columns.
pub fn kind(&self, i: usize) -> Type
[src]
pub fn kind(&self, i: usize) -> Type
Return the type of a column.
The type is revealed after the first step has been taken.
pub fn name(&self, i: usize) -> &str
[src]
pub fn name(&self, i: usize) -> &str
Return the name of a column.
pub fn names(&self) -> Vec<&str>
[src]
pub fn names(&self) -> Vec<&str>
Return column names.
pub fn next(&mut self) -> Result<State>
[src]
pub fn next(&mut self) -> Result<State>
Advance to the next state.
The function should be called multiple times until State::Done
is
reached in order to evaluate the statement entirely.
pub fn read<T: Readable>(&self, i: usize) -> Result<T>
[src]
pub fn read<T: Readable>(&self, i: usize) -> Result<T>
Read a value from a column.
The leftmost column has the index 0.
pub fn reset(&mut self) -> Result<()>
[src]
pub fn reset(&mut self) -> Result<()>
Reset the statement.
pub fn cursor(self) -> Cursor<'l>
[src]
pub fn cursor(self) -> Cursor<'l>
Upgrade to a cursor.
pub fn as_raw(&self) -> *mut sqlite3_stmt
[src]
pub fn as_raw(&self) -> *mut sqlite3_stmt
Return the raw pointer.