From c6019273a7564be9ed772d45aa95e09aaff37a23 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Apr 2021 12:06:15 +0200 Subject: Add transaction::connection(database&) overload --- odb/pgsql/transaction.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'odb/pgsql/transaction.hxx') 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. // -- cgit v1.1