ledger-core
|
#include <DatabaseResultSet.hpp>
Public Member Functions | |
virtual std::shared_ptr< DatabaseResultRow > | getRow ()=0 |
virtual int32_t | getUpdateCount ()=0 |
virtual bool | hasNext ()=0 |
virtual int32_t | available ()=0 |
virtual void | next ()=0 |
virtual void | close ()=0 |
virtual std::shared_ptr< DatabaseError > | getError ()=0 |
ResultSet is a cursor over a query result. It allows user to iterate through query rows. When you start iterating through result the cursor is placed before the first element of the set.
|
pure virtual |
Returns the number of remaining rows before the result set needs to load more rows
Implemented in Results.
|
pure virtual |
Close the result set.
Implemented in Results.
|
pure virtual |
Get the last error that occured on the database.
Implemented in Results.
|
pure virtual |
Retrieve the current row pointed by the DatabaseResultSet. Return null if there is no row to retrieve.
Implemented in Results.
|
pure virtual |
Get the number of rows updated by the query (UPDATE, INSERT, DELETE...)
Implemented in Results.
|
pure virtual |
Returns true if the result set has at least one remaining row to get.
Implemented in Results.
|
pure virtual |
Internally move the result set to the next available row. This method may fail if there is no further row to fetch.
Implemented in Results.