diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-21 16:27:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-21 16:27:34 +0200 |
commit | 5b6649e6f7dd256147b48197a007c23001cef647 (patch) | |
tree | debffbb24e00bc485f9675cbc5be08ec1cc8eea9 /odb/transaction.ixx | |
parent | 1e63b60696f2e3012221e3bf6430a0d66ce1ba34 (diff) |
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.
Diffstat (limited to 'odb/transaction.ixx')
-rw-r--r-- | odb/transaction.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
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 () { |