pub struct SqliteRow { /* private fields */ }
Expand description
Implementation of Row
for SQLite.
Trait Implementations
sourceimpl ColumnIndex<SqliteRow> for &str
impl ColumnIndex<SqliteRow> for &str
sourcefn index(&self, row: &SqliteRow) -> Result<usize, Error>
fn index(&self, row: &SqliteRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
sourceimpl ColumnIndex<SqliteRow> for usize
impl ColumnIndex<SqliteRow> for usize
sourcefn index(&self, row: &SqliteRow) -> Result<usize, Error>
fn index(&self, row: &SqliteRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
sourceimpl Row for SqliteRow
impl Row for SqliteRow
type Database = Sqlite
sourcefn columns(&self) -> &[SqliteColumn]
fn columns(&self) -> &[SqliteColumn]
Gets all columns in this statement.
sourcefn try_get_raw<I>(&self, index: I) -> Result<SqliteValueRef<'_>, Error> where
I: ColumnIndex<Self>,
fn try_get_raw<I>(&self, index: I) -> Result<SqliteValueRef<'_>, Error> where
I: ColumnIndex<Self>,
Index into the database row and decode a single value. Read more
sourcefn column<I>(&self, index: I) -> &<Self::Database as Database>::Column where
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Column where
I: ColumnIndex<Self>,
Gets the column information at index
. Read more
sourcefn try_column<I>(
&self,
index: I
) -> Result<&<Self::Database as Database>::Column, Error> where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I
) -> Result<&<Self::Database as Database>::Column, Error> where
I: ColumnIndex<Self>,
Gets the column information at index
or None
if out of bounds.
sourcefn get<'r, T, I>(&'r self, index: I) -> T where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database> + Type<Self::Database>,
fn get<'r, T, I>(&'r self, index: I) -> T where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database> + Type<Self::Database>,
Index into the database row and decode a single value. Read more
sourcefn get_unchecked<'r, T, I>(&'r self, index: I) -> T where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database>,
fn get_unchecked<'r, T, I>(&'r self, index: I) -> T where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database>,
Index into the database row and decode a single value. Read more
sourcefn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error> where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database> + Type<Self::Database>,
fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error> where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database> + Type<Self::Database>,
Index into the database row and decode a single value. Read more
sourcefn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error> where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database>,
fn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error> where
I: ColumnIndex<Self>,
T: Decode<'r, Self::Database>,
Index into the database row and decode a single value. Read more
impl Send for SqliteRow
impl Sync for SqliteRow
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more