Struct sqlite3::Statement
[−]
[src]
pub struct Statement<'l> { /* fields omitted */ }
A prepared statement.
Methods
impl<'l> Statement<'l>
[src]
pub fn bind<T: Bindable>(&mut self, i: usize, value: T) -> Result<()>
[src]
Bind a value to a parameter.
The leftmost parameter has the index 1.
pub fn columns(&self) -> usize
[src]
Return the number of columns.
pub fn column_names(&self) -> Result<Vec<String>>
[src]
Return all the column names from the statement
pub fn kind(&self, i: usize) -> Type
[src]
Return the type of a column.
The type is revealed after the first step has been taken.
pub fn next(&mut self) -> Result<State>
[src]
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]
Read a value from a column.
The leftmost column has the index 0.
pub fn reset(&mut self) -> Result<()>
[src]
Reset the statement.
pub fn cursor(self) -> Cursor<'l>
[src]
Upgrade to a cursor.
pub fn as_raw(&self) -> *mut sqlite3_stmt
[src]
Return the raw pointer.