pub struct Row<'s, 'c, 'p, P: Sqlite3Api> { /* private fields */ }Expand description
Row view for the current step.
Implementations§
Source§impl<'s, 'c, 'p, P: Sqlite3Api> Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P: Sqlite3Api> Row<'s, 'c, 'p, P>
Sourcepub fn column_count(&self) -> i32
pub fn column_count(&self) -> i32
Number of columns.
Sourcepub fn column_type(&self, col: i32) -> ValueType
pub fn column_type(&self, col: i32) -> ValueType
Column type for the current row.
Sourcepub fn column_int64(&self, col: i32) -> i64
pub fn column_int64(&self, col: i32) -> i64
Column integer value.
Sourcepub fn column_double(&self, col: i32) -> f64
pub fn column_double(&self, col: i32) -> f64
Column floating value.
Sourcepub fn column_text_raw(&self, col: i32) -> RawBytes
pub fn column_text_raw(&self, col: i32) -> RawBytes
Raw column text bytes (SQLite-owned for the current row snapshot).
Sourcepub fn column_blob_raw(&self, col: i32) -> RawBytes
pub fn column_blob_raw(&self, col: i32) -> RawBytes
Raw column blob bytes (SQLite-owned for the current row snapshot).
Sourcepub fn column_text(&self, col: i32) -> Option<&str>
pub fn column_text(&self, col: i32) -> Option<&str>
Column text as UTF-8 if valid for the current row snapshot.
Sourcepub fn column_blob(&self, col: i32) -> &[u8] ⓘ
pub fn column_blob(&self, col: i32) -> &[u8] ⓘ
Column blob bytes for the current row snapshot.
Sourcepub fn column_value_ref(&self, col: i32) -> ValueRef<'_>
pub fn column_value_ref(&self, col: i32) -> ValueRef<'_>
Column value as a borrowed view for the current row snapshot.
Sourcepub fn column_value(&self, col: i32) -> Value
pub fn column_value(&self, col: i32) -> Value
Column value as an owned Value.
Auto Trait Implementations§
impl<'s, 'c, 'p, P> Freeze for Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P> RefUnwindSafe for Row<'s, 'c, 'p, P>where
<P as Sqlite3Api>::Stmt: RefUnwindSafe,
P: RefUnwindSafe,
<P as Sqlite3Api>::Db: RefUnwindSafe,
impl<'s, 'c, 'p, P> !Send for Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P> !Sync for Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P> Unpin for Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P> UnsafeUnpin for Row<'s, 'c, 'p, P>
impl<'s, 'c, 'p, P> UnwindSafe for Row<'s, '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