From 5b6649e6f7dd256147b48197a007c23001cef647 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 21 Aug 2011 16:27:34 +0200 Subject: Add odb::connection class This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection. --- odb/transaction.ixx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/transaction.ixx') diff --git a/odb/transaction.ixx b/odb/transaction.ixx index 4f2ff46..d838a9f 100644 --- a/odb/transaction.ixx +++ b/odb/transaction.ixx @@ -11,6 +11,12 @@ namespace odb return impl_->database (); } + inline transaction::connection_type& transaction:: + connection () + { + return impl_->connection (); + } + inline transaction_impl& transaction:: implementation () { -- cgit v1.1