pub struct SqliteRow {
pub values: Box<[SqliteValue]>,
pub columns: Arc<Vec<SqliteColumn>>,
pub column_names: Arc<HashMap<UStr, usize>>,
}
Expand description
Implementation of Row
for SQLite.
Fields§
§values: Box<[SqliteValue]>
§columns: Arc<Vec<SqliteColumn>>
§column_names: Arc<HashMap<UStr, usize>>
Implementations§
Trait Implementations§
Source§impl ColumnIndex<SqliteRow> for &str
impl ColumnIndex<SqliteRow> for &str
Source§fn 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
.Source§impl ColumnIndex<SqliteRow> for usize
impl ColumnIndex<SqliteRow> for usize
Source§fn 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
.Source§impl Row for SqliteRow
impl Row for SqliteRow
type Database = Sqlite
Source§fn columns(&self) -> &[SqliteColumn]
fn columns(&self) -> &[SqliteColumn]
Gets all columns in this statement.
Source§fn 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
Source§fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index
. Read moreSource§fn 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.Source§fn get<'r, T, I>(&'r self, index: I) -> T
fn get<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
Source§fn get_unchecked<'r, T, I>(&'r self, index: I) -> T
fn get_unchecked<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
Source§fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
Index into the database row and decode a single value. Read more
Source§fn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error>
fn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error>
Index into the database row and decode a single value. Read more
fn decode<'a, R>( &self, v: <Self::Database as HasValueRef<'a>>::ValueRef, ) -> Result<R, Box<dyn Error + Send + Sync>>
impl Send for SqliteRow
impl Sync for SqliteRow
Auto Trait Implementations§
impl Freeze for SqliteRow
impl RefUnwindSafe for SqliteRow
impl Unpin for SqliteRow
impl UnwindSafe for SqliteRow
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more