pub struct Statement { /* private fields */ }
Expand description
A prepared statement.
Implementations§
Source§impl Statement
impl Statement
Sourcepub fn bind<T: Bindable>(&mut self, i: usize, value: T) -> Result<()>
pub fn bind<T: Bindable>(&mut self, i: usize, value: T) -> Result<()>
Bind a value to a parameter.
The leftmost parameter has the index 1.
Sourcepub fn kind(&self, i: usize) -> Type
pub fn kind(&self, i: usize) -> Type
Return the type of a column.
The type becomes available after taking a step.
Sourcepub fn next(&mut self) -> Result<State>
pub fn next(&mut self) -> Result<State>
Advance to the next state.
The function should be called multiple times until State::Done
is
reached in order to evaluate the statement entirely.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more