$darkmode
Qore DbDataProvider Module Reference 2.1.1
DbSelectRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace DbDataProvider {
29
30public:
31protected:
33 *hash<auto> where_cond;
34
35public:
36
38
44 constructor(AbstractDatasource ds, *hash<auto> where_cond, hash<auto> select_options)
45 : AbstractDbRecordIterator(!ds.currentThreadInTransaction(),
46 DbSelectRecordIterator::prepareStatement(ds.getSQLStatement(), select_options));
47
48
50
57 bool next();
58
59
61
67 auto memberGate(string key);
68
69
71protected:
72 static AbstractSQLStatement prepareStatement(AbstractSQLStatement stmt, hash<auto> select_options);
73public:
74
75};
76};
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:28
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:33
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
Defines the record iterator class for Table-based iterators.
Definition: DbSelectRecordIterator.qc.dox.h:28
*hash< auto > where_cond
search conditions
Definition: DbSelectRecordIterator.qc.dox.h:33
static AbstractSQLStatement prepareStatement(AbstractSQLStatement stmt, hash< auto > select_options)
Prepares the AbstractSQLStatement object for the iterator.
constructor(AbstractDatasource ds, *hash< auto > where_cond, hash< auto > select_options) bool next()
Creates the iterator.
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:26