pub struct Statement<'c, 'p, P: Sqlite3Api> { /* private fields */ }Expand description
Prepared statement wrapper.
Implementations§
Source§impl<'p, P: Sqlite3Metadata> Statement<'_, 'p, P>
impl<'p, P: Sqlite3Metadata> Statement<'_, 'p, P>
Sourcepub fn column_decltype_raw(&self, col: i32) -> Option<RawBytes>
pub fn column_decltype_raw(&self, col: i32) -> Option<RawBytes>
Raw declared column type.
Sourcepub fn column_name_raw(&self, col: i32) -> Option<RawBytes>
pub fn column_name_raw(&self, col: i32) -> Option<RawBytes>
Raw column name.
Sourcepub fn column_table_name_raw(&self, col: i32) -> Option<RawBytes>
pub fn column_table_name_raw(&self, col: i32) -> Option<RawBytes>
Raw column table name.
Source§impl<'c, 'p, P: Sqlite3Api> Statement<'c, 'p, P>
impl<'c, 'p, P: Sqlite3Api> Statement<'c, 'p, P>
Sourcepub fn step(&mut self) -> Result<Option<Row<'_, 'c, 'p, P>>>
pub fn step(&mut self) -> Result<Option<Row<'_, 'c, 'p, P>>>
Step the statement; returns Some(Row) while rows are available.
Sourcepub fn bind_int64(&mut self, idx: i32, value: i64) -> Result<()>
pub fn bind_int64(&mut self, idx: i32, value: i64) -> Result<()>
Bind integer at parameter idx.
Sourcepub fn bind_double(&mut self, idx: i32, value: f64) -> Result<()>
pub fn bind_double(&mut self, idx: i32, value: f64) -> Result<()>
Bind double at parameter idx.
Sourcepub fn bind_value(&mut self, idx: i32, value: &Value) -> Result<()>
pub fn bind_value(&mut self, idx: i32, value: &Value) -> Result<()>
Bind an owned value at parameter idx.
Sourcepub fn column_count(&self) -> i32
pub fn column_count(&self) -> i32
Number of columns in the result set.
Sourcepub fn column_type(&self, col: i32) -> ValueType
pub fn column_type(&self, col: i32) -> ValueType
Column type for the current row.
Sourcepub fn raw_handle(&self) -> NonNull<P::Stmt>
pub fn raw_handle(&self) -> NonNull<P::Stmt>
Expose the raw statement handle.
Trait Implementations§
Auto Trait Implementations§
impl<'c, 'p, P> Freeze for Statement<'c, 'p, P>
impl<'c, 'p, P> RefUnwindSafe for Statement<'c, 'p, P>where
<P as Sqlite3Api>::Stmt: RefUnwindSafe,
P: RefUnwindSafe,
<P as Sqlite3Api>::Db: RefUnwindSafe,
impl<'c, 'p, P> !Send for Statement<'c, 'p, P>
impl<'c, 'p, P> !Sync for Statement<'c, 'p, P>
impl<'c, 'p, P> Unpin for Statement<'c, 'p, P>
impl<'c, 'p, P> UnsafeUnpin for Statement<'c, 'p, P>
impl<'c, 'p, P> UnwindSafe for Statement<'c, 'p, P>where
<P as Sqlite3Api>::Stmt: RefUnwindSafe,
P: RefUnwindSafe,
<P as Sqlite3Api>::Db: RefUnwindSafe,
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