|
|
| version 1.27, 2003/07/24 11:31:21 | version 1.31, 2003/12/22 11:44:35 |
|---|---|
| Line 9 | Line 9 |
| #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* IDENT_SQL_DRIVER_MANAGER_H="$Date$"; | static const char * const IDENT_SQL_DRIVER_MANAGER_H="$Date$"; |
| #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 StringBody, SQL_Driver *> driver_cache_type; | typedef Hash<const String::Body, 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 StringBody, connection_cache_element_base_type*> connection_cache_type; | typedef Hash<const String::Body, connection_cache_element_base_type*> connection_cache_type; |
| private: | private: |
| Line 54 public: | Line 54 public: |
| using driver dynamic library found in table, if not loaded yet | using driver dynamic library found in table, if not loaded yet |
| checks driver version | checks driver version |
| */ | */ |
| SQL_Connection* get_connection(const String& aurl, Table *protocol2driver_and_client); | SQL_Connection* get_connection(const String& aurl, |
| Table *protocol2driver_and_client, | |
| const char* arequest_charset); | |
| private: // driver cache | private: // driver cache |
| Line 83 public: // Cache_manager | Line 85 public: // Cache_manager |
| }; | }; |
| /// global | /// global |
| extern SQL_Driver_manager SQL_driver_manager; | extern SQL_Driver_manager* SQL_driver_manager; |
| #endif | #endif |