Qore DbDataProvider Module Reference  1.0
DbTableRecordIterator.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 
32 namespace DbDataProvider {
35 
36 public:
37 protected:
39  AbstractTable table;
40 
41 public:
42 
44 
47  constructor(AbstractTable table, *hash<auto> where_cond, *hash<auto> search_options)
48 : AbstractDbRecordIterator(!table.getDatasource().currentThreadInTransaction(), table.getStatement(search_options + {'where': where_cond}));
49 
50 
52 
58  auto memberGate(string key);
59 
60 
62 
64  *hash<string, AbstractDataField> getRecordType();
65 
66 };
67 };
Defines the record iterator class for Table-based iterators.
Definition: DbTableRecordIterator.qc.dox.h:34
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:34
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
AbstractTable table
The table being iterated.
Definition: DbTableRecordIterator.qc.dox.h:39
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator