aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
commitae4b24d8d83a46dce969fd049a480bcaaeb0ad83 (patch)
treeca9d382e5a6516ac032d491969e08948a246537d /odb/pgsql/database.cxx
parent680b7c42d86919169d04dbd96e41adeca61c6782 (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.cxx6
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_ ()
{