Struct xql_sqlx_postgres::Row
[−]pub struct Row { /* private fields */ }
Expand description
Implementation of [Row
] for PostgreSQL.
Trait Implementations
impl<'_> ColumnIndex<PgRow> for &'_ str
impl<'_> ColumnIndex<PgRow> for &'_ str
pub fn index(&self, row: &PgRow) -> Result<usize, Error>
pub fn index(&self, row: &PgRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
impl Row for PgRow
impl Row for PgRow
type Database = Postgres
pub fn try_get_raw<I>(&self, index: I) -> Result<PgValueRef<'_>, Error> where
I: ColumnIndex<PgRow>,
pub fn try_get_raw<I>(&self, index: I) -> Result<PgValueRef<'_>, Error> where
I: ColumnIndex<PgRow>,
Index into the database row and decode a single value. Read more
fn 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
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.
fn 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
fn 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
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>,
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
fn 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
Auto Trait Implementations
impl RefUnwindSafe for PgRow
impl Send for PgRow
impl Sync for PgRow
impl Unpin for PgRow
impl UnwindSafe for PgRow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more