|
MySQL Connector/C++ 9.5.0
MySQL connector library for C and C++ applications
|
Result of an operation that returns rows. More...
Public Member Functions | |
| col_count_t | getColumnCount () const |
| Return the number of fields in each row. | |
| const Column & | getColumn (col_count_t pos) const |
Return Column object describing the given column of the result. | |
| const Columns & | getColumns () const |
| Return meta-data for all result columns. More... | |
| Row | fetchOne () |
| Return the current row and move to the next one in the sequence. More... | |
| RowList | fetchAll () |
| Return all remaining rows. More... | |
| row_count_t | count () |
| Returns the number of rows contained in the result. More... | |
| unsigned | getWarningsCount () const |
| Get the number of warnings stored in the result. | |
| WarningList | getWarnings () |
| Get a list of warnings stored in the result. | |
| Warning | getWarning (unsigned pos) |
| Get the warning at the given, 0-based position. | |
| uint64_t | getAffectedItemsCount () const |
| Get the count of affected items (rows or doucuments) from manipulation statements. | |
Result of an operation that returns rows.
A RowResult object gives sequential access to the rows contained in the result. It is possible to get the rows one-by-one, or fetch and store all of them at once. One can iterate over the rows using range loop: for (Row r : result) ....
|
inline |
Return meta-data for all result columns.
TODO: explain ownership
|
inline |
Return the current row and move to the next one in the sequence.
If there are no more rows in this result, returns a null Row instance.
|
inline |
Return all remaining rows.
Result of this method can be stored in a container such as std::list<Row>. Rows that have already been fetched using fetchOne() are not included in the result of fetchAll().
|
inline |
Returns the number of rows contained in the result.
The method counts only the rows that were not yet fetched and are still available in the result.