|
|
| version 1.34, 2008/06/26 09:41:31 | version 1.38, 2015/10/26 01:21:56 |
|---|---|
| Line 2 | Line 2 |
| Parser: sql driver manager decl. | Parser: sql driver manager decl. |
| global sql driver manager, must be thread-safe | global sql driver manager, must be thread-safe |
| Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| #ifndef PA_SQL_DRIVER_MANAGER_H | #ifndef PA_SQL_DRIVER_MANAGER_H |
| #define PA_SQL_DRIVER_MANAGER_H | #define PA_SQL_DRIVER_MANAGER_H |
| static const char * const IDENT_SQL_DRIVER_MANAGER_H="$Date$"; | #define IDENT_PA_SQL_DRIVER_MANAGER_H "$Id$" |
| #include "pa_sql_driver.h" | #include "pa_sql_driver.h" |
| Line 32 class SQL_Connection; | Line 32 class SQL_Connection; |
| class SQL_Driver_manager: public Cache_manager { | class SQL_Driver_manager: public Cache_manager { |
| public: | public: |
| typedef Hash<const String::Body, SQL_Driver *> driver_cache_type; | typedef HashString<SQL_Driver *> driver_cache_type; |
| typedef Stack<SQL_Connection*> connection_cache_element_base_type; | typedef Stack<SQL_Connection*> connection_cache_element_base_type; |
| typedef Hash<const String::Body, connection_cache_element_base_type*> connection_cache_type; | typedef HashString<connection_cache_element_base_type*> connection_cache_type; |
| private: | private: |
| friend class SQL_Connection; | friend class SQL_Connection; |
| bool is_dlinited; | |
| driver_cache_type driver_cache; | driver_cache_type driver_cache; |
| connection_cache_type connection_cache; | connection_cache_type connection_cache; |