$darkmode
Qore DbDataProvider Module Reference 2.0.1
DbSelectRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
25// minimum required Qore version
26// assume local scope for variables, do not use "$" signs
27// require type definitions everywhere
29// enable all warnings
30
32namespace DbDataProvider {
35
36public:
37protected:
39 *hash<auto> where_cond;
40
41public:
42
44
50 constructor(AbstractDatasource ds, *hash<auto> where_cond, hash<auto> select_options)
51 : AbstractDbRecordIterator(!ds.currentThreadInTransaction(),
52 DbSelectRecordIterator::prepareStatement(ds.getSQLStatement(), select_options));
53
54
56
63 bool next();
64
65
67
73 auto memberGate(string key);
74
75
77protected:
78 static AbstractSQLStatement prepareStatement(AbstractSQLStatement stmt, hash<auto> select_options);
79public:
80
81};
82};
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:34
*hash< auto > where_cond
search conditions
Definition: DbSelectRecordIterator.qc.dox.h:39
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