18 #define DB_VERSION "0" 21 #define DB_DEFAULT_DRIVER "sqlite" 23 #define DB_DEFAULT_DRIVER "dbf" 27 #define DB_PROC_VERSION 999 29 #define DB_PROC_CLOSE_DATABASE 101 30 #define DB_PROC_CREATE_DATABASE 102 31 #define DB_PROC_DELETE_DATABASE 103 32 #define DB_PROC_FIND_DATABASE 104 33 #define DB_PROC_LIST_DATABASES 105 34 #define DB_PROC_OPEN_DATABASE 106 35 #define DB_PROC_SHUTDOWN_DRIVER 107 37 #define DB_PROC_CLOSE_CURSOR 201 38 #define DB_PROC_DELETE 202 39 #define DB_PROC_FETCH 203 40 #define DB_PROC_INSERT 204 41 #define DB_PROC_OPEN_INSERT_CURSOR 205 42 #define DB_PROC_OPEN_SELECT_CURSOR 206 43 #define DB_PROC_OPEN_UPDATE_CURSOR 207 44 #define DB_PROC_UPDATE 208 45 #define DB_PROC_ROWS 209 46 #define DB_PROC_BIND_UPDATE 220 47 #define DB_PROC_BIND_INSERT 221 49 #define DB_PROC_EXECUTE_IMMEDIATE 301 50 #define DB_PROC_BEGIN_TRANSACTION 302 51 #define DB_PROC_COMMIT_TRANSACTION 303 53 #define DB_PROC_CREATE_TABLE 401 54 #define DB_PROC_DESCRIBE_TABLE 402 55 #define DB_PROC_DROP_TABLE 403 56 #define DB_PROC_LIST_TABLES 404 57 #define DB_PROC_ADD_COLUMN 405 58 #define DB_PROC_DROP_COLUMN 406 59 #define DB_PROC_GRANT_ON_TABLE 407 61 #define DB_PROC_CREATE_INDEX 701 62 #define DB_PROC_LIST_INDEXES 702 63 #define DB_PROC_DROP_INDEX 703 74 #define DB_MEMORY_ERR -1 75 #define DB_PROTOCOL_ERR -2 79 #define DB_SQL_TYPE_UNKNOWN 0 81 #define DB_SQL_TYPE_CHARACTER 1 82 #define DB_SQL_TYPE_SMALLINT 2 83 #define DB_SQL_TYPE_INTEGER 3 84 #define DB_SQL_TYPE_REAL 4 85 #define DB_SQL_TYPE_DOUBLE_PRECISION 6 86 #define DB_SQL_TYPE_DECIMAL 7 87 #define DB_SQL_TYPE_NUMERIC 8 88 #define DB_SQL_TYPE_DATE 9 89 #define DB_SQL_TYPE_TIME 10 90 #define DB_SQL_TYPE_TIMESTAMP 11 91 #define DB_SQL_TYPE_INTERVAL 12 92 #define DB_SQL_TYPE_TEXT 13 94 #define DB_SQL_TYPE_SERIAL 21 97 #define DB_YEAR 0x4000 98 #define DB_MONTH 0x2000 100 #define DB_HOUR 0x0800 101 #define DB_MINUTE 0x0400 102 #define DB_SECOND 0x0200 103 #define DB_FRACTION 0x0100 104 #define DB_DATETIME_MASK 0xFF00 107 #define DB_C_TYPE_STRING 1 108 #define DB_C_TYPE_INT 2 109 #define DB_C_TYPE_DOUBLE 3 110 #define DB_C_TYPE_DATETIME 4 115 #define DB_PREVIOUS 3 120 #define DB_READONLY 1 123 #define DB_SEQUENTIAL 0 125 #define DB_INSENSITIVE 4 129 #define DB_NOT_GRANTED -1 132 #define DB_PRIV_SELECT 0x01 134 #define DB_GROUP 0x01 135 #define DB_PUBLIC 0x02 139 #define DB_UNDEFINED 2 142 #define DB_SQL_MAX 8192 155 char driverName[256];
struct _db_date_time dbDateTime
struct _db_string dbString
struct _db_cursor dbCursor
struct _db_handle dbHandle
struct _db_dirent dbDirent
struct _db_connection dbConnection
struct _db_driver dbDriver
struct _dbmscap dbDbmscap
struct _db_column dbColumn
struct _db_driver_state dbDriverState