21 #define SQLITE_AMALGAMATION 1 22 #ifndef SQLITE_PRIVATE 23 # define SQLITE_PRIVATE static 77 # define SQLITE_EXTERN extern 98 #define SQLITE_DEPRECATED 99 #define SQLITE_EXPERIMENTAL 104 #ifdef SQLITE_VERSION 105 # undef SQLITE_VERSION 107 #ifdef SQLITE_VERSION_NUMBER 108 # undef SQLITE_VERSION_NUMBER 138 #define SQLITE_VERSION "3.8.2" 139 #define SQLITE_VERSION_NUMBER 3008002 140 #define SQLITE_SOURCE_ID "2013-12-06 14:53:30 27392118af4c38c5203a04b8013e1afdb1cebd0d" 199 #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS 274 #ifdef SQLITE_INT64_TYPE 277 #elif defined(_MSC_VER) || defined(__BORLANDC__) 291 #ifdef SQLITE_OMIT_FLOATING_POINT 292 # define double sqlite3_int64 410 int (*callback)(
void*,
int,
char**,
char**),
430 #define SQLITE_ERROR 1 431 #define SQLITE_INTERNAL 2 432 #define SQLITE_PERM 3 433 #define SQLITE_ABORT 4 434 #define SQLITE_BUSY 5 435 #define SQLITE_LOCKED 6 436 #define SQLITE_NOMEM 7 437 #define SQLITE_READONLY 8 438 #define SQLITE_INTERRUPT 9 439 #define SQLITE_IOERR 10 440 #define SQLITE_CORRUPT 11 441 #define SQLITE_NOTFOUND 12 442 #define SQLITE_FULL 13 443 #define SQLITE_CANTOPEN 14 444 #define SQLITE_PROTOCOL 15 445 #define SQLITE_EMPTY 16 446 #define SQLITE_SCHEMA 17 447 #define SQLITE_TOOBIG 18 448 #define SQLITE_CONSTRAINT 19 449 #define SQLITE_MISMATCH 20 450 #define SQLITE_MISUSE 21 451 #define SQLITE_NOLFS 22 452 #define SQLITE_AUTH 23 453 #define SQLITE_FORMAT 24 454 #define SQLITE_RANGE 25 455 #define SQLITE_NOTADB 26 456 #define SQLITE_NOTICE 27 457 #define SQLITE_WARNING 28 458 #define SQLITE_ROW 100 459 #define SQLITE_DONE 101 485 #define SQLITE_IOERR_READ (SQLITE_IOERR | (1<<8)) 486 #define SQLITE_IOERR_SHORT_READ (SQLITE_IOERR | (2<<8)) 487 #define SQLITE_IOERR_WRITE (SQLITE_IOERR | (3<<8)) 488 #define SQLITE_IOERR_FSYNC (SQLITE_IOERR | (4<<8)) 489 #define SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8)) 490 #define SQLITE_IOERR_TRUNCATE (SQLITE_IOERR | (6<<8)) 491 #define SQLITE_IOERR_FSTAT (SQLITE_IOERR | (7<<8)) 492 #define SQLITE_IOERR_UNLOCK (SQLITE_IOERR | (8<<8)) 493 #define SQLITE_IOERR_RDLOCK (SQLITE_IOERR | (9<<8)) 494 #define SQLITE_IOERR_DELETE (SQLITE_IOERR | (10<<8)) 495 #define SQLITE_IOERR_BLOCKED (SQLITE_IOERR | (11<<8)) 496 #define SQLITE_IOERR_NOMEM (SQLITE_IOERR | (12<<8)) 497 #define SQLITE_IOERR_ACCESS (SQLITE_IOERR | (13<<8)) 498 #define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8)) 499 #define SQLITE_IOERR_LOCK (SQLITE_IOERR | (15<<8)) 500 #define SQLITE_IOERR_CLOSE (SQLITE_IOERR | (16<<8)) 501 #define SQLITE_IOERR_DIR_CLOSE (SQLITE_IOERR | (17<<8)) 502 #define SQLITE_IOERR_SHMOPEN (SQLITE_IOERR | (18<<8)) 503 #define SQLITE_IOERR_SHMSIZE (SQLITE_IOERR | (19<<8)) 504 #define SQLITE_IOERR_SHMLOCK (SQLITE_IOERR | (20<<8)) 505 #define SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21<<8)) 506 #define SQLITE_IOERR_SEEK (SQLITE_IOERR | (22<<8)) 507 #define SQLITE_IOERR_DELETE_NOENT (SQLITE_IOERR | (23<<8)) 508 #define SQLITE_IOERR_MMAP (SQLITE_IOERR | (24<<8)) 509 #define SQLITE_IOERR_GETTEMPPATH (SQLITE_IOERR | (25<<8)) 510 #define SQLITE_IOERR_CONVPATH (SQLITE_IOERR | (26<<8)) 511 #define SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8)) 512 #define SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8)) 513 #define SQLITE_BUSY_SNAPSHOT (SQLITE_BUSY | (2<<8)) 514 #define SQLITE_CANTOPEN_NOTEMPDIR (SQLITE_CANTOPEN | (1<<8)) 515 #define SQLITE_CANTOPEN_ISDIR (SQLITE_CANTOPEN | (2<<8)) 516 #define SQLITE_CANTOPEN_FULLPATH (SQLITE_CANTOPEN | (3<<8)) 517 #define SQLITE_CANTOPEN_CONVPATH (SQLITE_CANTOPEN | (4<<8)) 518 #define SQLITE_CORRUPT_VTAB (SQLITE_CORRUPT | (1<<8)) 519 #define SQLITE_READONLY_RECOVERY (SQLITE_READONLY | (1<<8)) 520 #define SQLITE_READONLY_CANTLOCK (SQLITE_READONLY | (2<<8)) 521 #define SQLITE_READONLY_ROLLBACK (SQLITE_READONLY | (3<<8)) 522 #define SQLITE_ABORT_ROLLBACK (SQLITE_ABORT | (2<<8)) 523 #define SQLITE_CONSTRAINT_CHECK (SQLITE_CONSTRAINT | (1<<8)) 524 #define SQLITE_CONSTRAINT_COMMITHOOK (SQLITE_CONSTRAINT | (2<<8)) 525 #define SQLITE_CONSTRAINT_FOREIGNKEY (SQLITE_CONSTRAINT | (3<<8)) 526 #define SQLITE_CONSTRAINT_FUNCTION (SQLITE_CONSTRAINT | (4<<8)) 527 #define SQLITE_CONSTRAINT_NOTNULL (SQLITE_CONSTRAINT | (5<<8)) 528 #define SQLITE_CONSTRAINT_PRIMARYKEY (SQLITE_CONSTRAINT | (6<<8)) 529 #define SQLITE_CONSTRAINT_TRIGGER (SQLITE_CONSTRAINT | (7<<8)) 530 #define SQLITE_CONSTRAINT_UNIQUE (SQLITE_CONSTRAINT | (8<<8)) 531 #define SQLITE_CONSTRAINT_VTAB (SQLITE_CONSTRAINT | (9<<8)) 532 #define SQLITE_CONSTRAINT_ROWID (SQLITE_CONSTRAINT |(10<<8)) 533 #define SQLITE_NOTICE_RECOVER_WAL (SQLITE_NOTICE | (1<<8)) 534 #define SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8)) 535 #define SQLITE_WARNING_AUTOINDEX (SQLITE_WARNING | (1<<8)) 544 #define SQLITE_OPEN_READONLY 0x00000001 545 #define SQLITE_OPEN_READWRITE 0x00000002 546 #define SQLITE_OPEN_CREATE 0x00000004 547 #define SQLITE_OPEN_DELETEONCLOSE 0x00000008 548 #define SQLITE_OPEN_EXCLUSIVE 0x00000010 549 #define SQLITE_OPEN_AUTOPROXY 0x00000020 550 #define SQLITE_OPEN_URI 0x00000040 551 #define SQLITE_OPEN_MEMORY 0x00000080 552 #define SQLITE_OPEN_MAIN_DB 0x00000100 553 #define SQLITE_OPEN_TEMP_DB 0x00000200 554 #define SQLITE_OPEN_TRANSIENT_DB 0x00000400 555 #define SQLITE_OPEN_MAIN_JOURNAL 0x00000800 556 #define SQLITE_OPEN_TEMP_JOURNAL 0x00001000 557 #define SQLITE_OPEN_SUBJOURNAL 0x00002000 558 #define SQLITE_OPEN_MASTER_JOURNAL 0x00004000 559 #define SQLITE_OPEN_NOMUTEX 0x00008000 560 #define SQLITE_OPEN_FULLMUTEX 0x00010000 561 #define SQLITE_OPEN_SHAREDCACHE 0x00020000 562 #define SQLITE_OPEN_PRIVATECACHE 0x00040000 563 #define SQLITE_OPEN_WAL 0x00080000 591 #define SQLITE_IOCAP_ATOMIC 0x00000001 592 #define SQLITE_IOCAP_ATOMIC512 0x00000002 593 #define SQLITE_IOCAP_ATOMIC1K 0x00000004 594 #define SQLITE_IOCAP_ATOMIC2K 0x00000008 595 #define SQLITE_IOCAP_ATOMIC4K 0x00000010 596 #define SQLITE_IOCAP_ATOMIC8K 0x00000020 597 #define SQLITE_IOCAP_ATOMIC16K 0x00000040 598 #define SQLITE_IOCAP_ATOMIC32K 0x00000080 599 #define SQLITE_IOCAP_ATOMIC64K 0x00000100 600 #define SQLITE_IOCAP_SAFE_APPEND 0x00000200 601 #define SQLITE_IOCAP_SEQUENTIAL 0x00000400 602 #define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 0x00000800 603 #define SQLITE_IOCAP_POWERSAFE_OVERWRITE 0x00001000 612 #define SQLITE_LOCK_NONE 0 613 #define SQLITE_LOCK_SHARED 1 614 #define SQLITE_LOCK_RESERVED 2 615 #define SQLITE_LOCK_PENDING 3 616 #define SQLITE_LOCK_EXCLUSIVE 4 644 #define SQLITE_SYNC_NORMAL 0x00002 645 #define SQLITE_SYNC_FULL 0x00003 646 #define SQLITE_SYNC_DATAONLY 0x00010 759 int (*xWrite)(
sqlite3_file*,
const void*,
int iAmt, sqlite3_int64 iOfst);
770 int (*xShmMap)(
sqlite3_file*,
int iPg,
int pgsz, int,
void volatile**);
775 int (*xFetch)(
sqlite3_file*, sqlite3_int64 iOfst,
int iAmt,
void **pp);
954 #define SQLITE_FCNTL_LOCKSTATE 1 955 #define SQLITE_GET_LOCKPROXYFILE 2 956 #define SQLITE_SET_LOCKPROXYFILE 3 957 #define SQLITE_LAST_ERRNO 4 958 #define SQLITE_FCNTL_SIZE_HINT 5 959 #define SQLITE_FCNTL_CHUNK_SIZE 6 960 #define SQLITE_FCNTL_FILE_POINTER 7 961 #define SQLITE_FCNTL_SYNC_OMITTED 8 962 #define SQLITE_FCNTL_WIN32_AV_RETRY 9 963 #define SQLITE_FCNTL_PERSIST_WAL 10 964 #define SQLITE_FCNTL_OVERWRITE 11 965 #define SQLITE_FCNTL_VFSNAME 12 966 #define SQLITE_FCNTL_POWERSAFE_OVERWRITE 13 967 #define SQLITE_FCNTL_PRAGMA 14 968 #define SQLITE_FCNTL_BUSYHANDLER 15 969 #define SQLITE_FCNTL_TEMPFILENAME 16 970 #define SQLITE_FCNTL_MMAP_SIZE 18 971 #define SQLITE_FCNTL_TRACE 19 1152 int flags,
int *pOutFlags);
1154 int (*xAccess)(
sqlite3_vfs*,
const char *zName,
int flags,
int *pResOut);
1155 int (*xFullPathname)(
sqlite3_vfs*,
const char *zName,
int nOut,
char *zOut);
1157 void (*xDlError)(sqlite3_vfs*,
int nByte,
char *zErrMsg);
1158 void (*(*xDlSym)(sqlite3_vfs*,
void*,
const char *zSymbol))(void);
1159 void (*xDlClose)(sqlite3_vfs*,
void*);
1160 int (*xRandomness)(sqlite3_vfs*,
int nByte,
char *zOut);
1161 int (*xSleep)(sqlite3_vfs*,
int microseconds);
1162 int (*xCurrentTime)(sqlite3_vfs*,
double*);
1163 int (*xGetLastError)(sqlite3_vfs*, int,
char *);
1168 int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);
1175 const char *(*xNextSystemCall)(sqlite3_vfs*,
const char *zName);
1203 #define SQLITE_ACCESS_EXISTS 0 1204 #define SQLITE_ACCESS_READWRITE 1 1205 #define SQLITE_ACCESS_READ 2 1229 #define SQLITE_SHM_UNLOCK 1 1230 #define SQLITE_SHM_LOCK 2 1231 #define SQLITE_SHM_SHARED 4 1232 #define SQLITE_SHM_EXCLUSIVE 8 1242 #define SQLITE_SHM_NLOCK 8 1439 void *(*xMalloc)(int);
1440 void (*xFree)(
void*);
1441 void *(*xRealloc)(
void*,int);
1442 int (*xSize)(
void*);
1443 int (*xRoundup)(int);
1444 int (*xInit)(
void*);
1445 void (*xShutdown)(
void*);
1727 #define SQLITE_CONFIG_SINGLETHREAD 1 1728 #define SQLITE_CONFIG_MULTITHREAD 2 1729 #define SQLITE_CONFIG_SERIALIZED 3 1730 #define SQLITE_CONFIG_MALLOC 4 1731 #define SQLITE_CONFIG_GETMALLOC 5 1732 #define SQLITE_CONFIG_SCRATCH 6 1733 #define SQLITE_CONFIG_PAGECACHE 7 1734 #define SQLITE_CONFIG_HEAP 8 1735 #define SQLITE_CONFIG_MEMSTATUS 9 1736 #define SQLITE_CONFIG_MUTEX 10 1737 #define SQLITE_CONFIG_GETMUTEX 11 1739 #define SQLITE_CONFIG_LOOKASIDE 13 1740 #define SQLITE_CONFIG_PCACHE 14 1741 #define SQLITE_CONFIG_GETPCACHE 15 1742 #define SQLITE_CONFIG_LOG 16 1743 #define SQLITE_CONFIG_URI 17 1744 #define SQLITE_CONFIG_PCACHE2 18 1745 #define SQLITE_CONFIG_GETPCACHE2 19 1746 #define SQLITE_CONFIG_COVERING_INDEX_SCAN 20 1747 #define SQLITE_CONFIG_SQLLOG 21 1748 #define SQLITE_CONFIG_MMAP_SIZE 22 1749 #define SQLITE_CONFIG_WIN32_HEAPSIZE 23 1809 #define SQLITE_DBCONFIG_LOOKASIDE 1001 1810 #define SQLITE_DBCONFIG_ENABLE_FKEY 1002 1811 #define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 2498 int (*xAuth)(
void*,
int,
const char*,
const char*,
const char*,
const char*),
2514 #define SQLITE_DENY 1 2515 #define SQLITE_IGNORE 2 2537 #define SQLITE_CREATE_INDEX 1 2538 #define SQLITE_CREATE_TABLE 2 2539 #define SQLITE_CREATE_TEMP_INDEX 3 2540 #define SQLITE_CREATE_TEMP_TABLE 4 2541 #define SQLITE_CREATE_TEMP_TRIGGER 5 2542 #define SQLITE_CREATE_TEMP_VIEW 6 2543 #define SQLITE_CREATE_TRIGGER 7 2544 #define SQLITE_CREATE_VIEW 8 2545 #define SQLITE_DELETE 9 2546 #define SQLITE_DROP_INDEX 10 2547 #define SQLITE_DROP_TABLE 11 2548 #define SQLITE_DROP_TEMP_INDEX 12 2549 #define SQLITE_DROP_TEMP_TABLE 13 2550 #define SQLITE_DROP_TEMP_TRIGGER 14 2551 #define SQLITE_DROP_TEMP_VIEW 15 2552 #define SQLITE_DROP_TRIGGER 16 2553 #define SQLITE_DROP_VIEW 17 2554 #define SQLITE_INSERT 18 2555 #define SQLITE_PRAGMA 19 2556 #define SQLITE_READ 20 2557 #define SQLITE_SELECT 21 2558 #define SQLITE_TRANSACTION 22 2559 #define SQLITE_UPDATE 23 2560 #define SQLITE_ATTACH 24 2561 #define SQLITE_DETACH 25 2562 #define SQLITE_ALTER_TABLE 26 2563 #define SQLITE_REINDEX 27 2564 #define SQLITE_ANALYZE 28 2565 #define SQLITE_CREATE_VTABLE 29 2566 #define SQLITE_DROP_VTABLE 30 2567 #define SQLITE_FUNCTION 31 2568 #define SQLITE_SAVEPOINT 32 2569 #define SQLITE_COPY 0 2601 void(*xProfile)(
void*,
const char*,sqlite3_uint64),
void*);
2839 const char *filename,
2843 const void *filename,
2847 const char *filename,
3060 #define SQLITE_LIMIT_LENGTH 0 3061 #define SQLITE_LIMIT_SQL_LENGTH 1 3062 #define SQLITE_LIMIT_COLUMN 2 3063 #define SQLITE_LIMIT_EXPR_DEPTH 3 3064 #define SQLITE_LIMIT_COMPOUND_SELECT 4 3065 #define SQLITE_LIMIT_VDBE_OP 5 3066 #define SQLITE_LIMIT_FUNCTION_ARG 6 3067 #define SQLITE_LIMIT_ATTACHED 7 3068 #define SQLITE_LIMIT_LIKE_PATTERN_LENGTH 8 3069 #define SQLITE_LIMIT_VARIABLE_NUMBER 9 3070 #define SQLITE_LIMIT_TRIGGER_DEPTH 10 3715 #define SQLITE_INTEGER 1 3716 #define SQLITE_FLOAT 2 3717 #define SQLITE_BLOB 4 3718 #define SQLITE_NULL 5 3722 # define SQLITE_TEXT 3 3724 #define SQLITE3_TEXT 3 4042 const char *zFunctionName,
4052 const void *zFunctionName,
4062 const char *zFunctionName,
4069 void(*xDestroy)(
void*)
4078 #define SQLITE_UTF8 1 4079 #define SQLITE_UTF16LE 2 4080 #define SQLITE_UTF16BE 3 4081 #define SQLITE_UTF16 4 4082 #define SQLITE_ANY 5 4083 #define SQLITE_UTF16_ALIGNED 8 4095 #ifndef SQLITE_OMIT_DEPRECATED 4102 void*,sqlite3_int64);
4301 #define SQLITE_STATIC ((sqlite3_destructor_type)0) 4302 #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) 4515 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
4522 int(*xCompare)(
void*,
int,
const void*,
int,
const void*),
4523 void(*xDestroy)(
void*)
4530 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
4562 void(*)(
void*,
sqlite3*,
int eTextRep,
const char*)
4567 void(*)(
void*,
sqlite3*,
int eTextRep,
const void*)
4570 #ifdef SQLITE_HAS_CODEC 4580 const void *pKey,
int nKey
4584 const char *zDbName,
4585 const void *pKey,
int nKey
4598 const void *pKey,
int nKey
4602 const char *zDbName,
4603 const void *pKey,
int nKey
4611 const char *zPassPhrase
4615 #ifdef SQLITE_ENABLE_CEROD 4621 const char *zPassPhrase
4901 void(*)(
void *,
int ,
char const *,
char const *,sqlite3_int64),
5093 const char *zDbName,
5094 const char *zTableName,
5095 const char *zColumnName,
5096 char const **pzDataType,
5097 char const **pzCollSeq,
5253 int argc,
const char *
const*
argv,
5256 int argc,
const char *
const*
argv,
5275 void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),
5368 } *aConstraintUsage;
5386 #define SQLITE_INDEX_CONSTRAINT_EQ 2 5387 #define SQLITE_INDEX_CONSTRAINT_GT 4 5388 #define SQLITE_INDEX_CONSTRAINT_LE 8 5389 #define SQLITE_INDEX_CONSTRAINT_LT 16 5390 #define SQLITE_INDEX_CONSTRAINT_GE 32 5391 #define SQLITE_INDEX_CONSTRAINT_MATCH 64 5429 void(*xDestroy)(
void*)
5594 const char *zColumn,