[][src]Trait sqlx::Row

pub trait Row<'c>: Send + Unpin {
    type Database: Database + ?Sized;
    fn len(&self) -> usize;
fn try_get_raw<'r, I>(
        &'r self,
        index: I
    ) -> Result<<Self::Database as HasRawValue<'r>>::RawValue, Error>
    where
        'c: 'r,
        I: ColumnIndex<Self::Database>
; fn is_empty(&self) -> bool { ... }
fn get<'r, T, I>(&'r self, index: I) -> T
    where
        'c: 'r,
        I: ColumnIndex<Self::Database>,
        T: Type<Self::Database> + Decode<'r, Self::Database>
, { ... }
fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
    where
        'c: 'r,
        I: ColumnIndex<Self::Database>,
        T: Type<Self::Database> + Decode<'r, Self::Database>
, { ... } }

Represents a single row of the result set.

Associated Types

Loading content...

Required methods

fn len(&self) -> usize

Returns the number of values in the row.

fn try_get_raw<'r, I>(
    &'r self,
    index: I
) -> Result<<Self::Database as HasRawValue<'r>>::RawValue, Error> where
    'c: 'r,
    I: ColumnIndex<Self::Database>, 

Loading content...

Provided methods

fn is_empty(&self) -> bool

Returns true if the row contains no values.

fn get<'r, T, I>(&'r self, index: I) -> T where
    'c: 'r,
    I: ColumnIndex<Self::Database>,
    T: Type<Self::Database> + Decode<'r, Self::Database>, 

fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error> where
    'c: 'r,
    I: ColumnIndex<Self::Database>,
    T: Type<Self::Database> + Decode<'r, Self::Database>, 

Loading content...

Implementors

impl<'c> Row<'c> for MySqlRow<'c>[src]

type Database = MySql

impl<'c> Row<'c> for PgRow<'c>[src]

type Database = Postgres

Loading content...