|
|
| version 1.1, 2001/04/05 08:09:25 | version 1.2, 2001/04/05 11:01:58 |
|---|---|
| Line 29 | Line 29 |
| #ifndef PA_SQL_DRIVER_H | #ifndef PA_SQL_DRIVER_H |
| #define PA_SQL_DRIVER_H | #define PA_SQL_DRIVER_H |
| #include "pa_pool.h" | #include <sys/types.h> |
| /// service functions for SQL driver to use | /// service functions for SQL driver to use |
| class Services_for_SQL_driver { | class Services_for_SQL_driver { |
| Line 48 public: | Line 48 public: |
| class SQL_Driver { | class SQL_Driver { |
| public: | public: |
| struct Cell { | |
| void *ptr; | |
| size_t size; | |
| }; | |
| public: | |
| /// assignes services to driver. you can not use driver until this | /// assignes services to driver. you can not use driver until this |
| void set_services(Services_for_SQL_driver *aservices) { fservices=aservices; } | void set_services(Services_for_SQL_driver *aservices) { fservices=aservices; } |
| Line 61 public: | Line 68 public: |
| virtual void disconnect(void *connection) =0; | virtual void disconnect(void *connection) =0; |
| virtual void commit(void *connection) =0; | virtual void commit(void *connection) =0; |
| virtual void rollback(void *connection) =0; | virtual void rollback(void *connection) =0; |
| virtual void query(void *connection, | |
| const char *statement, | |
| unsigned int *column_count, Cell **columns, | |
| unsigned long *row_count, Cell ***rows) =0; | |
| /// log error message | /// log error message |
| //static void log(Pool& pool, const char *fmt, ...); | //static void log(Pool& pool, const char *fmt, ...); |