|Transaction (DataStore *db, const QString &name, bool beginTransaction=true)|
Helper class for DataStore transaction handling.
Works similar to QMutexLocker. Supports command-local and session-global transactions.
Constructor & Destructor Documentation
Starts a new transaction.
The transaction will automatically rolled back on destruction if it hasn't been committed explicitly before. If there is already a global transaction in progress, this one will be used instead of creating a new one.
db The corresponding DataStore. You must not delete
dbduring the lifetime of a Transaction object.
name A name of the transaction. Used for debugging. beginTransaction if false, the transaction won't be started, until begin is explicitly called. The default is to begin the transaction right away.
Member Function Documentation
The documentation for this class was generated from the following files: