kexi
- kexi
- kexidb
- drivers
- sqlite
- driver
31#define SQLITE_VERSION "2.8.2"
38extern const char sqlite_version[];
45#define SQLITE_ISO8859 1
53extern const char sqlite_encoding[];
59typedef struct sqlite sqlite;
78sqlite *sqlite_open( const char *filename, int mode, char **errmsg);
86void sqlite_close(sqlite *);
91typedef int (*sqlite_callback)( void*,int, char**, char**);
145#define SQLITE_ERROR 1
146#define SQLITE_INTERNAL 2
148#define SQLITE_ABORT 4
150#define SQLITE_LOCKED 6
151#define SQLITE_NOMEM 7
152#define SQLITE_READONLY 8
153#define SQLITE_INTERRUPT 9
154#define SQLITE_IOERR 10
155#define SQLITE_CORRUPT 11
156#define SQLITE_NOTFOUND 12
157#define SQLITE_FULL 13
158#define SQLITE_CANTOPEN 14
159#define SQLITE_PROTOCOL 15
160#define SQLITE_EMPTY 16
161#define SQLITE_SCHEMA 17
162#define SQLITE_TOOBIG 18
163#define SQLITE_CONSTRAINT 19
164#define SQLITE_MISMATCH 20
165#define SQLITE_MISUSE 21
166#define SQLITE_NOLFS 22
167#define SQLITE_AUTH 23
168#define SQLITE_FORMAT 24
169#define SQLITE_ROW 100
170#define SQLITE_DONE 101
181int sqlite_last_insert_rowid(sqlite*);
203int sqlite_changes(sqlite*);
209const char *sqlite_error_string( int);
210#define sqliteErrStr sqlite_error_string
218void sqlite_interrupt(sqlite*);
228int sqlite_complete( const char *sql);
252void sqlite_busy_handler(sqlite*, int(*)( void*, const char*, int), void*);
264void sqlite_busy_timeout(sqlite*, int ms);
319void sqlite_free_table( char **result);
359int sqlite_exec_printf(
361 const char *sqlFormat,
367int sqlite_exec_vprintf(
369 const char *sqlFormat,
375int sqlite_get_table_printf(
377 const char *sqlFormat,
384int sqlite_get_table_vprintf(
386 const char *sqlFormat,
393char *sqlite_mprintf( const char*,...);
401void sqlite_freemem( void *p);
407const char *sqlite_libversion( void);
408const char *sqlite_libencoding( void);
414typedef struct sqlite_func sqlite_func;
420int sqlite_create_function(
424 void (*xFunc)(sqlite_func*, int, const char**),
427int sqlite_create_aggregate(
431 void (*xStep)(sqlite_func*, int, const char**),
432 void (*xFinalize)(sqlite_func*),
448int sqlite_function_type(
453#define SQLITE_NUMERIC (-1)
454#define SQLITE_TEXT (-2)
455#define SQLITE_ARGS (-3)
474char *sqlite_set_result_string(sqlite_func*, const char*, int);
475void sqlite_set_result_int(sqlite_func*, int);
476void sqlite_set_result_double(sqlite_func*, double);
477void sqlite_set_result_error(sqlite_func*, const char*, int);
485void *sqlite_user_data(sqlite_func*);
497void *sqlite_aggregate_context(sqlite_func*, int nBytes);
504int sqlite_aggregate_count(sqlite_func*);
514int sqlite_set_authorizer(
516 int (*xAuth)( void*, int, const char*, const char*, const char*, const char*),
534#define SQLITE_CREATE_INDEX 1
535#define SQLITE_CREATE_TABLE 2
536#define SQLITE_CREATE_TEMP_INDEX 3
537#define SQLITE_CREATE_TEMP_TABLE 4
538#define SQLITE_CREATE_TEMP_TRIGGER 5
539#define SQLITE_CREATE_TEMP_VIEW 6
540#define SQLITE_CREATE_TRIGGER 7
541#define SQLITE_CREATE_VIEW 8
542#define SQLITE_DELETE 9
543#define SQLITE_DROP_INDEX 10
544#define SQLITE_DROP_TABLE 11
545#define SQLITE_DROP_TEMP_INDEX 12
546#define SQLITE_DROP_TEMP_TABLE 13
547#define SQLITE_DROP_TEMP_TRIGGER 14
548#define SQLITE_DROP_TEMP_VIEW 15
549#define SQLITE_DROP_TRIGGER 16
550#define SQLITE_DROP_VIEW 17
551#define SQLITE_INSERT 18
552#define SQLITE_PRAGMA 19
553#define SQLITE_READ 20
554#define SQLITE_SELECT 21
555#define SQLITE_TRANSACTION 22
556#define SQLITE_UPDATE 23
564#define SQLITE_IGNORE 2
571void *sqlite_trace(sqlite*, void(*xTrace)( void*, const char*), void*);
581typedef struct sqlite_vm sqlite_vm;
660 const char ***pazValue,
661 const char ***pazColName
681int sqlite_finalize(sqlite_vm*, char **pzErrMsg);
|