#include <result.h>
Inheritance diagram for mysqlpp::Result:
Public Member Functions | |
Result () | |
Default constructor. | |
Result (MYSQL_RES *result, bool te=true) | |
Fully initialize object. | |
Result (const Result &other) | |
Initialize object as a copy of another Result object. | |
virtual | ~Result () |
Destroy result set. | |
const Row | fetch_row () const |
Wraps mysql_fetch_row() in MySQL C API. | |
my_ulonglong | num_rows () const |
Wraps mysql_num_rows() in MySQL C API. | |
void | data_seek (uint offset) const |
Wraps mysql_data_seek() in MySQL C API. | |
size_type | size () const |
Alias for num_rows(), only with different return type. | |
size_type | rows () const |
Alias for num_rows(), only with different return type. | |
const Row | at (size_type i) const |
Get the row with an offset of i. |
Objects of this class are created to manage the result of "store" queries, where the result set is handed to the program as single block of row data. (The name comes from the MySQL C API function mysql_store_result()
which creates these blocks of row data.)
This class is a random access container (in the STL sense) which is neither less-than comparable nor assignable. This container provides a reverse random-access iterator in addition to the normal forward one.
|
Wraps mysql_fetch_row() in MySQL C API. This is simply the const version of the same function in our parent class . Why this cannot actually be in our parent class is beyond me. |