49 # define SQLITE_EXTERN extern
70 #define SQLITE_DEPRECATED
71 #define SQLITE_EXPERIMENTAL
77 # undef SQLITE_VERSION
79 #ifdef SQLITE_VERSION_NUMBER
80 # undef SQLITE_VERSION_NUMBER
110 #define SQLITE_VERSION "3.7.6.3"
111 #define SQLITE_VERSION_NUMBER 3007006
112 #define SQLITE_SOURCE_ID "2011-05-19 13:26:54 ed1da510a239ea767a01dc332b667119fa3c908e"
171 #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS
245 #ifdef SQLITE_INT64_TYPE
248 #elif defined(_MSC_VER) || defined(__BORLANDC__)
262 #ifdef SQLITE_OMIT_FLOATING_POINT
263 # define double sqlite3_int64
363 int (*callback)(
void*,
int,
char**,
char**),
382 #define SQLITE_ERROR 1
383 #define SQLITE_INTERNAL 2
384 #define SQLITE_PERM 3
385 #define SQLITE_ABORT 4
386 #define SQLITE_BUSY 5
387 #define SQLITE_LOCKED 6
388 #define SQLITE_NOMEM 7
389 #define SQLITE_READONLY 8
390 #define SQLITE_INTERRUPT 9
391 #define SQLITE_IOERR 10
392 #define SQLITE_CORRUPT 11
393 #define SQLITE_NOTFOUND 12
394 #define SQLITE_FULL 13
395 #define SQLITE_CANTOPEN 14
396 #define SQLITE_PROTOCOL 15
397 #define SQLITE_EMPTY 16
398 #define SQLITE_SCHEMA 17
399 #define SQLITE_TOOBIG 18
400 #define SQLITE_CONSTRAINT 19
401 #define SQLITE_MISMATCH 20
402 #define SQLITE_MISUSE 21
403 #define SQLITE_NOLFS 22
404 #define SQLITE_AUTH 23
405 #define SQLITE_FORMAT 24
406 #define SQLITE_RANGE 25
407 #define SQLITE_NOTADB 26
408 #define SQLITE_ROW 100
409 #define SQLITE_DONE 101
435 #define SQLITE_IOERR_READ (SQLITE_IOERR | (1<<8))
436 #define SQLITE_IOERR_SHORT_READ (SQLITE_IOERR | (2<<8))
437 #define SQLITE_IOERR_WRITE (SQLITE_IOERR | (3<<8))
438 #define SQLITE_IOERR_FSYNC (SQLITE_IOERR | (4<<8))
439 #define SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8))
440 #define SQLITE_IOERR_TRUNCATE (SQLITE_IOERR | (6<<8))
441 #define SQLITE_IOERR_FSTAT (SQLITE_IOERR | (7<<8))
442 #define SQLITE_IOERR_UNLOCK (SQLITE_IOERR | (8<<8))
443 #define SQLITE_IOERR_RDLOCK (SQLITE_IOERR | (9<<8))
444 #define SQLITE_IOERR_DELETE (SQLITE_IOERR | (10<<8))
445 #define SQLITE_IOERR_BLOCKED (SQLITE_IOERR | (11<<8))
446 #define SQLITE_IOERR_NOMEM (SQLITE_IOERR | (12<<8))
447 #define SQLITE_IOERR_ACCESS (SQLITE_IOERR | (13<<8))
448 #define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8))
449 #define SQLITE_IOERR_LOCK (SQLITE_IOERR | (15<<8))
450 #define SQLITE_IOERR_CLOSE (SQLITE_IOERR | (16<<8))
451 #define SQLITE_IOERR_DIR_CLOSE (SQLITE_IOERR | (17<<8))
452 #define SQLITE_IOERR_SHMOPEN (SQLITE_IOERR | (18<<8))
453 #define SQLITE_IOERR_SHMSIZE (SQLITE_IOERR | (19<<8))
454 #define SQLITE_IOERR_SHMLOCK (SQLITE_IOERR | (20<<8))
455 #define SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8))
456 #define SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8))
457 #define SQLITE_CANTOPEN_NOTEMPDIR (SQLITE_CANTOPEN | (1<<8))
467 #define SQLITE_OPEN_READONLY 0x00000001
468 #define SQLITE_OPEN_READWRITE 0x00000002
469 #define SQLITE_OPEN_CREATE 0x00000004
470 #define SQLITE_OPEN_DELETEONCLOSE 0x00000008
471 #define SQLITE_OPEN_EXCLUSIVE 0x00000010
472 #define SQLITE_OPEN_AUTOPROXY 0x00000020
473 #define SQLITE_OPEN_MAIN_DB 0x00000100
474 #define SQLITE_OPEN_TEMP_DB 0x00000200
475 #define SQLITE_OPEN_TRANSIENT_DB 0x00000400
476 #define SQLITE_OPEN_MAIN_JOURNAL 0x00000800
477 #define SQLITE_OPEN_TEMP_JOURNAL 0x00001000
478 #define SQLITE_OPEN_SUBJOURNAL 0x00002000
479 #define SQLITE_OPEN_MASTER_JOURNAL 0x00004000
480 #define SQLITE_OPEN_NOMUTEX 0x00008000
481 #define SQLITE_OPEN_FULLMUTEX 0x00010000
482 #define SQLITE_OPEN_SHAREDCACHE 0x00020000
483 #define SQLITE_OPEN_PRIVATECACHE 0x00040000
484 #define SQLITE_OPEN_WAL 0x00080000
508 #define SQLITE_IOCAP_ATOMIC 0x00000001
509 #define SQLITE_IOCAP_ATOMIC512 0x00000002
510 #define SQLITE_IOCAP_ATOMIC1K 0x00000004
511 #define SQLITE_IOCAP_ATOMIC2K 0x00000008
512 #define SQLITE_IOCAP_ATOMIC4K 0x00000010
513 #define SQLITE_IOCAP_ATOMIC8K 0x00000020
514 #define SQLITE_IOCAP_ATOMIC16K 0x00000040
515 #define SQLITE_IOCAP_ATOMIC32K 0x00000080
516 #define SQLITE_IOCAP_ATOMIC64K 0x00000100
517 #define SQLITE_IOCAP_SAFE_APPEND 0x00000200
518 #define SQLITE_IOCAP_SEQUENTIAL 0x00000400
519 #define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 0x00000800
528 #define SQLITE_LOCK_NONE 0
529 #define SQLITE_LOCK_SHARED 1
530 #define SQLITE_LOCK_RESERVED 2
531 #define SQLITE_LOCK_PENDING 3
532 #define SQLITE_LOCK_EXCLUSIVE 4
560 #define SQLITE_SYNC_NORMAL 0x00002
561 #define SQLITE_SYNC_FULL 0x00003
562 #define SQLITE_SYNC_DATAONLY 0x00010
738 #define SQLITE_FCNTL_LOCKSTATE 1
739 #define SQLITE_GET_LOCKPROXYFILE 2
740 #define SQLITE_SET_LOCKPROXYFILE 3
741 #define SQLITE_LAST_ERRNO 4
742 #define SQLITE_FCNTL_SIZE_HINT 5
743 #define SQLITE_FCNTL_CHUNK_SIZE 6
744 #define SQLITE_FCNTL_FILE_POINTER 7
745 #define SQLITE_FCNTL_SYNC_OMITTED 8
924 int flags,
int *pOutFlags);
975 #define SQLITE_ACCESS_EXISTS 0
976 #define SQLITE_ACCESS_READWRITE 1
977 #define SQLITE_ACCESS_READ 2
1001 #define SQLITE_SHM_UNLOCK 1
1002 #define SQLITE_SHM_LOCK 2
1003 #define SQLITE_SHM_SHARED 4
1004 #define SQLITE_SHM_EXCLUSIVE 8
1014 #define SQLITE_SHM_NLOCK 8
1217 void *(*xMalloc)(int);
1219 void *(*xRealloc)(
void*,int);
1434 #define SQLITE_CONFIG_SINGLETHREAD 1
1435 #define SQLITE_CONFIG_MULTITHREAD 2
1436 #define SQLITE_CONFIG_SERIALIZED 3
1437 #define SQLITE_CONFIG_MALLOC 4
1438 #define SQLITE_CONFIG_GETMALLOC 5
1439 #define SQLITE_CONFIG_SCRATCH 6
1440 #define SQLITE_CONFIG_PAGECACHE 7
1441 #define SQLITE_CONFIG_HEAP 8
1442 #define SQLITE_CONFIG_MEMSTATUS 9
1443 #define SQLITE_CONFIG_MUTEX 10
1444 #define SQLITE_CONFIG_GETMUTEX 11
1446 #define SQLITE_CONFIG_LOOKASIDE 13
1447 #define SQLITE_CONFIG_PCACHE 14
1448 #define SQLITE_CONFIG_GETPCACHE 15
1449 #define SQLITE_CONFIG_LOG 16
1509 #define SQLITE_DBCONFIG_LOOKASIDE 1001
1510 #define SQLITE_DBCONFIG_ENABLE_FKEY 1002
1511 #define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003
2192 int (*xAuth)(
void*,
int,
const char*,
const char*,
const char*,
const char*),
2205 #define SQLITE_DENY 1
2206 #define SQLITE_IGNORE 2
2228 #define SQLITE_CREATE_INDEX 1
2229 #define SQLITE_CREATE_TABLE 2
2230 #define SQLITE_CREATE_TEMP_INDEX 3
2231 #define SQLITE_CREATE_TEMP_TABLE 4
2232 #define SQLITE_CREATE_TEMP_TRIGGER 5
2233 #define SQLITE_CREATE_TEMP_VIEW 6
2234 #define SQLITE_CREATE_TRIGGER 7
2235 #define SQLITE_CREATE_VIEW 8
2236 #define SQLITE_DELETE 9
2237 #define SQLITE_DROP_INDEX 10
2238 #define SQLITE_DROP_TABLE 11
2239 #define SQLITE_DROP_TEMP_INDEX 12
2240 #define SQLITE_DROP_TEMP_TABLE 13
2241 #define SQLITE_DROP_TEMP_TRIGGER 14
2242 #define SQLITE_DROP_TEMP_VIEW 15
2243 #define SQLITE_DROP_TRIGGER 16
2244 #define SQLITE_DROP_VIEW 17
2245 #define SQLITE_INSERT 18
2246 #define SQLITE_PRAGMA 19
2247 #define SQLITE_READ 20
2248 #define SQLITE_SELECT 21
2249 #define SQLITE_TRANSACTION 22
2250 #define SQLITE_UPDATE 23
2251 #define SQLITE_ATTACH 24
2252 #define SQLITE_DETACH 25
2253 #define SQLITE_ALTER_TABLE 26
2254 #define SQLITE_REINDEX 27
2255 #define SQLITE_ANALYZE 28
2256 #define SQLITE_CREATE_VTABLE 29
2257 #define SQLITE_DROP_VTABLE 30
2258 #define SQLITE_FUNCTION 31
2259 #define SQLITE_SAVEPOINT 32
2260 #define SQLITE_COPY 0
2289 void(*xProfile)(
void*,
const char*,sqlite3_uint64),
void*);
2413 const char *filename,
2417 const void *filename,
2421 const char *filename,
2582 #define SQLITE_LIMIT_LENGTH 0
2583 #define SQLITE_LIMIT_SQL_LENGTH 1
2584 #define SQLITE_LIMIT_COLUMN 2
2585 #define SQLITE_LIMIT_EXPR_DEPTH 3
2586 #define SQLITE_LIMIT_COMPOUND_SELECT 4
2587 #define SQLITE_LIMIT_VDBE_OP 5
2588 #define SQLITE_LIMIT_FUNCTION_ARG 6
2589 #define SQLITE_LIMIT_ATTACHED 7
2590 #define SQLITE_LIMIT_LIKE_PATTERN_LENGTH 8
2591 #define SQLITE_LIMIT_VARIABLE_NUMBER 9
2592 #define SQLITE_LIMIT_TRIGGER_DEPTH 10
3198 #define SQLITE_INTEGER 1
3199 #define SQLITE_FLOAT 2
3200 #define SQLITE_BLOB 4
3201 #define SQLITE_NULL 5
3205 # define SQLITE_TEXT 3
3207 #define SQLITE3_TEXT 3
3525 const char *zFunctionName,
3535 const void *zFunctionName,
3545 const char *zFunctionName,
3552 void(*xDestroy)(
void*)
3561 #define SQLITE_UTF8 1
3562 #define SQLITE_UTF16LE 2
3563 #define SQLITE_UTF16BE 3
3564 #define SQLITE_UTF16 4
3565 #define SQLITE_ANY 5
3566 #define SQLITE_UTF16_ALIGNED 8
3578 #ifndef SQLITE_OMIT_DEPRECATED
3772 #define SQLITE_STATIC ((sqlite3_destructor_type)0)
3773 #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1)
3981 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
3988 int(*xCompare)(
void*,
int,
const void*,
int,
const void*),
3989 void(*xDestroy)(
void*)
3996 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
4028 void(*)(
void*,
sqlite3*,
int eTextRep,
const char*)
4033 void(*)(
void*,
sqlite3*,
int eTextRep,
const void*)
4036 #ifdef SQLITE_HAS_CODEC
4046 const void *pKey,
int nKey
4059 const void *pKey,
int nKey
4067 const char *zPassPhrase
4071 #ifdef SQLITE_ENABLE_CEROD
4077 const char *zPassPhrase
4276 void(*)(
void *,
int ,
char const *,
char const *,sqlite3_int64),
4450 const char *zDbName,
4451 const char *zTableName,
4452 const char *zColumnName,
4453 char const **pzDataType,
4454 char const **pzCollSeq,
4588 int argc,
const char *
const*argv,
4591 int argc,
const char *
const*argv,
4702 #define SQLITE_INDEX_CONSTRAINT_EQ 2
4703 #define SQLITE_INDEX_CONSTRAINT_GT 4
4704 #define SQLITE_INDEX_CONSTRAINT_LE 8
4705 #define SQLITE_INDEX_CONSTRAINT_LT 16
4706 #define SQLITE_INDEX_CONSTRAINT_GE 32
4707 #define SQLITE_INDEX_CONSTRAINT_MATCH 64
4745 void(*xDestroy)(
void*)
4907 const char *zColumn,
5317 #define SQLITE_MUTEX_FAST 0
5318 #define SQLITE_MUTEX_RECURSIVE 1
5319 #define SQLITE_MUTEX_STATIC_MASTER 2
5320 #define SQLITE_MUTEX_STATIC_MEM 3
5321 #define SQLITE_MUTEX_STATIC_MEM2 4
5322 #define SQLITE_MUTEX_STATIC_OPEN 4
5323 #define SQLITE_MUTEX_STATIC_PRNG 5
5324 #define SQLITE_MUTEX_STATIC_LRU 6
5325 #define SQLITE_MUTEX_STATIC_LRU2 7
5326 #define SQLITE_MUTEX_STATIC_PMEM 7
5403 #define SQLITE_TESTCTRL_FIRST 5
5404 #define SQLITE_TESTCTRL_PRNG_SAVE 5
5405 #define SQLITE_TESTCTRL_PRNG_RESTORE 6
5406 #define SQLITE_TESTCTRL_PRNG_RESET 7
5407 #define SQLITE_TESTCTRL_BITVEC_TEST 8
5408 #define SQLITE_TESTCTRL_FAULT_INSTALL 9
5409 #define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS 10
5410 #define SQLITE_TESTCTRL_PENDING_BYTE 11
5411 #define SQLITE_TESTCTRL_ASSERT 12
5412 #define SQLITE_TESTCTRL_ALWAYS 13
5413 #define SQLITE_TESTCTRL_RESERVE 14
5414 #define SQLITE_TESTCTRL_OPTIMIZATIONS 15
5415 #define SQLITE_TESTCTRL_ISKEYWORD 16
5416 #define SQLITE_TESTCTRL_PGHDRSZ 17
5417 #define SQLITE_TESTCTRL_SCRATCHMALLOC 18
5418 #define SQLITE_TESTCTRL_LAST 18
5532 #define SQLITE_STATUS_MEMORY_USED 0
5533 #define SQLITE_STATUS_PAGECACHE_USED 1
5534 #define SQLITE_STATUS_PAGECACHE_OVERFLOW 2
5535 #define SQLITE_STATUS_SCRATCH_USED 3
5536 #define SQLITE_STATUS_SCRATCH_OVERFLOW 4
5537 #define SQLITE_STATUS_MALLOC_SIZE 5
5538 #define SQLITE_STATUS_PARSER_STACK 6
5539 #define SQLITE_STATUS_PAGECACHE_SIZE 7
5540 #define SQLITE_STATUS_SCRATCH_SIZE 8
5541 #define SQLITE_STATUS_MALLOC_COUNT 9
5625 #define SQLITE_DBSTATUS_LOOKASIDE_USED 0
5626 #define SQLITE_DBSTATUS_CACHE_USED 1
5627 #define SQLITE_DBSTATUS_SCHEMA_USED 2
5628 #define SQLITE_DBSTATUS_STMT_USED 3
5629 #define SQLITE_DBSTATUS_LOOKASIDE_HIT 4
5630 #define SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE 5
5631 #define SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL 6
5632 #define SQLITE_DBSTATUS_MAX 6
5688 #define SQLITE_STMTSTATUS_FULLSCAN_STEP 1
5689 #define SQLITE_STMTSTATUS_SORT 2
5690 #define SQLITE_STMTSTATUS_AUTOINDEX 3
6056 const char *zDestName,
6058 const char *zSourceName
6181 void (*xNotify)(
void **apArg,
int nArg),
6256 int(*)(
void *,
sqlite3*,
const char*,
int),
6391 #define SQLITE_CHECKPOINT_PASSIVE 0
6392 #define SQLITE_CHECKPOINT_FULL 1
6393 #define SQLITE_CHECKPOINT_RESTART 2
6400 #ifdef SQLITE_OMIT_FLOATING_POINT
6422 #ifndef _SQLITE3RTREE_H_
6423 #define _SQLITE3RTREE_H_