--- parser3/src/include/pa_sql_driver_manager.h 2001/11/08 14:47:31 1.18 +++ parser3/src/include/pa_sql_driver_manager.h 2003/01/21 15:51:11 1.26 @@ -2,16 +2,15 @@ Parser: sql driver manager decl. global sql driver manager, must be thread-safe - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_sql_driver_manager.h,v 1.18 2001/11/08 14:47:31 paf Exp $ + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_SQL_DRIVER_MANAGER_H #define PA_SQL_DRIVER_MANAGER_H -#include "pa_config_includes.h" +static const char* IDENT_SQL_DRIVER_MANAGER_H="$Date: 2003/01/21 15:51:11 $"; + #include "pa_pool.h" #include "pa_sql_driver.h" #include "pa_hash.h" @@ -27,6 +26,7 @@ // forwards class SQL_Connection; +class SQL_Connection_ptr; /// sql driver manager class SQL_Driver_manager : public Cache_manager { @@ -34,14 +34,14 @@ class SQL_Driver_manager : public Cache_ public: SQL_Driver_manager(Pool& apool); - ~SQL_Driver_manager(); + virtual ~SQL_Driver_manager(); /** connect to specified url, using driver dynamic library found in table, if not loaded yet checks driver version */ - SQL_Connection& get_connection(const String& url, const String& request_origin, + SQL_Connection_ptr get_connection(const String& url, const String& request_origin, Table *protocol2driver_and_client); private: // driver cache