pub struct SqliteRow { /* private fields */ }Expand description
Implementation of Row for SQLite.
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<SqliteRow>,
fn try_get_raw<I>(&self, index: I) -> Result<SqliteValueRef<'_>, Error>where
I: ColumnIndex<SqliteRow>,
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 a ColumnIndexOutOfBounds error 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
impl Send for SqliteRow
impl Sync for SqliteRow
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteRow
impl Forget for SqliteRow
impl Freeze for SqliteRowwhere
*const [SqliteValue] is !null: Freeze,
PhantomData<[SqliteValue]>: Freeze,
*const ArcInner<Vec<SqliteColumn>> is !null: Freeze,
PhantomData<ArcInner<Vec<SqliteColumn>>>: Freeze,
*const ArcInner<HashMap<UStr, usize>> is !null: Freeze,
PhantomData<ArcInner<HashMap<UStr, usize>>>: Freeze,
impl Move for SqliteRow
impl Unpin for SqliteRow
impl UnsafeUnpin for SqliteRowwhere
*const [SqliteValue] is !null: UnsafeUnpin,
PhantomData<[SqliteValue]>: UnsafeUnpin,
*const ArcInner<Vec<SqliteColumn>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<SqliteColumn>>>: UnsafeUnpin,
*const ArcInner<HashMap<UStr, usize>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<UStr, usize>>>: UnsafeUnpin,
impl UnwindSafe for SqliteRowwhere
BoxRaw<[SqliteValue]>: UnwindSafe,
Arc<Vec<SqliteColumn>>: UnwindSafe,
Arc<HashMap<UStr, usize>>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.