4 #include <libutl/DBconnection.h> 5 #include <libutl/DBresult.h> 40 initialize(connection, query, limit);
55 return ((_result !=
nullptr) && (_result->status() ==
dbr_ok));
63 return _result->status();
71 return _result->errorMsg();
79 return _result->numFields();
87 return (_row == _result->numRows());
91 bool isNull(
uint_t field)
const;
100 char* getString(
uint_t fieldIdx)
const;
103 bool getBool(
uint_t fieldIdx)
const;
106 int getInt32(
uint_t fieldIdx)
const;
112 double getDouble(
uint_t fieldIdx)
const;
115 time_t getDateTime(
uint_t fieldIdx)
const;
139 void execute(
uint_t page);
void deInit()
De-initialize UTL++.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
long int64_t
Signed 64-bit integer.
DBresultIterator(DBconnection *connection, const String &query, uint_t limit=uint_t_max)
Initialize.
Command executed successfully.
uint_t status() const
Get the status.
bool end() const
No more result rows?
unsigned long uint64_t
Unsigned 64-bit integer.
unsigned int uint_t
Unsigned integer.
const uint_t uint_t_max
Maximum uint_t value.
const String & errorMsg() const
Get error message.
bool ok() const
Is everything OK?
DBresultIterator & operator++()
Move forward one row.
uint_t numFields() const
Get number of fields.
Root of UTL++ class hierarchy.
void init()
Initialize UTL++.
#define ASSERTD
Do an assertion in DEBUG mode only.