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/connection-factory.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/sqlite/connection-factory.hxx') diff --git a/odb/sqlite/connection-factory.hxx b/odb/sqlite/connection-factory.hxx index e687e27..8166fc4 100644 --- a/odb/sqlite/connection-factory.hxx +++ b/odb/sqlite/connection-factory.hxx @@ -27,7 +27,7 @@ namespace odb class LIBODB_SQLITE_EXPORT connection_factory { public: - virtual details::shared_ptr + virtual connection_ptr connect () = 0; public: @@ -48,7 +48,7 @@ namespace odb public: single_connection_factory (): db_ (0) {} - virtual details::shared_ptr + virtual connection_ptr connect (); virtual void @@ -104,7 +104,7 @@ namespace odb public: new_connection_factory (): db_ (0), extra_flags_ (0) {} - virtual details::shared_ptr + virtual connection_ptr connect (); virtual void @@ -154,7 +154,7 @@ namespace odb // @@ check min_ <= max_ } - virtual details::shared_ptr + virtual connection_ptr connect (); virtual void -- cgit v1.1