Struct lunatic_twitchax_patch::sqlite::Statement
source · pub struct Statement { /* private fields */ }Available on crate feature
sqlite only.Expand description
Prepared SQL statement.
Implementations§
source§impl Statement
impl Statement
sourcepub fn bind_named(
self,
name: impl Into<String>,
value: impl Into<Value>
) -> Self
pub fn bind_named( self, name: impl Into<String>, value: impl Into<Value> ) -> Self
Bind based on a name.
sourcepub fn execute(self) -> Vec<Vec<Value>>
pub fn execute(self) -> Vec<Vec<Value>>
Executes the query returning all rows collected as a Vec.
sourcepub fn execute_iter(self) -> QueryIter ⓘ
pub fn execute_iter(self) -> QueryIter ⓘ
Executes the query returning an iterator over rows.
The query will not be executed until the iter is iterated upon.
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§
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