00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef PQXX_NONTRANSACTION_H
00015 #define PQXX_NONTRANSACTION_H
00016
00017 #include "pqxx/connectionitf.h"
00018 #include "pqxx/result.h"
00019 #include "pqxx/transactionitf.h"
00020
00021
00022
00023
00024
00025 namespace pqxx
00026 {
00028
00044 class PQXX_LIBEXPORT NonTransaction : public TransactionItf
00045 {
00046 public:
00048
00053 explicit NonTransaction(ConnectionItf &C,
00054 const PGSTD::string &NName=PGSTD::string()) :
00055 TransactionItf(C, NName) { Begin(); }
00056
00057 virtual ~NonTransaction();
00058
00059 private:
00060 virtual void DoBegin() {}
00061 virtual Result DoExec(const char C[]);
00062 virtual void DoCommit() {}
00063 virtual void DoAbort() {}
00064 };
00065
00066 }
00067
00068 #endif
00069