68 # define SQLITE_EXTERN extern 76 #ifndef SQLITE_APICALL 77 # define SQLITE_APICALL 79 #ifndef SQLITE_STDCALL 80 # define SQLITE_STDCALL SQLITE_APICALL 82 #ifndef SQLITE_CALLBACK 83 # define SQLITE_CALLBACK 86 # define SQLITE_SYSAPI 102 #define SQLITE_DEPRECATED 103 #define SQLITE_EXPERIMENTAL 108 #ifdef SQLITE_VERSION 109 # undef SQLITE_VERSION 111 #ifdef SQLITE_VERSION_NUMBER 112 # undef SQLITE_VERSION_NUMBER 143 #define SQLITE_VERSION "3.15.1" 144 #define SQLITE_VERSION_NUMBER 3015001 145 #define SQLITE_SOURCE_ID "2016-11-04 12:08:49 1136863c76576110e710dd5d69ab6bf347c65e36" 177 SQLITE_API SQLITE_EXTERN
const char sqlite3_version[];
178 SQLITE_API
const char *sqlite3_libversion(
void);
179 SQLITE_API
const char *sqlite3_sourceid(
void);
180 SQLITE_API
int sqlite3_libversion_number(
void);
204 #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS 205 SQLITE_API
int sqlite3_compileoption_used(
const char *zOptName);
206 SQLITE_API
const char *sqlite3_compileoption_get(
int N);
245 SQLITE_API
int sqlite3_threadsafe(
void);
279 #ifdef SQLITE_INT64_TYPE 280 typedef SQLITE_INT64_TYPE sqlite_int64;
281 typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
282 #elif defined(_MSC_VER) || defined(__BORLANDC__) 283 typedef __int64 sqlite_int64;
284 typedef unsigned __int64 sqlite_uint64;
286 typedef long long int sqlite_int64;
287 typedef unsigned long long int sqlite_uint64;
289 typedef sqlite_int64 sqlite3_int64;
290 typedef sqlite_uint64 sqlite3_uint64;
296 #ifdef SQLITE_OMIT_FLOATING_POINT 297 # define double sqlite3_int64 342 SQLITE_API
int sqlite3_close(
sqlite3*);
343 SQLITE_API
int sqlite3_close_v2(
sqlite3*);
350 typedef int (*sqlite3_callback)(
void*,int,
char**,
char**);
414 SQLITE_API
int sqlite3_exec(
417 int (*callback)(
void*,
int,
char**,
char**),
435 #define SQLITE_ERROR 1 436 #define SQLITE_INTERNAL 2 437 #define SQLITE_PERM 3 438 #define SQLITE_ABORT 4 439 #define SQLITE_BUSY 5 440 #define SQLITE_LOCKED 6 441 #define SQLITE_NOMEM 7 442 #define SQLITE_READONLY 8 443 #define SQLITE_INTERRUPT 9 444 #define SQLITE_IOERR 10 445 #define SQLITE_CORRUPT 11 446 #define SQLITE_NOTFOUND 12 447 #define SQLITE_FULL 13 448 #define SQLITE_CANTOPEN 14 449 #define SQLITE_PROTOCOL 15 450 #define SQLITE_EMPTY 16 451 #define SQLITE_SCHEMA 17 452 #define SQLITE_TOOBIG 18 453 #define SQLITE_CONSTRAINT 19 454 #define SQLITE_MISMATCH 20 455 #define SQLITE_MISUSE 21 456 #define SQLITE_NOLFS 22 457 #define SQLITE_AUTH 23 458 #define SQLITE_FORMAT 24 459 #define SQLITE_RANGE 25 460 #define SQLITE_NOTADB 26 461 #define SQLITE_NOTICE 27 462 #define SQLITE_WARNING 28 463 #define SQLITE_ROW 100 464 #define SQLITE_DONE 101 484 #define SQLITE_IOERR_READ (SQLITE_IOERR | (1<<8)) 485 #define SQLITE_IOERR_SHORT_READ (SQLITE_IOERR | (2<<8)) 486 #define SQLITE_IOERR_WRITE (SQLITE_IOERR | (3<<8)) 487 #define SQLITE_IOERR_FSYNC (SQLITE_IOERR | (4<<8)) 488 #define SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8)) 489 #define SQLITE_IOERR_TRUNCATE (SQLITE_IOERR | (6<<8)) 490 #define SQLITE_IOERR_FSTAT (SQLITE_IOERR | (7<<8)) 491 #define SQLITE_IOERR_UNLOCK (SQLITE_IOERR | (8<<8)) 492 #define SQLITE_IOERR_RDLOCK (SQLITE_IOERR | (9<<8)) 493 #define SQLITE_IOERR_DELETE (SQLITE_IOERR | (10<<8)) 494 #define SQLITE_IOERR_BLOCKED (SQLITE_IOERR | (11<<8)) 495 #define SQLITE_IOERR_NOMEM (SQLITE_IOERR | (12<<8)) 496 #define SQLITE_IOERR_ACCESS (SQLITE_IOERR | (13<<8)) 497 #define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8)) 498 #define SQLITE_IOERR_LOCK (SQLITE_IOERR | (15<<8)) 499 #define SQLITE_IOERR_CLOSE (SQLITE_IOERR | (16<<8)) 500 #define SQLITE_IOERR_DIR_CLOSE (SQLITE_IOERR | (17<<8)) 501 #define SQLITE_IOERR_SHMOPEN (SQLITE_IOERR | (18<<8)) 502 #define SQLITE_IOERR_SHMSIZE (SQLITE_IOERR | (19<<8)) 503 #define SQLITE_IOERR_SHMLOCK (SQLITE_IOERR | (20<<8)) 504 #define SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21<<8)) 505 #define SQLITE_IOERR_SEEK (SQLITE_IOERR | (22<<8)) 506 #define SQLITE_IOERR_DELETE_NOENT (SQLITE_IOERR | (23<<8)) 507 #define SQLITE_IOERR_MMAP (SQLITE_IOERR | (24<<8)) 508 #define SQLITE_IOERR_GETTEMPPATH (SQLITE_IOERR | (25<<8)) 509 #define SQLITE_IOERR_CONVPATH (SQLITE_IOERR | (26<<8)) 510 #define SQLITE_IOERR_VNODE (SQLITE_IOERR | (27<<8)) 511 #define SQLITE_IOERR_AUTH (SQLITE_IOERR | (28<<8)) 512 #define SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8)) 513 #define SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8)) 514 #define SQLITE_BUSY_SNAPSHOT (SQLITE_BUSY | (2<<8)) 515 #define SQLITE_CANTOPEN_NOTEMPDIR (SQLITE_CANTOPEN | (1<<8)) 516 #define SQLITE_CANTOPEN_ISDIR (SQLITE_CANTOPEN | (2<<8)) 517 #define SQLITE_CANTOPEN_FULLPATH (SQLITE_CANTOPEN | (3<<8)) 518 #define SQLITE_CANTOPEN_CONVPATH (SQLITE_CANTOPEN | (4<<8)) 519 #define SQLITE_CORRUPT_VTAB (SQLITE_CORRUPT | (1<<8)) 520 #define SQLITE_READONLY_RECOVERY (SQLITE_READONLY | (1<<8)) 521 #define SQLITE_READONLY_CANTLOCK (SQLITE_READONLY | (2<<8)) 522 #define SQLITE_READONLY_ROLLBACK (SQLITE_READONLY | (3<<8)) 523 #define SQLITE_READONLY_DBMOVED (SQLITE_READONLY | (4<<8)) 524 #define SQLITE_ABORT_ROLLBACK (SQLITE_ABORT | (2<<8)) 525 #define SQLITE_CONSTRAINT_CHECK (SQLITE_CONSTRAINT | (1<<8)) 526 #define SQLITE_CONSTRAINT_COMMITHOOK (SQLITE_CONSTRAINT | (2<<8)) 527 #define SQLITE_CONSTRAINT_FOREIGNKEY (SQLITE_CONSTRAINT | (3<<8)) 528 #define SQLITE_CONSTRAINT_FUNCTION (SQLITE_CONSTRAINT | (4<<8)) 529 #define SQLITE_CONSTRAINT_NOTNULL (SQLITE_CONSTRAINT | (5<<8)) 530 #define SQLITE_CONSTRAINT_PRIMARYKEY (SQLITE_CONSTRAINT | (6<<8)) 531 #define SQLITE_CONSTRAINT_TRIGGER (SQLITE_CONSTRAINT | (7<<8)) 532 #define SQLITE_CONSTRAINT_UNIQUE (SQLITE_CONSTRAINT | (8<<8)) 533 #define SQLITE_CONSTRAINT_VTAB (SQLITE_CONSTRAINT | (9<<8)) 534 #define SQLITE_CONSTRAINT_ROWID (SQLITE_CONSTRAINT |(10<<8)) 535 #define SQLITE_NOTICE_RECOVER_WAL (SQLITE_NOTICE | (1<<8)) 536 #define SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8)) 537 #define SQLITE_WARNING_AUTOINDEX (SQLITE_WARNING | (1<<8)) 538 #define SQLITE_AUTH_USER (SQLITE_AUTH | (1<<8)) 539 #define SQLITE_OK_LOAD_PERMANENTLY (SQLITE_OK | (1<<8)) 548 #define SQLITE_OPEN_READONLY 0x00000001 549 #define SQLITE_OPEN_READWRITE 0x00000002 550 #define SQLITE_OPEN_CREATE 0x00000004 551 #define SQLITE_OPEN_DELETEONCLOSE 0x00000008 552 #define SQLITE_OPEN_EXCLUSIVE 0x00000010 553 #define SQLITE_OPEN_AUTOPROXY 0x00000020 554 #define SQLITE_OPEN_URI 0x00000040 555 #define SQLITE_OPEN_MEMORY 0x00000080 556 #define SQLITE_OPEN_MAIN_DB 0x00000100 557 #define SQLITE_OPEN_TEMP_DB 0x00000200 558 #define SQLITE_OPEN_TRANSIENT_DB 0x00000400 559 #define SQLITE_OPEN_MAIN_JOURNAL 0x00000800 560 #define SQLITE_OPEN_TEMP_JOURNAL 0x00001000 561 #define SQLITE_OPEN_SUBJOURNAL 0x00002000 562 #define SQLITE_OPEN_MASTER_JOURNAL 0x00004000 563 #define SQLITE_OPEN_NOMUTEX 0x00008000 564 #define SQLITE_OPEN_FULLMUTEX 0x00010000 565 #define SQLITE_OPEN_SHAREDCACHE 0x00020000 566 #define SQLITE_OPEN_PRIVATECACHE 0x00040000 567 #define SQLITE_OPEN_WAL 0x00080000 599 #define SQLITE_IOCAP_ATOMIC 0x00000001 600 #define SQLITE_IOCAP_ATOMIC512 0x00000002 601 #define SQLITE_IOCAP_ATOMIC1K 0x00000004 602 #define SQLITE_IOCAP_ATOMIC2K 0x00000008 603 #define SQLITE_IOCAP_ATOMIC4K 0x00000010 604 #define SQLITE_IOCAP_ATOMIC8K 0x00000020 605 #define SQLITE_IOCAP_ATOMIC16K 0x00000040 606 #define SQLITE_IOCAP_ATOMIC32K 0x00000080 607 #define SQLITE_IOCAP_ATOMIC64K 0x00000100 608 #define SQLITE_IOCAP_SAFE_APPEND 0x00000200 609 #define SQLITE_IOCAP_SEQUENTIAL 0x00000400 610 #define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 0x00000800 611 #define SQLITE_IOCAP_POWERSAFE_OVERWRITE 0x00001000 612 #define SQLITE_IOCAP_IMMUTABLE 0x00002000 621 #define SQLITE_LOCK_NONE 0 622 #define SQLITE_LOCK_SHARED 1 623 #define SQLITE_LOCK_RESERVED 2 624 #define SQLITE_LOCK_PENDING 3 625 #define SQLITE_LOCK_EXCLUSIVE 4 653 #define SQLITE_SYNC_NORMAL 0x00002 654 #define SQLITE_SYNC_FULL 0x00003 655 #define SQLITE_SYNC_DATAONLY 0x00010 767 int (*xRead)(
sqlite3_file*,
void*,
int iAmt, sqlite3_int64 iOfst);
768 int (*xWrite)(
sqlite3_file*,
const void*,
int iAmt, sqlite3_int64 iOfst);
779 int (*xShmMap)(
sqlite3_file*,
int iPg,
int pgsz, int,
void volatile**);
780 int (*xShmLock)(
sqlite3_file*,
int offset,
int n,
int flags);
784 int (*xFetch)(
sqlite3_file*, sqlite3_int64 iOfst,
int iAmt,
void **pp);
785 int (*xUnfetch)(
sqlite3_file*, sqlite3_int64 iOfst,
void *p);
1029 #define SQLITE_FCNTL_LOCKSTATE 1 1030 #define SQLITE_FCNTL_GET_LOCKPROXYFILE 2 1031 #define SQLITE_FCNTL_SET_LOCKPROXYFILE 3 1032 #define SQLITE_FCNTL_LAST_ERRNO 4 1033 #define SQLITE_FCNTL_SIZE_HINT 5 1034 #define SQLITE_FCNTL_CHUNK_SIZE 6 1035 #define SQLITE_FCNTL_FILE_POINTER 7 1036 #define SQLITE_FCNTL_SYNC_OMITTED 8 1037 #define SQLITE_FCNTL_WIN32_AV_RETRY 9 1038 #define SQLITE_FCNTL_PERSIST_WAL 10 1039 #define SQLITE_FCNTL_OVERWRITE 11 1040 #define SQLITE_FCNTL_VFSNAME 12 1041 #define SQLITE_FCNTL_POWERSAFE_OVERWRITE 13 1042 #define SQLITE_FCNTL_PRAGMA 14 1043 #define SQLITE_FCNTL_BUSYHANDLER 15 1044 #define SQLITE_FCNTL_TEMPFILENAME 16 1045 #define SQLITE_FCNTL_MMAP_SIZE 18 1046 #define SQLITE_FCNTL_TRACE 19 1047 #define SQLITE_FCNTL_HAS_MOVED 20 1048 #define SQLITE_FCNTL_SYNC 21 1049 #define SQLITE_FCNTL_COMMIT_PHASETWO 22 1050 #define SQLITE_FCNTL_WIN32_SET_HANDLE 23 1051 #define SQLITE_FCNTL_WAL_BLOCK 24 1052 #define SQLITE_FCNTL_ZIPVFS 25 1053 #define SQLITE_FCNTL_RBU 26 1054 #define SQLITE_FCNTL_VFS_POINTER 27 1055 #define SQLITE_FCNTL_JOURNAL_POINTER 28 1056 #define SQLITE_FCNTL_WIN32_GET_HANDLE 29 1059 #define SQLITE_GET_LOCKPROXYFILE SQLITE_FCNTL_GET_LOCKPROXYFILE 1060 #define SQLITE_SET_LOCKPROXYFILE SQLITE_FCNTL_SET_LOCKPROXYFILE 1061 #define SQLITE_LAST_ERRNO SQLITE_FCNTL_LAST_ERRNO 1244 typedef void (*sqlite3_syscall_ptr)(void);
1253 int flags,
int *pOutFlags);
1254 int (*xDelete)(
sqlite3_vfs*,
const char *zName,
int syncDir);
1255 int (*xAccess)(
sqlite3_vfs*,
const char *zName,
int flags,
int *pResOut);
1256 int (*xFullPathname)(
sqlite3_vfs*,
const char *zName,
int nOut,
char *zOut);
1257 void *(*xDlOpen)(
sqlite3_vfs*,
const char *zFilename);
1258 void (*xDlError)(sqlite3_vfs*,
int nByte,
char *zErrMsg);
1259 void (*(*xDlSym)(sqlite3_vfs*,
void*,
const char *zSymbol))(void);
1260 void (*xDlClose)(sqlite3_vfs*,
void*);
1261 int (*xRandomness)(sqlite3_vfs*,
int nByte,
char *zOut);
1262 int (*xSleep)(sqlite3_vfs*,
int microseconds);
1263 int (*xCurrentTime)(sqlite3_vfs*,
double*);
1264 int (*xGetLastError)(sqlite3_vfs*, int,
char *);
1269 int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);
1274 int (*xSetSystemCall)(sqlite3_vfs*,
const char *zName, sqlite3_syscall_ptr);
1275 sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*,
const char *zName);
1276 const char *(*xNextSystemCall)(sqlite3_vfs*,
const char *zName);
1304 #define SQLITE_ACCESS_EXISTS 0 1305 #define SQLITE_ACCESS_READWRITE 1 1306 #define SQLITE_ACCESS_READ 2 1330 #define SQLITE_SHM_UNLOCK 1 1331 #define SQLITE_SHM_LOCK 2 1332 #define SQLITE_SHM_SHARED 4 1333 #define SQLITE_SHM_EXCLUSIVE 8 1343 #define SQLITE_SHM_NLOCK 8 1421 SQLITE_API
int sqlite3_initialize(
void);
1422 SQLITE_API
int sqlite3_shutdown(
void);
1423 SQLITE_API
int sqlite3_os_init(
void);
1424 SQLITE_API
int sqlite3_os_end(
void);
1457 SQLITE_API
int sqlite3_config(
int, ...);
1476 SQLITE_API
int sqlite3_db_config(
sqlite3*,
int op, ...);
1543 void *(*xMalloc)(int);
1544 void (*xFree)(
void*);
1545 void *(*xRealloc)(
void*,int);
1546 int (*xSize)(
void*);
1547 int (*xRoundup)(int);
1548 int (*xInit)(
void*);
1549 void (*xShutdown)(
void*);
1887 #define SQLITE_CONFIG_SINGLETHREAD 1 1888 #define SQLITE_CONFIG_MULTITHREAD 2 1889 #define SQLITE_CONFIG_SERIALIZED 3 1890 #define SQLITE_CONFIG_MALLOC 4 1891 #define SQLITE_CONFIG_GETMALLOC 5 1892 #define SQLITE_CONFIG_SCRATCH 6 1893 #define SQLITE_CONFIG_PAGECACHE 7 1894 #define SQLITE_CONFIG_HEAP 8 1895 #define SQLITE_CONFIG_MEMSTATUS 9 1896 #define SQLITE_CONFIG_MUTEX 10 1897 #define SQLITE_CONFIG_GETMUTEX 11 1899 #define SQLITE_CONFIG_LOOKASIDE 13 1900 #define SQLITE_CONFIG_PCACHE 14 1901 #define SQLITE_CONFIG_GETPCACHE 15 1902 #define SQLITE_CONFIG_LOG 16 1903 #define SQLITE_CONFIG_URI 17 1904 #define SQLITE_CONFIG_PCACHE2 18 1905 #define SQLITE_CONFIG_GETPCACHE2 19 1906 #define SQLITE_CONFIG_COVERING_INDEX_SCAN 20 1907 #define SQLITE_CONFIG_SQLLOG 21 1908 #define SQLITE_CONFIG_MMAP_SIZE 22 1909 #define SQLITE_CONFIG_WIN32_HEAPSIZE 23 1910 #define SQLITE_CONFIG_PCACHE_HDRSZ 24 1911 #define SQLITE_CONFIG_PMASZ 25 1912 #define SQLITE_CONFIG_STMTJRNL_SPILL 26 2011 #define SQLITE_DBCONFIG_MAINDBNAME 1000 2012 #define SQLITE_DBCONFIG_LOOKASIDE 1001 2013 #define SQLITE_DBCONFIG_ENABLE_FKEY 1002 2014 #define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 2015 #define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 2016 #define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005 2027 SQLITE_API
int sqlite3_extended_result_codes(
sqlite3*,
int onoff);
2079 SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(
sqlite3*);
2132 SQLITE_API
int sqlite3_changes(
sqlite3*);
2156 SQLITE_API
int sqlite3_total_changes(
sqlite3*);
2196 SQLITE_API
void sqlite3_interrupt(
sqlite3*);
2231 SQLITE_API
int sqlite3_complete(
const char *sql);
2232 SQLITE_API
int sqlite3_complete16(
const void *sql);
2293 SQLITE_API
int sqlite3_busy_handler(
sqlite3*,
int(*)(
void*,
int),
void*);
2316 SQLITE_API
int sqlite3_busy_timeout(
sqlite3*,
int ms);
2391 SQLITE_API
int sqlite3_get_table(
2399 SQLITE_API
void sqlite3_free_table(
char **result);
2505 SQLITE_API
char *sqlite3_mprintf(
const char*,...);
2506 SQLITE_API
char *sqlite3_vmprintf(
const char*, va_list);
2507 SQLITE_API
char *sqlite3_snprintf(
int,
char*,
const char*, ...);
2508 SQLITE_API
char *sqlite3_vsnprintf(
int,
char*,
const char*, va_list);
2598 SQLITE_API
void *sqlite3_malloc(
int);
2599 SQLITE_API
void *sqlite3_malloc64(sqlite3_uint64);
2600 SQLITE_API
void *sqlite3_realloc(
void*,
int);
2601 SQLITE_API
void *sqlite3_realloc64(
void*, sqlite3_uint64);
2602 SQLITE_API
void sqlite3_free(
void*);
2603 SQLITE_API sqlite3_uint64 sqlite3_msize(
void*);
2628 SQLITE_API sqlite3_int64 sqlite3_memory_used(
void);
2629 SQLITE_API sqlite3_int64 sqlite3_memory_highwater(
int resetFlag);
2652 SQLITE_API
void sqlite3_randomness(
int N,
void *P);
2735 SQLITE_API
int sqlite3_set_authorizer(
2737 int (*xAuth)(
void*,
int,
const char*,
const char*,
const char*,
const char*),
2753 #define SQLITE_DENY 1 2754 #define SQLITE_IGNORE 2 2776 #define SQLITE_CREATE_INDEX 1 2777 #define SQLITE_CREATE_TABLE 2 2778 #define SQLITE_CREATE_TEMP_INDEX 3 2779 #define SQLITE_CREATE_TEMP_TABLE 4 2780 #define SQLITE_CREATE_TEMP_TRIGGER 5 2781 #define SQLITE_CREATE_TEMP_VIEW 6 2782 #define SQLITE_CREATE_TRIGGER 7 2783 #define SQLITE_CREATE_VIEW 8 2784 #define SQLITE_DELETE 9 2785 #define SQLITE_DROP_INDEX 10 2786 #define SQLITE_DROP_TABLE 11 2787 #define SQLITE_DROP_TEMP_INDEX 12 2788 #define SQLITE_DROP_TEMP_TABLE 13 2789 #define SQLITE_DROP_TEMP_TRIGGER 14 2790 #define SQLITE_DROP_TEMP_VIEW 15 2791 #define SQLITE_DROP_TRIGGER 16 2792 #define SQLITE_DROP_VIEW 17 2793 #define SQLITE_INSERT 18 2794 #define SQLITE_PRAGMA 19 2795 #define SQLITE_READ 20 2796 #define SQLITE_SELECT 21 2797 #define SQLITE_TRANSACTION 22 2798 #define SQLITE_UPDATE 23 2799 #define SQLITE_ATTACH 24 2800 #define SQLITE_DETACH 25 2801 #define SQLITE_ALTER_TABLE 26 2802 #define SQLITE_REINDEX 27 2803 #define SQLITE_ANALYZE 28 2804 #define SQLITE_CREATE_VTABLE 29 2805 #define SQLITE_DROP_VTABLE 30 2806 #define SQLITE_FUNCTION 31 2807 #define SQLITE_SAVEPOINT 32 2808 #define SQLITE_COPY 0 2809 #define SQLITE_RECURSIVE 33 2843 SQLITE_API SQLITE_DEPRECATED
void *sqlite3_trace(
sqlite3*,
2844 void(*xTrace)(
void*,
const char*),
void*);
2845 SQLITE_API SQLITE_DEPRECATED
void *sqlite3_profile(
sqlite3*,
2846 void(*xProfile)(
void*,
const char*,sqlite3_uint64),
void*);
2900 #define SQLITE_TRACE_STMT 0x01 2901 #define SQLITE_TRACE_PROFILE 0x02 2902 #define SQLITE_TRACE_ROW 0x04 2903 #define SQLITE_TRACE_CLOSE 0x08 2934 SQLITE_API
int sqlite3_trace_v2(
2937 int(*xCallback)(
unsigned,
void*,
void*,
void*),
2973 SQLITE_API
void sqlite3_progress_handler(
sqlite3*,
int,
int(*)(
void*),
void*);
3202 SQLITE_API
int sqlite3_open(
3203 const char *filename,
3206 SQLITE_API
int sqlite3_open16(
3207 const void *filename,
3210 SQLITE_API
int sqlite3_open_v2(
3211 const char *filename,
3256 SQLITE_API
const char *sqlite3_uri_parameter(
const char *zFilename,
const char *zParam);
3257 SQLITE_API
int sqlite3_uri_boolean(
const char *zFile,
const char *zParam,
int bDefault);
3258 SQLITE_API sqlite3_int64 sqlite3_uri_int64(
const char*,
const char*, sqlite3_int64);
3302 SQLITE_API
int sqlite3_errcode(
sqlite3 *db);
3303 SQLITE_API
int sqlite3_extended_errcode(
sqlite3 *db);
3304 SQLITE_API
const char *sqlite3_errmsg(
sqlite3*);
3305 SQLITE_API
const void *sqlite3_errmsg16(
sqlite3*);
3306 SQLITE_API
const char *sqlite3_errstr(
int);
3332 typedef struct sqlite3_stmt sqlite3_stmt;
3374 SQLITE_API
int sqlite3_limit(
sqlite3*,
int id,
int newVal);
3432 #define SQLITE_LIMIT_LENGTH 0 3433 #define SQLITE_LIMIT_SQL_LENGTH 1 3434 #define SQLITE_LIMIT_COLUMN 2 3435 #define SQLITE_LIMIT_EXPR_DEPTH 3 3436 #define SQLITE_LIMIT_COMPOUND_SELECT 4 3437 #define SQLITE_LIMIT_VDBE_OP 5 3438 #define SQLITE_LIMIT_FUNCTION_ARG 6 3439 #define SQLITE_LIMIT_ATTACHED 7 3440 #define SQLITE_LIMIT_LIKE_PATTERN_LENGTH 8 3441 #define SQLITE_LIMIT_VARIABLE_NUMBER 9 3442 #define SQLITE_LIMIT_TRIGGER_DEPTH 10 3443 #define SQLITE_LIMIT_WORKER_THREADS 11 3526 SQLITE_API
int sqlite3_prepare(
3530 sqlite3_stmt **ppStmt,
3533 SQLITE_API
int sqlite3_prepare_v2(
3537 sqlite3_stmt **ppStmt,
3540 SQLITE_API
int sqlite3_prepare16(
3544 sqlite3_stmt **ppStmt,
3547 SQLITE_API
int sqlite3_prepare16_v2(
3551 sqlite3_stmt **ppStmt,
3586 SQLITE_API
const char *sqlite3_sql(sqlite3_stmt *pStmt);
3587 SQLITE_API
char *sqlite3_expanded_sql(sqlite3_stmt *pStmt);
3619 SQLITE_API
int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);
3640 SQLITE_API
int sqlite3_stmt_busy(sqlite3_stmt*);
3804 SQLITE_API
int sqlite3_bind_blob(sqlite3_stmt*,
int,
const void*,
int n,
void(*)(
void*));
3805 SQLITE_API
int sqlite3_bind_blob64(sqlite3_stmt*,
int,
const void*, sqlite3_uint64,
3807 SQLITE_API
int sqlite3_bind_double(sqlite3_stmt*,
int,
double);
3808 SQLITE_API
int sqlite3_bind_int(sqlite3_stmt*,
int,
int);
3809 SQLITE_API
int sqlite3_bind_int64(sqlite3_stmt*,
int, sqlite3_int64);
3810 SQLITE_API
int sqlite3_bind_null(sqlite3_stmt*,
int);
3811 SQLITE_API
int sqlite3_bind_text(sqlite3_stmt*,
int,
const char*,
int,
void(*)(
void*));
3812 SQLITE_API
int sqlite3_bind_text16(sqlite3_stmt*,
int,
const void*,
int,
void(*)(
void*));
3813 SQLITE_API
int sqlite3_bind_text64(sqlite3_stmt*,
int,
const char*, sqlite3_uint64,
3814 void(*)(
void*),
unsigned char encoding);
3815 SQLITE_API
int sqlite3_bind_value(sqlite3_stmt*,
int,
const sqlite3_value*);
3816 SQLITE_API
int sqlite3_bind_zeroblob(sqlite3_stmt*,
int,
int n);
3817 SQLITE_API
int sqlite3_bind_zeroblob64(sqlite3_stmt*,
int, sqlite3_uint64);
3838 SQLITE_API
int sqlite3_bind_parameter_count(sqlite3_stmt*);
3866 SQLITE_API
const char *sqlite3_bind_parameter_name(sqlite3_stmt*,
int);
3883 SQLITE_API
int sqlite3_bind_parameter_index(sqlite3_stmt*,
const char *zName);
3893 SQLITE_API
int sqlite3_clear_bindings(sqlite3_stmt*);
3905 SQLITE_API
int sqlite3_column_count(sqlite3_stmt *pStmt);
3934 SQLITE_API
const char *sqlite3_column_name(sqlite3_stmt*,
int N);
3935 SQLITE_API
const void *sqlite3_column_name16(sqlite3_stmt*,
int N);
3983 SQLITE_API
const char *sqlite3_column_database_name(sqlite3_stmt*,
int);
3984 SQLITE_API
const void *sqlite3_column_database_name16(sqlite3_stmt*,
int);
3985 SQLITE_API
const char *sqlite3_column_table_name(sqlite3_stmt*,
int);
3986 SQLITE_API
const void *sqlite3_column_table_name16(sqlite3_stmt*,
int);
3987 SQLITE_API
const char *sqlite3_column_origin_name(sqlite3_stmt*,
int);
3988 SQLITE_API
const void *sqlite3_column_origin_name16(sqlite3_stmt*,
int);
4020 SQLITE_API
const char *sqlite3_column_decltype(sqlite3_stmt*,
int);
4021 SQLITE_API
const void *sqlite3_column_decltype16(sqlite3_stmt*,
int);
4102 SQLITE_API
int sqlite3_step(sqlite3_stmt*);
4123 SQLITE_API
int sqlite3_data_count(sqlite3_stmt *pStmt);
4146 #define SQLITE_INTEGER 1 4147 #define SQLITE_FLOAT 2 4148 #define SQLITE_BLOB 4 4149 #define SQLITE_NULL 5 4153 # define SQLITE_TEXT 3 4155 #define SQLITE3_TEXT 3 4313 SQLITE_API
const void *sqlite3_column_blob(sqlite3_stmt*,
int iCol);
4314 SQLITE_API
int sqlite3_column_bytes(sqlite3_stmt*,
int iCol);
4315 SQLITE_API
int sqlite3_column_bytes16(sqlite3_stmt*,
int iCol);
4316 SQLITE_API
double sqlite3_column_double(sqlite3_stmt*,
int iCol);
4317 SQLITE_API
int sqlite3_column_int(sqlite3_stmt*,
int iCol);
4318 SQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*,
int iCol);
4319 SQLITE_API
const unsigned char *sqlite3_column_text(sqlite3_stmt*,
int iCol);
4320 SQLITE_API
const void *sqlite3_column_text16(sqlite3_stmt*,
int iCol);
4321 SQLITE_API
int sqlite3_column_type(sqlite3_stmt*,
int iCol);
4322 SQLITE_API
sqlite3_value *sqlite3_column_value(sqlite3_stmt*,
int iCol);
4350 SQLITE_API
int sqlite3_finalize(sqlite3_stmt *pStmt);
4377 SQLITE_API
int sqlite3_reset(sqlite3_stmt *pStmt);
4477 SQLITE_API
int sqlite3_create_function(
4479 const char *zFunctionName,
4487 SQLITE_API
int sqlite3_create_function16(
4489 const void *zFunctionName,
4497 SQLITE_API
int sqlite3_create_function_v2(
4499 const char *zFunctionName,
4506 void(*xDestroy)(
void*)
4515 #define SQLITE_UTF8 1 4516 #define SQLITE_UTF16LE 2 4517 #define SQLITE_UTF16BE 3 4518 #define SQLITE_UTF16 4 4519 #define SQLITE_ANY 5 4520 #define SQLITE_UTF16_ALIGNED 8 4530 #define SQLITE_DETERMINISTIC 0x800 4542 #ifndef SQLITE_OMIT_DEPRECATED 4543 SQLITE_API SQLITE_DEPRECATED
int sqlite3_aggregate_count(
sqlite3_context*);
4544 SQLITE_API SQLITE_DEPRECATED
int sqlite3_expired(sqlite3_stmt*);
4545 SQLITE_API SQLITE_DEPRECATED
int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*);
4546 SQLITE_API SQLITE_DEPRECATED
int sqlite3_global_recover(
void);
4547 SQLITE_API SQLITE_DEPRECATED
void sqlite3_thread_cleanup(
void);
4548 SQLITE_API SQLITE_DEPRECATED
int sqlite3_memory_alarm(
void(*)(
void*,sqlite3_int64,
int),
4549 void*,sqlite3_int64);
4603 SQLITE_API sqlite3_int64 sqlite3_value_int64(
sqlite3_value*);
4604 SQLITE_API
const unsigned char *sqlite3_value_text(
sqlite3_value*);
4605 SQLITE_API
const void *sqlite3_value_text16(
sqlite3_value*);
4606 SQLITE_API
const void *sqlite3_value_text16le(
sqlite3_value*);
4607 SQLITE_API
const void *sqlite3_value_text16be(
sqlite3_value*);
4625 SQLITE_API
unsigned int sqlite3_value_subtype(
sqlite3_value*);
4687 SQLITE_API
void *sqlite3_aggregate_context(
sqlite3_context*,
int nBytes);
4769 SQLITE_API
void sqlite3_set_auxdata(
sqlite3_context*,
int N,
void*,
void (*)(
void*));
4786 typedef void (*sqlite3_destructor_type)(
void*);
4787 #define SQLITE_STATIC ((sqlite3_destructor_type)0) 4788 #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) 4905 SQLITE_API
void sqlite3_result_blob(
sqlite3_context*,
const void*,
int,
void(*)(
void*));
4907 sqlite3_uint64,
void(*)(
void*));
4909 SQLITE_API
void sqlite3_result_error(
sqlite3_context*,
const char*,
int);
4910 SQLITE_API
void sqlite3_result_error16(
sqlite3_context*,
const void*,
int);
4915 SQLITE_API
void sqlite3_result_int64(
sqlite3_context*, sqlite3_int64);
4917 SQLITE_API
void sqlite3_result_text(
sqlite3_context*,
const char*,
int,
void(*)(
void*));
4918 SQLITE_API
void sqlite3_result_text64(
sqlite3_context*,
const char*,sqlite3_uint64,
4919 void(*)(
void*),
unsigned char encoding);
4920 SQLITE_API
void sqlite3_result_text16(
sqlite3_context*,
const void*,
int,
void(*)(
void*));
4921 SQLITE_API
void sqlite3_result_text16le(
sqlite3_context*,
const void*,
int,
void(*)(
void*));
4922 SQLITE_API
void sqlite3_result_text16be(
sqlite3_context*,
const void*,
int,
void(*)(
void*));
4925 SQLITE_API
int sqlite3_result_zeroblob64(
sqlite3_context*, sqlite3_uint64 n);
4940 SQLITE_API
void sqlite3_result_subtype(
sqlite3_context*,
unsigned int);
5022 SQLITE_API
int sqlite3_create_collation(
5027 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
5029 SQLITE_API
int sqlite3_create_collation_v2(
5034 int(*xCompare)(
void*,
int,
const void*,
int,
const void*),
5035 void(*xDestroy)(
void*)
5037 SQLITE_API
int sqlite3_create_collation16(
5042 int(*xCompare)(
void*,
int,
const void*,
int,
const void*)
5072 SQLITE_API
int sqlite3_collation_needed(
5075 void(*)(
void*,
sqlite3*,
int eTextRep,
const char*)
5077 SQLITE_API
int sqlite3_collation_needed16(
5080 void(*)(
void*,
sqlite3*,
int eTextRep,
const void*)
5083 #ifdef SQLITE_HAS_CODEC 5091 SQLITE_API
int sqlite3_key(
5093 const void *pKey,
int nKey
5095 SQLITE_API
int sqlite3_key_v2(
5097 const char *zDbName,
5098 const void *pKey,
int nKey
5109 SQLITE_API
int sqlite3_rekey(
5111 const void *pKey,
int nKey
5113 SQLITE_API
int sqlite3_rekey_v2(
5115 const char *zDbName,
5116 const void *pKey,
int nKey
5123 SQLITE_API
void sqlite3_activate_see(
5124 const char *zPassPhrase
5128 #ifdef SQLITE_ENABLE_CEROD 5133 SQLITE_API
void sqlite3_activate_cerod(
5134 const char *zPassPhrase
5155 SQLITE_API
int sqlite3_sleep(
int);
5213 SQLITE_API SQLITE_EXTERN
char *sqlite3_temp_directory;
5250 SQLITE_API SQLITE_EXTERN
char *sqlite3_data_directory;
5274 SQLITE_API
int sqlite3_get_autocommit(
sqlite3*);
5287 SQLITE_API
sqlite3 *sqlite3_db_handle(sqlite3_stmt*);
5304 SQLITE_API
const char *sqlite3_db_filename(
sqlite3 *db,
const char *zDbName);
5314 SQLITE_API
int sqlite3_db_readonly(
sqlite3 *db,
const char *zDbName);
5330 SQLITE_API sqlite3_stmt *sqlite3_next_stmt(
sqlite3 *pDb, sqlite3_stmt *pStmt);
5379 SQLITE_API
void *sqlite3_commit_hook(
sqlite3*,
int(*)(
void*),
void*);
5380 SQLITE_API
void *sqlite3_rollback_hook(
sqlite3*,
void(*)(
void *),
void*);
5431 SQLITE_API
void *sqlite3_update_hook(
5433 void(*)(
void *,
int ,
char const *,
char const *,sqlite3_int64),
5472 SQLITE_API
int sqlite3_enable_shared_cache(
int);
5488 SQLITE_API
int sqlite3_release_memory(
int);
5502 SQLITE_API
int sqlite3_db_release_memory(
sqlite3*);
5555 SQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 N);
5566 SQLITE_API SQLITE_DEPRECATED
void sqlite3_soft_heap_limit(
int N);
5636 SQLITE_API
int sqlite3_table_column_metadata(
5638 const char *zDbName,
5639 const char *zTableName,
5640 const char *zColumnName,
5641 char const **pzDataType,
5642 char const **pzCollSeq,
5692 SQLITE_API
int sqlite3_load_extension(
5724 SQLITE_API
int sqlite3_enable_load_extension(
sqlite3 *db,
int onoff);
5762 SQLITE_API
int sqlite3_auto_extension(
void(*xEntryPoint)(
void));
5774 SQLITE_API
int sqlite3_cancel_auto_extension(
void(*xEntryPoint)(
void));
5782 SQLITE_API
void sqlite3_reset_auto_extension(
void);
5819 int (*xCreate)(
sqlite3*,
void *pAux,
5820 int argc,
const char *
const*argv,
5822 int (*xConnect)(
sqlite3*,
void *pAux,
5823 int argc,
const char *
const*argv,
5841 int (*xFindFunction)(
sqlite3_vtab *pVtab,
int nArg,
const char *zName,
5842 void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),
5951 struct sqlite3_index_constraint {
5954 unsigned char usable;
5958 struct sqlite3_index_orderby {
5963 struct sqlite3_index_constraint_usage {
5966 } *aConstraintUsage;
5969 int needToFreeIdxStr;
5970 int orderByConsumed;
5971 double estimatedCost;
5973 sqlite3_int64 estimatedRows;
5977 sqlite3_uint64 colUsed;
5983 #define SQLITE_INDEX_SCAN_UNIQUE 1 5993 #define SQLITE_INDEX_CONSTRAINT_EQ 2 5994 #define SQLITE_INDEX_CONSTRAINT_GT 4 5995 #define SQLITE_INDEX_CONSTRAINT_LE 8 5996 #define SQLITE_INDEX_CONSTRAINT_LT 16 5997 #define SQLITE_INDEX_CONSTRAINT_GE 32 5998 #define SQLITE_INDEX_CONSTRAINT_MATCH 64 5999 #define SQLITE_INDEX_CONSTRAINT_LIKE 65 6000 #define SQLITE_INDEX_CONSTRAINT_GLOB 66 6001 #define SQLITE_INDEX_CONSTRAINT_REGEXP 67 6029 SQLITE_API
int sqlite3_create_module(
6035 SQLITE_API
int sqlite3_create_module_v2(
6040 void(*xDestroy)(
void*)
6098 SQLITE_API
int sqlite3_declare_vtab(
sqlite3*,
const char *zSQL);
6117 SQLITE_API
int sqlite3_overload_function(
sqlite3*,
const char *zFuncName,
int nArg);
6141 typedef struct sqlite3_blob sqlite3_blob;
6216 SQLITE_API
int sqlite3_blob_open(
6220 const char *zColumn,
6223 sqlite3_blob **ppBlob
6249 SQLITE_API
int sqlite3_blob_reopen(sqlite3_blob *, sqlite3_int64);
6272 SQLITE_API
int sqlite3_blob_close(sqlite3_blob *);
6288 SQLITE_API
int sqlite3_blob_bytes(sqlite3_blob *);
6317 SQLITE_API
int sqlite3_blob_read(sqlite3_blob *,
void *Z,
int N,
int iOffset);
6359 SQLITE_API
int sqlite3_blob_write(sqlite3_blob *,
const void *z,
int n,
int iOffset);
6390 SQLITE_API sqlite3_vfs *sqlite3_vfs_find(
const char *zVfsName);
6391 SQLITE_API
int sqlite3_vfs_register(sqlite3_vfs*,
int makeDflt);
6392 SQLITE_API
int sqlite3_vfs_unregister(sqlite3_vfs*);
6581 int (*xMutexInit)(void);
6582 int (*xMutexEnd)(void);
6636 #define SQLITE_MUTEX_FAST 0 6637 #define SQLITE_MUTEX_RECURSIVE 1 6638 #define SQLITE_MUTEX_STATIC_MASTER 2 6639 #define SQLITE_MUTEX_STATIC_MEM 3 6640 #define SQLITE_MUTEX_STATIC_MEM2 4 6641 #define SQLITE_MUTEX_STATIC_OPEN 4 6642 #define SQLITE_MUTEX_STATIC_PRNG 5 6643 #define SQLITE_MUTEX_STATIC_LRU 6 6644 #define SQLITE_MUTEX_STATIC_LRU2 7 6645 #define SQLITE_MUTEX_STATIC_PMEM 7 6646 #define SQLITE_MUTEX_STATIC_APP1 8 6647 #define SQLITE_MUTEX_STATIC_APP2 9 6648 #define SQLITE_MUTEX_STATIC_APP3 10 6649 #define SQLITE_MUTEX_STATIC_VFS1 11 6650 #define SQLITE_MUTEX_STATIC_VFS2 12 6651 #define SQLITE_MUTEX_STATIC_VFS3 13 6698 SQLITE_API
int sqlite3_file_control(
sqlite3*,
const char *zDbName,
int op,
void*);
6717 SQLITE_API
int sqlite3_test_control(
int op, ...);
6730 #define SQLITE_TESTCTRL_FIRST 5 6731 #define SQLITE_TESTCTRL_PRNG_SAVE 5 6732 #define SQLITE_TESTCTRL_PRNG_RESTORE 6 6733 #define SQLITE_TESTCTRL_PRNG_RESET 7 6734 #define SQLITE_TESTCTRL_BITVEC_TEST 8 6735 #define SQLITE_TESTCTRL_FAULT_INSTALL 9 6736 #define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS 10 6737 #define SQLITE_TESTCTRL_PENDING_BYTE 11 6738 #define SQLITE_TESTCTRL_ASSERT 12 6739 #define SQLITE_TESTCTRL_ALWAYS 13 6740 #define SQLITE_TESTCTRL_RESERVE 14 6741 #define SQLITE_TESTCTRL_OPTIMIZATIONS 15 6742 #define SQLITE_TESTCTRL_ISKEYWORD 16 6743 #define SQLITE_TESTCTRL_SCRATCHMALLOC 17 6744 #define SQLITE_TESTCTRL_LOCALTIME_FAULT 18 6745 #define SQLITE_TESTCTRL_EXPLAIN_STMT 19 6746 #define SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD 19 6747 #define SQLITE_TESTCTRL_NEVER_CORRUPT 20 6748 #define SQLITE_TESTCTRL_VDBE_COVERAGE 21 6749 #define SQLITE_TESTCTRL_BYTEORDER 22 6750 #define SQLITE_TESTCTRL_ISINIT 23 6751 #define SQLITE_TESTCTRL_SORTER_MMAP 24 6752 #define SQLITE_TESTCTRL_IMPOSTER 25 6753 #define SQLITE_TESTCTRL_LAST 25 6781 SQLITE_API
int sqlite3_status(
int op,
int *pCurrent,
int *pHighwater,
int resetFlag);
6782 SQLITE_API
int sqlite3_status64(
6784 sqlite3_int64 *pCurrent,
6785 sqlite3_int64 *pHighwater,
6873 #define SQLITE_STATUS_MEMORY_USED 0 6874 #define SQLITE_STATUS_PAGECACHE_USED 1 6875 #define SQLITE_STATUS_PAGECACHE_OVERFLOW 2 6876 #define SQLITE_STATUS_SCRATCH_USED 3 6877 #define SQLITE_STATUS_SCRATCH_OVERFLOW 4 6878 #define SQLITE_STATUS_MALLOC_SIZE 5 6879 #define SQLITE_STATUS_PARSER_STACK 6 6880 #define SQLITE_STATUS_PAGECACHE_SIZE 7 6881 #define SQLITE_STATUS_SCRATCH_SIZE 8 6882 #define SQLITE_STATUS_MALLOC_COUNT 9 6907 SQLITE_API
int sqlite3_db_status(
sqlite3*,
int op,
int *pCur,
int *pHiwtr,
int resetFlg);
7011 #define SQLITE_DBSTATUS_LOOKASIDE_USED 0 7012 #define SQLITE_DBSTATUS_CACHE_USED 1 7013 #define SQLITE_DBSTATUS_SCHEMA_USED 2 7014 #define SQLITE_DBSTATUS_STMT_USED 3 7015 #define SQLITE_DBSTATUS_LOOKASIDE_HIT 4 7016 #define SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE 5 7017 #define SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL 6 7018 #define SQLITE_DBSTATUS_CACHE_HIT 7 7019 #define SQLITE_DBSTATUS_CACHE_MISS 8 7020 #define SQLITE_DBSTATUS_CACHE_WRITE 9 7021 #define SQLITE_DBSTATUS_DEFERRED_FKS 10 7022 #define SQLITE_DBSTATUS_CACHE_USED_SHARED 11 7023 #define SQLITE_DBSTATUS_MAX 11 7050 SQLITE_API
int sqlite3_stmt_status(sqlite3_stmt*,
int op,
int resetFlg);
7089 #define SQLITE_STMTSTATUS_FULLSCAN_STEP 1 7090 #define SQLITE_STMTSTATUS_SORT 2 7091 #define SQLITE_STMTSTATUS_AUTOINDEX 3 7092 #define SQLITE_STMTSTATUS_VM_STEP 4 7105 typedef struct sqlite3_pcache sqlite3_pcache;
7286 int (*xInit)(
void*);
7287 void (*xShutdown)(
void*);
7288 sqlite3_pcache *(*xCreate)(
int szPage,
int szExtra,
int bPurgeable);
7289 void (*xCachesize)(sqlite3_pcache*,
int nCachesize);
7290 int (*xPagecount)(sqlite3_pcache*);
7293 void (*xRekey)(sqlite3_pcache*, sqlite3_pcache_page*,
7294 unsigned oldKey,
unsigned newKey);
7295 void (*xTruncate)(sqlite3_pcache*,
unsigned iLimit);
7296 void (*xDestroy)(sqlite3_pcache*);
7297 void (*xShrink)(sqlite3_pcache*);
7308 int (*xInit)(
void*);
7309 void (*xShutdown)(
void*);
7310 sqlite3_pcache *(*xCreate)(
int szPage,
int bPurgeable);
7311 void (*xCachesize)(sqlite3_pcache*,
int nCachesize);
7312 int (*xPagecount)(sqlite3_pcache*);
7313 void *(*xFetch)(sqlite3_pcache*,
unsigned key,
int createFlag);
7314 void (*xUnpin)(sqlite3_pcache*,
void*,
int discard);
7315 void (*xRekey)(sqlite3_pcache*,
void*,
unsigned oldKey,
unsigned newKey);
7316 void (*xTruncate)(sqlite3_pcache*,
unsigned iLimit);
7317 void (*xDestroy)(sqlite3_pcache*);
7521 const char *zDestName,
7523 const char *zSourceName
7525 SQLITE_API
int sqlite3_backup_step(
sqlite3_backup *p,
int nPage);
7645 SQLITE_API
int sqlite3_unlock_notify(
7647 void (*xNotify)(
void **apArg,
int nArg),
7660 SQLITE_API
int sqlite3_stricmp(
const char *,
const char *);
7661 SQLITE_API
int sqlite3_strnicmp(
const char *,
const char *,
int);
7678 SQLITE_API
int sqlite3_strglob(
const char *zGlob,
const char *zStr);
7701 SQLITE_API
int sqlite3_strlike(
const char *zGlob,
const char *zStr,
unsigned int cEsc);
7724 SQLITE_API
void sqlite3_log(
int iErrCode,
const char *zFormat, ...);
7760 SQLITE_API
void *sqlite3_wal_hook(
7762 int(*)(
void *,
sqlite3*,
const char*,
int),
7795 SQLITE_API
int sqlite3_wal_autocheckpoint(
sqlite3 *db,
int N);
7817 SQLITE_API
int sqlite3_wal_checkpoint(
sqlite3 *db,
const char *zDb);
7911 SQLITE_API
int sqlite3_wal_checkpoint_v2(
7928 #define SQLITE_CHECKPOINT_PASSIVE 0 7929 #define SQLITE_CHECKPOINT_FULL 1 7930 #define SQLITE_CHECKPOINT_RESTART 2 7931 #define SQLITE_CHECKPOINT_TRUNCATE 3 7947 SQLITE_API
int sqlite3_vtab_config(
sqlite3*,
int op, ...);
7988 #define SQLITE_VTAB_CONSTRAINT_SUPPORT 1 8000 SQLITE_API
int sqlite3_vtab_on_conflict(
sqlite3 *);
8014 #define SQLITE_ROLLBACK 1 8016 #define SQLITE_FAIL 3 8018 #define SQLITE_REPLACE 5 8067 #define SQLITE_SCANSTAT_NLOOP 0 8068 #define SQLITE_SCANSTAT_NVISIT 1 8069 #define SQLITE_SCANSTAT_EST 2 8070 #define SQLITE_SCANSTAT_NAME 3 8071 #define SQLITE_SCANSTAT_EXPLAIN 4 8072 #define SQLITE_SCANSTAT_SELECTID 5 8105 SQLITE_API
int sqlite3_stmt_scanstatus(
8106 sqlite3_stmt *pStmt,
8121 SQLITE_API
void sqlite3_stmt_scanstatus_reset(sqlite3_stmt*);
8153 SQLITE_API
int sqlite3_db_cacheflush(
sqlite3*);
8233 SQLITE_API SQLITE_EXPERIMENTAL
void *sqlite3_preupdate_hook(
8241 sqlite3_int64 iKey1,
8247 SQLITE_API SQLITE_EXPERIMENTAL
int sqlite3_preupdate_count(
sqlite3 *);
8248 SQLITE_API SQLITE_EXPERIMENTAL
int sqlite3_preupdate_depth(
sqlite3 *);
8261 SQLITE_API
int sqlite3_system_errno(
sqlite3*);
8289 typedef struct sqlite3_snapshot sqlite3_snapshot;
8311 SQLITE_API SQLITE_EXPERIMENTAL
int sqlite3_snapshot_get(
8313 const char *zSchema,
8314 sqlite3_snapshot **ppSnapshot
8349 SQLITE_API SQLITE_EXPERIMENTAL
int sqlite3_snapshot_open(
8351 const char *zSchema,
8352 sqlite3_snapshot *pSnapshot
8366 SQLITE_API SQLITE_EXPERIMENTAL
void sqlite3_snapshot_free(sqlite3_snapshot*);
8390 SQLITE_API SQLITE_EXPERIMENTAL
int sqlite3_snapshot_cmp(
8391 sqlite3_snapshot *p1,
8392 sqlite3_snapshot *p2
8399 #ifdef SQLITE_OMIT_FLOATING_POINT 8422 #ifndef _SQLITE3RTREE_H_ 8423 #define _SQLITE3RTREE_H_ 8436 #ifdef SQLITE_RTREE_INT_ONLY 8437 typedef sqlite3_int64 sqlite3_rtree_dbl;
8439 typedef double sqlite3_rtree_dbl;
8448 SQLITE_API
int sqlite3_rtree_geometry_callback(
8463 sqlite3_rtree_dbl *aParam;
8465 void (*xDelUser)(
void *);
8474 SQLITE_API
int sqlite3_rtree_query_callback(
8476 const char *zQueryFunc,
8479 void (*xDestructor)(
void*)
8495 sqlite3_rtree_dbl *aParam;
8497 void (*xDelUser)(
void*);
8498 sqlite3_rtree_dbl *aCoord;
8499 unsigned int *anQueue;
8503 sqlite3_int64 iRowid;
8504 sqlite3_rtree_dbl rParentScore;
8507 sqlite3_rtree_dbl rScore;
8515 #define NOT_WITHIN 0 8516 #define PARTLY_WITHIN 1 8517 #define FULLY_WITHIN 2 8529 #if !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION) 8530 #define __SQLITESESSION_H_ 1 8543 typedef struct sqlite3_session sqlite3_session;
8548 typedef struct sqlite3_changeset_iter sqlite3_changeset_iter;
8580 int sqlite3session_create(
8583 sqlite3_session **ppSession
8598 void sqlite3session_delete(sqlite3_session *pSession);
8618 int sqlite3session_enable(sqlite3_session *pSession,
int bEnable);
8647 int sqlite3session_indirect(sqlite3_session *pSession,
int bIndirect);
8677 int sqlite3session_attach(
8678 sqlite3_session *pSession,
8691 void sqlite3session_table_filter(
8692 sqlite3_session *pSession,
8804 int sqlite3session_changeset(
8805 sqlite3_session *pSession,
8865 int sqlite3session_diff(
8866 sqlite3_session *pSession,
8867 const char *zFromDb,
8901 int sqlite3session_patchset(
8902 sqlite3_session *pSession,
8922 int sqlite3session_isempty(sqlite3_session *pSession);
8957 int sqlite3changeset_start(
8958 sqlite3_changeset_iter **pp,
8986 int sqlite3changeset_next(sqlite3_changeset_iter *pIter);
9014 int sqlite3changeset_op(
9015 sqlite3_changeset_iter *pIter,
9047 int sqlite3changeset_pk(
9048 sqlite3_changeset_iter *pIter,
9049 unsigned char **pabPK,
9077 int sqlite3changeset_old(
9078 sqlite3_changeset_iter *pIter,
9110 int sqlite3changeset_new(
9111 sqlite3_changeset_iter *pIter,
9137 int sqlite3changeset_conflict(
9138 sqlite3_changeset_iter *pIter,
9153 int sqlite3changeset_fk_conflicts(
9154 sqlite3_changeset_iter *pIter,
9186 int sqlite3changeset_finalize(sqlite3_changeset_iter *pIter);
9216 int sqlite3changeset_invert(
9217 int nIn,
const void *pIn,
9218 int *pnOut,
void **ppOut
9245 int sqlite3changeset_concat(
9258 typedef struct sqlite3_changegroup sqlite3_changegroup;
9295 int sqlite3changegroup_new(sqlite3_changegroup **pp);
9372 int sqlite3changegroup_add(sqlite3_changegroup*,
int nData,
void *pData);
9398 int sqlite3changegroup_output(
9399 sqlite3_changegroup*,
9407 void sqlite3changegroup_delete(sqlite3_changegroup*);
9545 int sqlite3changeset_apply(
9556 sqlite3_changeset_iter *p
9616 #define SQLITE_CHANGESET_DATA 1 9617 #define SQLITE_CHANGESET_NOTFOUND 2 9618 #define SQLITE_CHANGESET_CONFLICT 3 9619 #define SQLITE_CHANGESET_CONSTRAINT 4 9620 #define SQLITE_CHANGESET_FOREIGN_KEY 5 9653 #define SQLITE_CHANGESET_OMIT 0 9654 #define SQLITE_CHANGESET_REPLACE 1 9655 #define SQLITE_CHANGESET_ABORT 2 9746 int sqlite3changeset_apply_strm(
9748 int (*xInput)(
void *pIn,
void *pData,
int *pnData),
9757 sqlite3_changeset_iter *p
9761 int sqlite3changeset_concat_strm(
9762 int (*xInputA)(
void *pIn,
void *pData,
int *pnData),
9764 int (*xInputB)(
void *pIn,
void *pData,
int *pnData),
9766 int (*xOutput)(
void *pOut,
const void *pData,
int nData),
9769 int sqlite3changeset_invert_strm(
9770 int (*xInput)(
void *pIn,
void *pData,
int *pnData),
9772 int (*xOutput)(
void *pOut,
const void *pData,
int nData),
9775 int sqlite3changeset_start_strm(
9776 sqlite3_changeset_iter **pp,
9777 int (*xInput)(
void *pIn,
void *pData,
int *pnData),
9780 int sqlite3session_changeset_strm(
9781 sqlite3_session *pSession,
9782 int (*xOutput)(
void *pOut,
const void *pData,
int nData),
9785 int sqlite3session_patchset_strm(
9786 sqlite3_session *pSession,
9787 int (*xOutput)(
void *pOut,
const void *pData,
int nData),
9790 int sqlite3changegroup_add_strm(sqlite3_changegroup*,
9791 int (*xInput)(
void *pIn,
void *pData,
int *pnData),
9794 int sqlite3changegroup_output_strm(sqlite3_changegroup*,
9795 int (*xOutput)(
void *pOut,
const void *pData,
int nData),
9847 typedef struct Fts5Context Fts5Context;
9850 typedef void (*fts5_extension_function)(
9859 const unsigned char *a;
9860 const unsigned char *b;
10081 void *(*xUserData)(Fts5Context*);
10083 int (*xColumnCount)(Fts5Context*);
10084 int (*xRowCount)(Fts5Context*, sqlite3_int64 *pnRow);
10085 int (*xColumnTotalSize)(Fts5Context*,
int iCol, sqlite3_int64 *pnToken);
10087 int (*xTokenize)(Fts5Context*,
10088 const char *pText,
int nText,
10090 int (*xToken)(
void*, int,
const char*, int, int, int)
10093 int (*xPhraseCount)(Fts5Context*);
10094 int (*xPhraseSize)(Fts5Context*,
int iPhrase);
10096 int (*xInstCount)(Fts5Context*,
int *pnInst);
10097 int (*xInst)(Fts5Context*,
int iIdx,
int *piPhrase,
int *piCol,
int *piOff);
10099 sqlite3_int64 (*xRowid)(Fts5Context*);
10100 int (*xColumnText)(Fts5Context*,
int iCol,
const char **pz,
int *pn);
10101 int (*xColumnSize)(Fts5Context*,
int iCol,
int *pnToken);
10103 int (*xQueryPhrase)(Fts5Context*,
int iPhrase,
void *pUserData,
10106 int (*xSetAuxdata)(Fts5Context*,
void *pAux, void(*xDelete)(
void*));
10107 void *(*xGetAuxdata)(Fts5Context*,
int bClear);
10109 int (*xPhraseFirst)(Fts5Context*,
int iPhrase,
Fts5PhraseIter*,
int*,
int*);
10110 void (*xPhraseNext)(Fts5Context*, Fts5PhraseIter*,
int *piCol,
int *piOff);
10112 int (*xPhraseFirstColumn)(Fts5Context*,
int iPhrase, Fts5PhraseIter*,
int*);
10113 void (*xPhraseNextColumn)(Fts5Context*, Fts5PhraseIter*,
int *piCol);
10312 typedef struct Fts5Tokenizer Fts5Tokenizer;
10315 int (*xCreate)(
void*,
const char **azArg,
int nArg, Fts5Tokenizer **ppOut);
10316 void (*xDelete)(Fts5Tokenizer*);
10317 int (*xTokenize)(Fts5Tokenizer*,
10320 const char *pText,
int nText,
10324 const char *pToken,
10333 #define FTS5_TOKENIZE_QUERY 0x0001 10334 #define FTS5_TOKENIZE_PREFIX 0x0002 10335 #define FTS5_TOKENIZE_DOCUMENT 0x0004 10336 #define FTS5_TOKENIZE_AUX 0x0008 10340 #define FTS5_TOKEN_COLOCATED 0x0001 10354 int (*xCreateTokenizer)(
10359 void (*xDestroy)(
void*)
10363 int (*xFindTokenizer)(
10371 int (*xCreateFunction)(
10375 fts5_extension_function xFunction,
10376 void (*xDestroy)(
void*)