pub trait Row<'a, DB: Backend>: RowIndex<usize> + for<'b> RowIndex<&'b str> + for<'b> RowGatWorkaround<'b, DB> + Sized {
    type InnerPartialRow: Row<'a, DB>;

    fn field_count(&self) -> usize;
    fn get<'b, I>(&'b self, idx: I) -> Option<FieldRet<'b, Self, DB>>
    where
        'a: 'b,
        Self: RowIndex<I>
; fn partial_row(
        &self,
        range: Range<usize>
    ) -> PartialRow<'_, Self::InnerPartialRow>; fn get_value<ST, T, I>(&self, idx: I) -> Result<T>
    where
        Self: RowIndex<I>,
        T: FromSql<ST, DB>
, { ... } }
Expand description

Represents a single database row.

This trait is used as an argument to FromSqlRow.

Required Associated Types

Return type of PartialRow

For all implementations, beside of the Row implementation on PartialRow itself this should be Self.

Required Methods

Get the number of fields in the current row

Get the field with the provided index from the row.

Returns None if there is no matching field for the given index

Returns a wrapping row that allows only to access fields, where the index is part of the provided range.

Provided Methods

Get a deserialized value with the provided index from the row.

Implementors