Struct sqlite_tiny::api::query::Query
source · pub struct Query<'a> { /* private fields */ }
Expand description
An SQLite query
Implementations§
source§impl<'a> Query<'a>
impl<'a> Query<'a>
sourcepub fn bind<T>(self, column: c_int, value: T) -> Result<Self, Error>
pub fn bind<T>(self, column: c_int, value: T) -> Result<Self, Error>
Binds a value
§Important
Sadly, unless manually specified with ?NNN
, default column indices for binding start with 1
😭
sourcepub fn execute(self) -> Result<QueryResult<'a>, Error>
pub fn execute(self) -> Result<QueryResult<'a>, Error>
Executes the query and gets the next result row if any
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Query<'a>
impl<'a> RefUnwindSafe for Query<'a>
impl<'a> !Send for Query<'a>
impl<'a> !Sync for Query<'a>
impl<'a> Unpin for Query<'a>
impl<'a> UnwindSafe for Query<'a>
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