--- parser3/src/include/pa_sql_connection.h 2001/05/17 18:26:22 1.10 +++ parser3/src/include/pa_sql_connection.h 2001/09/26 10:32:25 1.13 @@ -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.10 2001/05/17 18:26:22 parser Exp $ + $Id: pa_sql_connection.h,v 1.13 2001/09/26 10:32:25 parser Exp $ */ #ifndef PA_SQL_CONNECTION_H @@ -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); } @@ -53,12 +55,10 @@ public: void query( const char *statement, unsigned long offset, unsigned long limit, - unsigned int *column_count, SQL_Driver::Cell **columns, - unsigned long *row_count, SQL_Driver::Cell ***rows) { + SQL_Driver_query_event_handlers& handlers) { fdriver.query(*fservices, fconnection, statement, offset, limit, - column_count, columns, - row_count, rows); + handlers); }