--- parser3/src/include/pa_sql_connection.h 2001/04/05 11:50:08 1.3 +++ parser3/src/include/pa_sql_connection.h 2001/04/17 19:31:11 1.5 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sql_connection.h,v 1.3 2001/04/05 11:50:08 paf Exp $ + $Id: pa_sql_connection.h,v 1.5 2001/04/17 19:31:11 paf Exp $ */ #ifndef PA_SQL_CONNECTION_H @@ -13,20 +13,20 @@ #include "pa_pool.h" #include "pa_sql_driver.h" -#include "pa_exception.h" +#include "pa_sql_driver_manager.h" -/// sql connection +/// SQL connection. handy wrapper around low level SQL_Driver class SQL_Connection : public Pooled { public: - void set_services(Services_for_SQL_driver *services) { + void set_services(SQL_Driver_services *services) { fdriver.set_services(services); } SQL_Connection(Pool& pool, const String& aurl, - SQL_Driver& adriver, Services_for_SQL_driver& services, + SQL_Driver& adriver, SQL_Driver_services& services, char *url_cstr) : Pooled(pool), furl(aurl), fdriver(adriver) { @@ -44,6 +44,10 @@ public: void commit() { fdriver.commit(connection); } void rollback() { fdriver.rollback(connection); } bool ping() { return fdriver.ping(connection); } + uint quote(char *to, const char *from, unsigned int length) { + return fdriver.quote(connection, to, from, length); + } + void query( const char *statement, unsigned long offset, unsigned long limit, unsigned int *column_count, SQL_Driver::Cell **columns,