Struct rusqlite::Row [] [src]

pub struct Row<'a, 'stmt> { /* fields omitted */ }

A single result row of a query.

Methods

impl<'a, 'stmt> Row<'a, 'stmt>
[src]

[src]

Get the value of a particular column of the result row.

Failure

Panics if calling row.get_checked(idx) would return an error, including:

  • If the underlying SQLite column type is not a valid type as a source for T
  • If the underlying SQLite integral value is outside the range representable by T
  • If idx is outside the range of columns in the returned query

[src]

Get the value of a particular column of the result row.

Failure

Returns an Error::InvalidColumnType if the underlying SQLite column type is not a valid type as a source for T.

Returns an Error::InvalidColumnIndex if idx is outside the valid column range for this row.

Returns an Error::InvalidColumnName if idx is not a valid column name for this row.

[src]

Return the number of columns in the current row.