[−][src]Struct sqlite::Statement
A prepared statement.
Implementations
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 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) -> &str
[src]
Return the name of a column.
pub fn names(&self) -> Vec<&str>
[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<'l>
[src]
Upgrade to a cursor.
pub fn as_raw(&self) -> *mut sqlite3_stmt
[src]
Return the raw pointer.
Trait Implementations
Auto Trait Implementations
impl<'l> RefUnwindSafe for Statement<'l>
impl<'l> !Send for Statement<'l>
impl<'l> !Sync for Statement<'l>
impl<'l> Unpin for Statement<'l>
impl<'l> UnwindSafe for Statement<'l>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,