[][src]Trait diesel::row::Row

pub trait Row<DB: Backend> {
    fn take(&mut self) -> Option<&DB::RawValue>;
fn next_is_null(&self, count: usize) -> bool; fn advance(&mut self, count: usize) { ... } }

Represents a single database row. Apps should not need to concern themselves with this trait.

This trait is only used as an argument to FromSqlRow.

Required methods

fn take(&mut self) -> Option<&DB::RawValue>

Returns the value of the next column in the row.

fn next_is_null(&self, count: usize) -> bool

Returns whether the next count columns are all NULL.

If this method returns true, then the next count calls to take would all return None.

Loading content...

Provided methods

fn advance(&mut self, count: usize)

Skips the next count columns. This method must be called if you are choosing not to call take as a result of next_is_null returning true.

Loading content...


Loading content...