Reader of the rows of a result set: columns are associated with fields once, when it is built. More...
#include <rows.hpp>
Public Member Functions | |
| RowReader (const ResultSet &result) | |
| void | read (ResultSet &result, T &row) const |
| T | read (ResultSet &result) const |
Reader of the rows of a result set: columns are associated with fields once, when it is built.
Columns which are not fields are ignored, fields which are not columns keep their value. A Readable row is read from the first column.
| T | the row type |
|
explicit |
RowReader constructor
| result | the result set (its columns: SQLite and PostgreSQL know them once the first row has been fetched by ResultSet::next ) |
| SqlException | a Readable row and a result set without column (non fatal) |
| T anch::sql::RowReader< T >::read | ( | ResultSet & | result | ) | const |
Read current row
| result | the result set (on the row to read) |
| SqlException | invalid value, NULL value of a field (or row) which is not optional (non fatal), database error |
| void anch::sql::RowReader< T >::read | ( | ResultSet & | result, |
| T & | row ) const |
Read current row
| result | the result set (on the row to read) |
| row | the row to fill |
| SqlException | invalid value, NULL value of a field (or row) which is not optional (non fatal), database error |