Go to the documentation of this file.
32 #if !defined(MYSQLPP_TRANSACTION_H)
33 #define MYSQLPP_TRANSACTION_H
39 #if !defined(DOXYGEN_IGNORE)
41 class MYSQLPP_EXPORT Connection;
46 class MYSQLPP_EXPORT Transaction
91 IsolationScope scope = this_transaction,
92 bool consistent =
false);
157 #endif // !defined(MYSQLPP_TRANSACTION_H)
void commit()
Commits the transaction.
Definition: transaction.cpp:105
Declares the Transaction class.
Manages the connection to the database server.
Definition: connection.h:81
IsolationScope
Isolation level scopes defined in SQL.
Definition: transaction.h:111
Helper object for creating exception-safe SQL transactions.
Definition: transaction.h:68
A class for building and executing SQL queries.
Definition: query.h:143
Compile-time substitute for Transaction, which purposely does nothing. Use it to instantiate template...
Definition: transaction.h:159
Defines a class for building and executing SQL queries.
IsolationLevel
Transaction isolation levels defined in SQL.
Definition: transaction.h:99
~Transaction()
Destructor.
Definition: transaction.cpp:89
SimpleResult execute()
Execute built-up query.
Definition: query.cpp:186
Query query(const char *qstr=0)
Return a new query object.
Definition: connection.cpp:270
Transaction(Connection &conn, bool consistent=false)
Simple constructor.
Definition: transaction.cpp:40
@ serializable
this transaction prevents writes to any rows it accesses while it runs
Definition: transaction.h:125
@ global
change level for all transactions on the DB server
Definition: transaction.h:114
void rollback()
Rolls back the transaction.
Definition: transaction.cpp:115
Declares the Connection class.
This file includes top-level definitions for use both internal to the library, and outside it....
@ repeatable_read
other transactions do not affect repeated reads in this transaction
Definition: transaction.h:124
@ read_uncommitted
allow "dirty reads" from other transactions
Definition: transaction.h:122
@ session
change level for all transactions in this session
Definition: transaction.h:113
@ read_committed
only read rows committed by other transactions
Definition: transaction.h:123