[−][src]Struct fce_sqlite_connector::Statement
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
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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,
pub 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.
pub 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>,