|
libdballe 9.13
|
Structure used to build and execute a query, and to iterate through the results. More...
#include <cursor.h>
Public Types | |
| typedef ImplTraits< Impl >::Row | Row |
| typedef ImplTraits< Impl >::Interface | Interface |
Public Member Functions | |
| Base (std::shared_ptr< v7::Transaction > tr) | |
| int | remaining () const override |
| bool | has_value () const override |
| bool | next () override |
| void | discard () override |
| dballe::DBStation | get_station () const override |
| unsigned | test_iterate (FILE *dump=0) override |
| Iterate the cursor until the end, returning the number of items. | |
| const Row & | row () const |
Static Public Member Functions | |
| static std::shared_ptr< Impl > | downcast (std::shared_ptr< Interface > c) |
Public Attributes | |
| std::shared_ptr< v7::Transaction > | tr |
| Database to operate on. | |
| std::deque< Row > | results |
| Storage for the raw database results. | |
| bool | at_start = true |
| True if we are at the start of the iteration. | |
Protected Member Functions | |
| int | get_priority () const |
Structure used to build and execute a query, and to iterate through the results.
|
override |
Iterate the cursor until the end, returning the number of items.
If dump is a FILE pointer, also dump the cursor values to it