From fce0bab486c0086cf0f799dc4a2b6f11376c23e1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Apr 2013 07:34:35 +0200 Subject: Add default constructor, finalized() accessor to transaction --- odb/sqlite/transaction.hxx | 4 +++- odb/sqlite/transaction.ixx | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/odb/sqlite/transaction.hxx b/odb/sqlite/transaction.hxx index beb8d64..dcbbf09 100644 --- a/odb/sqlite/transaction.hxx +++ b/odb/sqlite/transaction.hxx @@ -27,7 +27,9 @@ namespace odb typedef sqlite::connection connection_type; explicit - transaction (transaction_impl*); + transaction (transaction_impl*, bool make_current = true); + + transaction (); // Return the database this transaction is on. // diff --git a/odb/sqlite/transaction.ixx b/odb/sqlite/transaction.ixx index 05be5c8..58ee7b9 100644 --- a/odb/sqlite/transaction.ixx +++ b/odb/sqlite/transaction.ixx @@ -10,8 +10,14 @@ namespace odb namespace sqlite { inline transaction:: - transaction (transaction_impl* impl) - : odb::transaction (impl) + transaction (transaction_impl* impl, bool make_current) + : odb::transaction (impl, make_current) + { + } + + inline transaction:: + transaction () + : odb::transaction () { } -- cgit v1.1