[][src]Trait sqlx::Row

pub trait Row: 'static + Send + Unpin {
    type Database: Database + ?Sized;
    fn len(&self) -> usize;
fn get<T, I>(&self, index: I) -> T
    where
        I: RowIndex<Self>,
        T: Decode<Self::Database>,
        Self::Database: HasSqlType<T>
; fn is_empty(&self) -> bool { ... } }

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 get<T, I>(&self, index: I) -> T where
    I: RowIndex<Self>,
    T: Decode<Self::Database>,
    Self::Database: HasSqlType<T>, 

Returns the value at the index; can either be an integer ordinal or a column name.

Loading content...

Provided methods

fn is_empty(&self) -> bool

Returns true if the row contains no values.

Loading content...

Implementors

Loading content...