--- parser3/src/include/pa_sql_connection.h 2001/07/23 11:19:25 1.11 +++ parser3/src/include/pa_sql_connection.h 2001/10/22 16:44:42 1.14 @@ -2,10 +2,9 @@ Parser: sql fconnection decl. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sql_connection.h,v 1.11 2001/07/23 11:19:25 parser Exp $ + $Id: pa_sql_connection.h,v 1.14 2001/10/22 16:44:42 parser Exp $ */ #ifndef PA_SQL_CONNECTION_H @@ -16,7 +15,7 @@ #include "pa_sql_driver.h" #include "pa_sql_driver_manager.h" -/// SQL fconnection. handy wrapper around low level SQL_Driver +/// SQL connection. handy wrapper around low level SQL_Driver class SQL_Connection : public Pooled { public: @@ -27,6 +26,9 @@ public: fconnection(0), time_stamp(0) { } + + const String& url() { return furl; } + void set_services(SQL_Driver_services *aservices) { time_stamp=time(0); // they started to use at this time fservices=aservices; @@ -43,7 +45,7 @@ public: void connect(char *used_only_in_connect_url_cstr) { fdriver.connect(used_only_in_connect_url_cstr, *fservices, &fconnection); } - void disconnect() { fdriver.disconnect(*fservices, fconnection); fconnection=0; } + void disconnect() { fdriver.disconnect(fconnection); fconnection=0; } void commit() { fdriver.commit(*fservices, fconnection); } void rollback() { fdriver.rollback(*fservices, fconnection); } bool ping() { return fdriver.ping(*fservices, fconnection); }