DbSelectRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// minimum required Qore version
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DbDataProvider {
class DbSelectRecordIterator : public AbstractDbRecordIterator {
public:
protected:
*hash<auto> where_cond;
public:
constructor(AbstractDatasource ds, *hash<auto> where_cond, hash<auto> select_options)
: AbstractDbRecordIterator(!ds.currentThreadInTransaction(), DbSelectRecordIterator::prepareStatement(ds.getSQLStatement(), select_options));
bool next();
auto memberGate(string key);
protected:
static AbstractSQLStatement prepareStatement(AbstractSQLStatement stmt, hash<auto> select_options);
public:
};
};
DbDataProvider::AbstractDbRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:34
DbDataProvider::AbstractDbRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
DbDataProvider::AbstractDbRecordIterator::stmt
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:39
DbDataProvider::AbstractDbRecordIterator::constructor
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
DbDataProvider::DbSelectRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: DbSelectRecordIterator.qc.dox.h:34
DbDataProvider::DbSelectRecordIterator::where_cond
*hash< auto > where_cond
search conditions
Definition: DbSelectRecordIterator.qc.dox.h:39
DbDataProvider::DbSelectRecordIterator::prepareStatement
static AbstractSQLStatement prepareStatement(AbstractSQLStatement stmt, hash< auto > select_options)
Prepares the AbstractSQLStatement object for the iterator.
DbDataProvider::DbSelectRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32