$darkmode

| Qore DbDataProvider Module Reference 2.0.1

DbTableRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace DbDataProvider {
28 class DbTableRecordIterator : public AbstractDbRecordIterator {
29
30 public:
31 protected:
33 AbstractTable table;
34
35 public:
36
38
41 constructor(AbstractTable table, *hash<auto> where_cond, *hash<auto> search_options)
42 : AbstractDbRecordIterator(!table.getDatasource().currentThreadInTransaction(),
43 table.getStatement(search_options + {'where': where_cond}));
44
45
47
53 auto memberGate(string key);
54
55
57
59 *hash<string, AbstractDataField> getRecordType();
60
61};
62};
DbDataProvider::AbstractDbRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:28
DbDataProvider::AbstractDbRecordIterator::constructor
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
DbDataProvider::DbTableRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: DbTableRecordIterator.qc.dox.h:28
DbDataProvider::DbTableRecordIterator::memberGate
constructor(AbstractTable table, *hash< auto > where_cond, *hash< auto > search_options) auto memberGate(string key)
creates the iterator
DbDataProvider::DbTableRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DbDataProvider::DbTableRecordIterator::table
AbstractTable table
The table being iterated.
Definition: DbTableRecordIterator.qc.dox.h:33
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:26