[][src]Struct fce_sqlite_connector::Statement

pub struct Statement { /* fields omitted */ }

A prepared statement.

Implementations

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

impl<'l> Drop for Statement[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.