diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:05:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-30 12:08:09 +0200 |
commit | 369e571347df308c84e1b2ab855d2983f517ace3 (patch) | |
tree | cda21e05b9aeea38a2bd33a2e9a0d65e29de7c28 /odb/mysql/transaction.hxx | |
parent | bdfdc57459b83d7a559c21e081c8c20dbe6b7bf3 (diff) |
Add transaction::connection(database&) overload
Diffstat (limited to 'odb/mysql/transaction.hxx')
-rw-r--r-- | odb/mysql/transaction.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/mysql/transaction.hxx b/odb/mysql/transaction.hxx index 3cfd042..0f5ae6f 100644 --- a/odb/mysql/transaction.hxx +++ b/odb/mysql/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. // |