|
|
| version 1.13, 2001/08/24 07:04:25 | version 1.19, 2001/10/29 08:05:37 |
|---|---|
| Line 2 | Line 2 |
| Parser: sql driver interface. | Parser: sql driver interface. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) |
| $Id$ | $Id$ |
| Line 38 public: | Line 37 public: |
| virtual void *malloc(size_t size) =0; | virtual void *malloc(size_t size) =0; |
| /// allocates some bytes clearing them with zeros | /// allocates some bytes clearing them with zeros |
| virtual void *calloc(size_t size) =0; | virtual void *calloc(size_t size) =0; |
| /// throw exception | /// prepare throw exception |
| virtual void _throw(const char *comment) =0; | virtual void _throw(const char *comment) =0; |
| /// throw C++ exception from prepared | |
| virtual void propagate_exception() =0; | |
| public: | |
| /// regretrully public, because can't make stack frames: "nowhere to return to" | |
| jmp_buf mark; | |
| }; | }; |
| #define SQL_DRIVER_API_VERSION 0x0304 | #define SQL_DRIVER_API_VERSION 0x0100 |
| #define SQL_DRIVER_CREATE create | |
| #define SQL_DRIVER_CREATE_NAME "create" /* could not figure out how to # it :( */ | |
| /// events, occuring when SQL_Driver::query()-ing | /// events, occuring when SQL_Driver::query()-ing |
| class SQL_Driver_query_event_handlers { | class SQL_Driver_query_event_handlers { |