#include <dbtransaction.hxx>
Inheritance diagram for pqxx::dbtransaction:
Protected Member Functions | |
dbtransaction (connection_base &, const PGSTD::string &IsolationString) | |
dbtransaction (connection_base &, bool direct=true) | |
virtual | ~dbtransaction () |
void | start_backend_transaction () |
Start a transaction on the backend and set desired isolation level. | |
virtual void | do_begin () |
Sensible default implemented here: begin backend transaction. | |
virtual result | do_exec (const char Query[]) |
Sensible default implemented here: perform query. | |
virtual void | do_commit ()=0 |
To be implemented by derived class: commit backend transaction. | |
virtual void | do_abort () |
Sensible default implemented here: abort backend transaction. | |
Static Protected Member Functions | |
static PGSTD::string | fullname (const PGSTD::string &ttype, const PGSTD::string &isolation) |
pqxx::dbtransaction::dbtransaction | ( | connection_base & | , | |
const PGSTD::string & | IsolationString | |||
) | [protected] |
pqxx::dbtransaction::dbtransaction | ( | connection_base & | , | |
bool | direct = true | |||
) | [explicit, protected] |
pqxx::dbtransaction::~dbtransaction | ( | ) | [protected, virtual] |
void pqxx::dbtransaction::start_backend_transaction | ( | ) | [protected] |
Start a transaction on the backend and set desired isolation level.
void pqxx::dbtransaction::do_begin | ( | ) | [protected, virtual] |
pqxx::result pqxx::dbtransaction::do_exec | ( | const char | Query[] | ) | [protected, virtual] |
virtual void pqxx::dbtransaction::do_commit | ( | ) | [protected, pure virtual] |
void pqxx::dbtransaction::do_abort | ( | ) | [protected, virtual] |
Sensible default implemented here: abort backend transaction.
Default implementation does two things:
Implements pqxx::transaction_base.
string pqxx::dbtransaction::fullname | ( | const PGSTD::string & | ttype, | |
const PGSTD::string & | isolation | |||
) | [static, protected] |