#include <transactionitf.h>
Inheritance diagram for pqxx::TransactionItf:
Public Member Functions | |
virtual | ~TransactionItf ()=0 |
void | Commit () |
void | Abort () |
Result | Exec (const char Query[], const PGSTD::string &Desc=PGSTD::string()) |
Execute query. | |
Result | Exec (const PGSTD::string &Query, const PGSTD::string &Desc=PGSTD::string()) |
Execute query. | |
void | ProcessNotice (const char Msg[]) |
Have connection process warning message. | |
void | ProcessNotice (const PGSTD::string &Msg) |
Have connection process warning message. | |
PGSTD::string | Name () const |
ConnectionItf & | Conn () const |
Connection this transaction is running in. | |
Protected Member Functions | |
TransactionItf (ConnectionItf &, const PGSTD::string &TName=PGSTD::string()) | |
void | Begin () |
void | End () throw () |
End transaction. To be called by implementing class' destructor. | |
virtual void | DoBegin ()=0 |
To be implemented by derived implementation class. | |
virtual Result | DoExec (const char Query[])=0 |
virtual void | DoCommit ()=0 |
virtual void | DoAbort ()=0 |
Result | DirectExec (const char C[], int Retries, const char OnReconnect[]) |
Execute query on connection directly. | |
Friends | |
class | Cursor |
class | TableStream |
class | TableReader |
class | TableWriter |
All database access must be channeled through one of these classes for safety, although not all implementations of this interface need to provide full transactional integrity.
|
|
|
Create a transaction. The optional name, if given, must begin with a letter and may contain letters and digits only. |
|
|
|
Begin transaction. To be called by implementing class, typically from constructor. |
|
|
|
Connection this transaction is running in.
|
|
Execute query on connection directly.
|
|
|
|
To be implemented by derived implementation class.
|
|
|
|
|
|
End transaction. To be called by implementing class' destructor.
|
|
Execute query. Perform a query in this transaction. This version may be slightly slower than the version taking a const char[], although the difference is not likely to be very noticeable compared to the time required to execute even a simple query.
|
|
Execute query. Perform a query in this transaction.
|
|
|
|
Have connection process warning message.
|
|
Have connection process warning message.
|
|
|
|
|
|
|
|
|