AbstractDbRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// minimum required Qore version
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DbDataProvider {
class AbstractDbRecordIterator : public AbstractDataProviderRecordIterator {
public:
protected:
AbstractSQLStatement stmt;
bool release_transaction;
public:
constructor(bool release_transaction, AbstractSQLStatement stmt);
destructor();
bool valid();
bool next();
hash<auto> getValue();
keepTransactionLock();
};
};
DbDataProvider::AbstractDbRecordIterator::constructor
constructor(bool release_transaction, AbstractSQLStatement stmt)
creates the iterator
DbDataProvider::AbstractDbRecordIterator::keepTransactionLock
keepTransactionLock()
Ensures that no rollback is performed when the object is destroyed.
DbDataProvider::AbstractDbRecordIterator::stmt
AbstractSQLStatement stmt
the statement being iterated
Definition: AbstractDbRecordIterator.qc.dox.h:39
DbDataProvider::AbstractDbRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
DbDataProvider::AbstractDbRecordIterator::release_transaction
bool release_transaction
release the transaction with a rollback in the destructor?
Definition: AbstractDbRecordIterator.qc.dox.h:42
DbDataProvider::AbstractDbRecordIterator::destructor
destructor()
rolls back the transaction if a transaction lock was acquired in the constructor and keepTransactionL...
DbDataProvider::AbstractDbRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
DbDataProvider::AbstractDbRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
DbDataProvider::AbstractDbRecordIterator
Defines the record iterator class for Table-based iterators.
Definition: AbstractDbRecordIterator.qc.dox.h:34
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32