diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:05:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:05:27 +0200 |
commit | 1ee222df81fc2ad5cef3236eb6d481b50699c2ab (patch) | |
tree | 26fd8801c8a8137f3a662588de99e94a0ed4faa9 /odb/tracer/database.cxx | |
parent | 2c57577ac8995a83182190ae94e6b28f4715ca04 (diff) |
Get rid of the session mechanism for now
Add low-level API instead.
Diffstat (limited to 'odb/tracer/database.cxx')
-rw-r--r-- | odb/tracer/database.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/odb/tracer/database.cxx b/odb/tracer/database.cxx index 5d59c16..74a87f2 100644 --- a/odb/tracer/database.cxx +++ b/odb/tracer/database.cxx @@ -3,7 +3,6 @@ // copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file -#include <odb/session.hxx> #include <odb/transaction.hxx> #include <odb/tracer/database.hxx> @@ -22,19 +21,7 @@ namespace odb if (odb::transaction::has_current ()) throw already_in_transaction (); - if (session::has_current ()) - return new transaction_impl (*this, session::current ()); - else - return new transaction_impl (*this); - } - - transaction_impl* database:: - begin_transaction (session& s) - { - if (odb::transaction::has_current ()) - throw already_in_transaction (); - - return new transaction_impl (*this, s); + return new transaction_impl (*this); } } } |