From 5694c0a4529334756f2b914ad67408df199551dc 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/sqlite/transaction-impl.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odb/sqlite/transaction-impl.hxx') diff --git a/odb/sqlite/transaction-impl.hxx b/odb/sqlite/transaction-impl.hxx index 3b09bcf..8b5687b 100644 --- a/odb/sqlite/transaction-impl.hxx +++ b/odb/sqlite/transaction-impl.hxx @@ -22,7 +22,7 @@ namespace odb class LIBODB_SQLITE_EXPORT transaction_impl: public odb::transaction_impl { protected: - friend class database; + friend class connection; friend class transaction; typedef sqlite::database database_type; @@ -35,7 +35,7 @@ namespace odb exclusive }; - transaction_impl (database_type&, lock); + transaction_impl (connection_ptr, lock); virtual ~transaction_impl (); @@ -50,7 +50,7 @@ namespace odb connection (); private: - details::shared_ptr connection_; + connection_ptr connection_; }; } } -- cgit v1.1