|
|
| version 1.5, 2001/04/17 19:31:11 | version 1.7, 2001/05/17 10:22:24 |
|---|---|
| Line 11 | Line 11 |
| #ifndef PA_SQL_CONNECTION_H | #ifndef PA_SQL_CONNECTION_H |
| #define PA_SQL_CONNECTION_H | #define PA_SQL_CONNECTION_H |
| #include "pa_config_includes.h" | |
| #include "pa_pool.h" | #include "pa_pool.h" |
| #include "pa_sql_driver.h" | #include "pa_sql_driver.h" |
| #include "pa_sql_driver_manager.h" | #include "pa_sql_driver_manager.h" |
| Line 27 public: | Line 28 public: |
| SQL_Connection(Pool& pool, | SQL_Connection(Pool& pool, |
| const String& aurl, | const String& aurl, |
| SQL_Driver& adriver, SQL_Driver_services& services, | SQL_Driver& adriver, SQL_Driver_services& services, |
| char *url_cstr) : Pooled(pool), | char *used_only_in_constructor_url_cstr) : Pooled(pool), |
| furl(aurl), | furl(aurl), |
| fdriver(adriver) { | fdriver(adriver) { |
| set_services(&services); // associate with services[request] | set_services(&services); // associate with services[request] |
| fdriver.connect(url_cstr, &connection); | fdriver.connect(used_only_in_constructor_url_cstr, &connection); |
| } | } |
| void close() { | void close() { |