diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:06:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:08:30 +0200 |
commit | c6019273a7564be9ed772d45aa95e09aaff37a23 (patch) | |
tree | 501c84ed459866611032a705052aa57045a67c5f /odb/pgsql/transaction.hxx | |
parent | 38e203158a865d08070a4a72dcc1fee2cdacb952 (diff) |
Add transaction::connection(database&) overload
Diffstat (limited to 'odb/pgsql/transaction.hxx')
-rw-r--r-- | odb/pgsql/transaction.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/pgsql/transaction.hxx b/odb/pgsql/transaction.hxx index f1240ec..e83c754 100644 --- a/odb/pgsql/transaction.hxx +++ b/odb/pgsql/transaction.hxx @@ -41,6 +41,9 @@ namespace odb connection_type& connection (); + connection_type& + connection (odb::database&); + // Return current transaction or throw if there is no transaction // in effect. // |