diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-24 13:42:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-24 13:42:04 +0200 |
commit | ae4b24d8d83a46dce969fd049a480bcaaeb0ad83 (patch) | |
tree | ca9d382e5a6516ac032d491969e08948a246537d /odb/pgsql/database.cxx | |
parent | 680b7c42d86919169d04dbd96e41adeca61c6782 (diff) |
Add support for transaction multiplexing
Also delay getting a connection until after we do all the sanity
checks (e.g., that there is no active transaction). Otherwise we
are running risk of getting blocked rather than throwing an
exception.
Diffstat (limited to 'odb/pgsql/database.cxx')
-rw-r--r-- | odb/pgsql/database.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/pgsql/database.cxx b/odb/pgsql/database.cxx index 050961f..8d8b797 100644 --- a/odb/pgsql/database.cxx +++ b/odb/pgsql/database.cxx @@ -208,6 +208,12 @@ namespace odb { } + transaction_impl* database:: + begin () + { + return new transaction_impl (*this); + } + odb::connection* database:: connection_ () { |