|
|
| version 1.1, 2001/04/04 10:53:55 | version 1.2, 2001/04/04 11:47:28 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: sql driver manager decls. | Parser: sql driver manager decl. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Line 65 private: | Line 65 private: |
| /// global | /// global |
| extern SQL_Driver_manager *SQL_driver_manager; | extern SQL_Driver_manager *SQL_driver_manager; |
| /// sql connection | |
| class SQL_Connection : public Pooled { | |
| public: | |
| SQL_Connection(Pool& pool, | |
| SQL_Driver& adriver, void *ainfo, const String& aurl) : Pooled(pool), | |
| fdriver(adriver), | |
| finfo(ainfo), | |
| furl(aurl) { | |
| } | |
| void close() { | |
| SQL_driver_manager->close_connection(furl, *this); | |
| } | |
| void disconnect() { | |
| fdriver.disconnect(finfo); | |
| } | |
| private: | |
| SQL_Driver& fdriver; | |
| void *finfo; | |
| const String& furl; | |
| }; | |
| #endif | #endif |