Struct fce_sqlite_connector::Statement [−][src]
pub struct Statement { /* fields omitted */ }
A prepared statement.
Implementations
impl Statement
[src]
impl Statement
[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 count(&self) -> usize
[src]
Return the number of columns.
pub fn kind(&self, i: usize) -> Type
[src]
Return the type of a column.
The type becomes available after taking a step.
pub fn name(&self, i: usize) -> String
[src]
Return the name of a column.
pub fn names(&self) -> Vec<String>
[src]
Return column names.
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
[src]
Upgrade to a cursor.
pub fn as_raw(&self) -> u32
[src]
Return the raw pointer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl RefUnwindSafe for Statement
impl UnwindSafe for Statement
impl UnwindSafe for Statement