From fd28011455bd9552150031e9f4a69f5b185b4ae2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 05:16:51 +0000 Subject: Improve and centralise transaction handling logic --- libsqlitepp/sqlite-connection.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'libsqlitepp/sqlite-connection.h') 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; }; } -- cgit v1.2.3