diff options
author | randomdan <randomdan@localhost> | 2006-09-21 23:14:28 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2006-09-21 23:14:28 +0000 |
commit | 951e67b64812128249f572b60e7ca012bad28bfc (patch) | |
tree | 85b64c53883077e9ec11fe442ba60ee76d1a5431 /libodbcpp/connection.h | |
parent | libcodbcpp initial release (diff) | |
download | libdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.tar.bz2 libdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.tar.xz libdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.zip |
Fix the C++ template errors
Add some half decent transaction support
Change the error handling to not 'handle' _with_info
Diffstat (limited to 'libodbcpp/connection.h')
-rw-r--r-- | libodbcpp/connection.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h index d5adb31..8593e82 100644 --- a/libodbcpp/connection.h +++ b/libodbcpp/connection.h @@ -11,6 +11,15 @@ namespace ODBC { ~Connection(); SQLHENV env; SQLHDBC conn; + + int beginTx(); + int commitTx(); + int rollbackTx(); + void abortTx() const; + bool txIsAborted() const; + private: + mutable unsigned int txDepth; + mutable bool txAborted; }; } |