|
|
| version 1.1, 2001/04/05 08:09:21 | version 1.2, 2001/04/05 11:01:55 |
|---|---|
| Line 31 public: | Line 31 public: |
| furl(aurl), | furl(aurl), |
| fdriver(adriver) { | fdriver(adriver) { |
| set_services(&services); | set_services(&services); // associate with services[request] |
| fdriver.connect(url_cstr, &info); | fdriver.connect(url_cstr, &connection); |
| } | } |
| void close() { | void close() { |
| set_services(0); // deassociate from request | set_services(0); // deassociate from services[request] |
| SQL_driver_manager->close_connection(furl, *this); | SQL_driver_manager->close_connection(furl, *this); |
| } | } |
| void disconnect() { fdriver.disconnect(info); } | void disconnect() { fdriver.disconnect(connection); } |
| void commit() { fdriver.commit(info); } | void commit() { fdriver.commit(connection); } |
| void rollback() { fdriver.rollback(info); } | void rollback() { fdriver.rollback(connection); } |
| void query( | |
| const char *statement, | |
| unsigned int *column_count, SQL_Driver::Cell **columns, | |
| unsigned long *row_count, SQL_Driver::Cell ***rows) { | |
| fdriver.query(connection, | |
| statement, | |
| column_count, columns, | |
| row_count, rows); | |
| } | |
| private: | private: |
| SQL_Driver& fdriver; | SQL_Driver& fdriver; |
| void *info; | void *connection; |
| const String& furl; | const String& furl; |
| }; | }; |