From bde4f5c3bddb437c5238bcb6dd2311bc57600ef1 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/tracer/transaction-impl.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'odb/tracer/transaction-impl.hxx') diff --git a/odb/tracer/transaction-impl.hxx b/odb/tracer/transaction-impl.hxx index a4d2b40..f926183 100644 --- a/odb/tracer/transaction-impl.hxx +++ b/odb/tracer/transaction-impl.hxx @@ -9,25 +9,24 @@ #include #include +#include +#include #include namespace odb { namespace tracer { - class database; - class transaction; - class LIBODB_TRACER_EXPORT transaction_impl: public odb::transaction_impl { protected: - friend class database; + friend class connection; friend class transaction; typedef tracer::database database_type; - transaction_impl (database_type&); + transaction_impl (connection_ptr); virtual ~transaction_impl (); @@ -40,6 +39,7 @@ namespace odb private: bool finalized_; + connection_ptr connection_; }; } } -- cgit v1.1