Qore DbDataProvider Module Reference 2.1
Loading...
Searching...
No Matches
AbstractDbRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace DbDataProvider {
28class AbstractDbRecordIterator : public AbstractDataProviderRecordIterator {
29
30public:
31protected:
33 AbstractSQLStatement stmt;
34
37
38public:
39
41
44 constructor(bool release_transaction, AbstractSQLStatement stmt);
45
46
49
50
52
55 bool valid();
56
57
59
65 bool next();
66
67
69
71 hash<auto> getValue();
72
73
76
77
79
81 *hash<string, AbstractDataField> getRecordType();
82
83};
84};
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:28
destructor()
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionL...
keepTransactionLock()
Ensures that no rollback is performed when the object is destroyed.
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
bool release_transaction
release the transaction with a rollback in the destructor?
Definition: AbstractDbRecordIterator.qc.dox.h:36
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:33
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
bool valid()
Returns True if the iterator is valid.
hash< auto > getValue()
Returns a single record if the iterator is valid.
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:26