summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 05:16:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:08 +0000
commita9959465c36b04cbf2e0aaeca4ce78ca77e1a445 (patch)
tree80f6282a5f9845d9b0169e765d2f4199b30f9dca /libmysqlpp/my-connection.h
parentTidy up (diff)
downloadlibdbpp-mysql-a9959465c36b04cbf2e0aaeca4ce78ca77e1a445.tar.bz2
libdbpp-mysql-a9959465c36b04cbf2e0aaeca4ce78ca77e1a445.tar.xz
libdbpp-mysql-a9959465c36b04cbf2e0aaeca4ce78ca77e1a445.zip
Improve and centralise transaction handling logiclibdbpp-mysql-1.0.0
Diffstat (limited to 'libmysqlpp/my-connection.h')
-rw-r--r--libmysqlpp/my-connection.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h
index 238200e..2ffae0d 100644
--- a/libmysqlpp/my-connection.h
+++ b/libmysqlpp/my-connection.h
@@ -19,11 +19,9 @@ namespace MySQL {
Connection(const std::string & info);
~Connection();
- void finish() const override;
- int beginTx() const override;
- int commitTx() const override;
- int rollbackTx() const override;
- bool inTx() const override;
+ void beginTxInt() override;
+ void commitTxInt() override;
+ void rollbackTxInt() override;
void ping() const override;
DB::BulkDeleteStyle bulkDeleteStyle() const override;
DB::BulkUpdateStyle bulkUpdateStyle() const override;
@@ -42,9 +40,6 @@ namespace MySQL {
private:
my_bool my_true;
- mutable unsigned int txDepth;
- mutable bool rolledback;
-
mutable boost::shared_ptr<LoadContext> ctx;
};
}