6 m_localActive(
false ){
15 m_session.startTransaction( readOnly );
23 bool committed =
false;
25 m_session.commitTransaction();
26 m_localActive =
false;
35 m_session.rollbackTransaction();
36 m_localActive =
false;
43 if( !m_session.isConnected() )
return false;
44 return m_session.isTransactionActive( checkIfReadOnly );
bool isActive(bool checkIfReadOnly=false) const
Checks if the transaction is active.
bool start(bool readOnly=true)
Starts a new transaction. Returns the success of the operation.
virtual ~Transaction()
Default destructor.
bool rollback()
Rolls back the transaction.
bool commit()
Commits the transaction.
Transaction(DatabaseSession &session)
volatile std::atomic< bool > shutdown_flag false