diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 05:16:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:08 +0000 |
commit | fd28011455bd9552150031e9f4a69f5b185b4ae2 (patch) | |
tree | f1bfa778f310c387fe2645527c6065436b27e903 /libsqlitepp/sqlite-connection.h | |
parent | Add missing override attribute (diff) | |
download | libdbpp-sqlite-fd28011455bd9552150031e9f4a69f5b185b4ae2.tar.bz2 libdbpp-sqlite-fd28011455bd9552150031e9f4a69f5b185b4ae2.tar.xz libdbpp-sqlite-fd28011455bd9552150031e9f4a69f5b185b4ae2.zip |
Improve and centralise transaction handling logiclibdbpp-sqlite-1.0.0
Diffstat (limited to 'libsqlitepp/sqlite-connection.h')
-rw-r--r-- | libsqlitepp/sqlite-connection.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libsqlitepp/sqlite-connection.h b/libsqlitepp/sqlite-connection.h index 4f705a3..f3f354d 100644 --- a/libsqlitepp/sqlite-connection.h +++ b/libsqlitepp/sqlite-connection.h @@ -16,11 +16,9 @@ namespace SQLite { 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; @@ -31,10 +29,6 @@ namespace SQLite { int64_t insertId() override; sqlite3 * db; - - private: - mutable unsigned int txDepth; - mutable bool rolledback; }; } |