diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:35 +0200 |
commit | fce0bab486c0086cf0f799dc4a2b6f11376c23e1 (patch) | |
tree | 8828ec3579657f4e235e892dd1293c49dcdd4de9 | |
parent | 43904af47c138feea6a5c6e04756c70bb2e41de7 (diff) |
Add default constructor, finalized() accessor to transaction
-rw-r--r-- | odb/sqlite/transaction.hxx | 4 | ||||
-rw-r--r-- | 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 () { } |