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/forward.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/sqlite/forward.hxx') diff --git a/odb/sqlite/forward.hxx b/odb/sqlite/forward.hxx index 63c3be4..a4e3376 100644 --- a/odb/sqlite/forward.hxx +++ b/odb/sqlite/forward.hxx @@ -16,6 +16,7 @@ namespace odb { class database; class connection; + typedef details::shared_ptr connection_ptr; class connection_factory; class transaction; class query; @@ -37,6 +38,12 @@ namespace odb namespace details { template <> + struct counter_type + { + typedef shared_base counter; + }; + + template <> struct counter_type { typedef shared_base counter; -- cgit v1.1