ROSE
0.9.6a
|
Iterates over the result rows. More...
#include <SqlDatabase.h>
Public Member Functions | |
iterator () | |
iterator (const StatementPtr &stmt, size_t execution_seq) | |
template<typename T > | |
T | get (size_t idx) |
int32_t | get_i32 (size_t idx) |
int64_t | get_i64 (size_t idx) |
uint32_t | get_u32 (size_t idx) |
uint64_t | get_u64 (size_t idx) |
double | get_dbl (size_t idx) |
std::string | get_str (size_t idx) |
iterator & | operator++ () |
bool | at_eof () const |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
template<> | |
NoColumn | get (size_t idx) |
template<> | |
int64_t | get (size_t idx) |
template<> | |
uint64_t | get (size_t idx) |
template<> | |
int32_t | get (size_t idx) |
template<> | |
uint32_t | get (size_t idx) |
template<> | |
float | get (size_t idx) |
template<> | |
double | get (size_t idx) |
Private Member Functions | |
void | init () |
void | check () const |
Private Attributes | |
StatementPtr | stmt |
size_t | execution_seq |
size_t | row_num |
Iterates over the result rows.
Statement iterators are very restricted compared to normal C++ STL iterators because statement iterators access result rows that are not actually stored locally and the underlying drivers often don't provide an easy way to save an entire row.
Definition at line 350 of file SqlDatabase.h.
|
inline |
Definition at line 352 of file SqlDatabase.h.
References Dbg::init().
|
inline |
Definition at line 353 of file SqlDatabase.h.
References Dbg::init().
T SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
int32_t SqlDatabase::Statement::iterator::get_i32 | ( | size_t | idx) |
int64_t SqlDatabase::Statement::iterator::get_i64 | ( | size_t | idx) |
uint32_t SqlDatabase::Statement::iterator::get_u32 | ( | size_t | idx) |
uint64_t SqlDatabase::Statement::iterator::get_u64 | ( | size_t | idx) |
double SqlDatabase::Statement::iterator::get_dbl | ( | size_t | idx) |
std::string SqlDatabase::Statement::iterator::get_str | ( | size_t | idx) |
iterator& SqlDatabase::Statement::iterator::operator++ | ( | ) |
bool SqlDatabase::Statement::iterator::at_eof | ( | ) | const |
bool SqlDatabase::Statement::iterator::operator== | ( | const iterator & | other) | const |
|
inline |
Definition at line 365 of file SqlDatabase.h.
|
private |
|
private |
NoColumn SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
int64_t SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
uint64_t SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
int32_t SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
uint32_t SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
float SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
double SqlDatabase::Statement::iterator::get | ( | size_t | idx) |
|
private |
Definition at line 370 of file SqlDatabase.h.
|
private |
Definition at line 371 of file SqlDatabase.h.
|
private |
Definition at line 372 of file SqlDatabase.h.