KDb
KDbTransactionGuard.h
33 * KDbTransactionGuard object in the meantime, nothing happens on KDbTransactionGuard's destruction.
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
const KDbTransaction transaction() const
Returns transaction that is controlled by this guard.
Definition KDbTransaction.cpp:261
bool commit(KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Commits the guarded transaction.
Definition KDbTransaction.cpp:240
bool rollback(KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions())
Rolls back the guarded transaction.
Definition KDbTransaction.cpp:248
void setTransaction(const KDbTransaction &transaction)
Assigns transaction to this guard.
Definition KDbTransaction.cpp:235
KDbTransactionGuard(KDbConnection *connection)
Starts a new transaction for given connection and guards it.
Definition KDbTransaction.cpp:203
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.