|
| #define | SQLITE_CORE 1 |
| |
| #define | SQLITE_AMALGAMATION 1 |
| |
| #define | SQLITE_PRIVATE static |
| |
| #define | SQLITE_API |
| |
| #define | _SQLITEINT_H_ |
| |
| #define | _LARGE_FILE 1 |
| |
| #define | _FILE_OFFSET_BITS 64 |
| |
| #define | _LARGEFILE_SOURCE 1 |
| |
| #define | SQLITE_MAX_LENGTH 1000000000 |
| |
| #define | SQLITE_MAX_COLUMN 2000 |
| |
| #define | SQLITE_MAX_SQL_LENGTH 1000000000 |
| |
| #define | SQLITE_MAX_EXPR_DEPTH 1000 |
| |
| #define | SQLITE_MAX_COMPOUND_SELECT 500 |
| |
| #define | SQLITE_MAX_VDBE_OP 25000 |
| |
| #define | SQLITE_MAX_FUNCTION_ARG 127 |
| |
| #define | SQLITE_DEFAULT_CACHE_SIZE 2000 |
| |
| #define | SQLITE_DEFAULT_TEMP_CACHE_SIZE 500 |
| |
| #define | SQLITE_DEFAULT_WAL_AUTOCHECKPOINT 1000 |
| |
| #define | SQLITE_MAX_ATTACHED 10 |
| |
| #define | SQLITE_MAX_VARIABLE_NUMBER 999 |
| |
| #define | SQLITE_MAX_PAGE_SIZE 65536 |
| |
| #define | SQLITE_DEFAULT_PAGE_SIZE 1024 |
| |
| #define | SQLITE_MAX_DEFAULT_PAGE_SIZE 8192 |
| |
| #define | SQLITE_MAX_PAGE_COUNT 1073741823 |
| |
| #define | SQLITE_MAX_LIKE_PATTERN_LENGTH 50000 |
| |
| #define | SQLITE_MAX_TRIGGER_DEPTH 1000 |
| |
| #define | _GNU_SOURCE |
| |
| #define | SQLITE_INT_TO_PTR(X) ((void*)&((char*)0)[X]) |
| |
| #define | SQLITE_PTR_TO_INT(X) ((int)(((char*)X)-(char*)0)) |
| |
| #define | SQLITE_THREADSAFE 1 /* IMP: R-07272-22309 */ |
| |
| #define | SQLITE_POWERSAFE_OVERWRITE 1 |
| |
| #define | SQLITE_DEFAULT_MEMSTATUS 1 |
| |
| #define | SQLITE_SYSTEM_MALLOC 1 |
| |
| #define | SQLITE_MALLOC_SOFT_LIMIT 1024 |
| |
| #define | _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */ |
| |
| #define | NDEBUG 1 |
| |
| #define | testcase(X) |
| |
| #define | TESTONLY(X) |
| |
| #define | VVA_ONLY(X) |
| |
| #define | ALWAYS(X) (X) |
| |
| #define | NEVER(X) (X) |
| |
| #define | IS_BIG_INT(X) (((X)&~(i64)0xffffffff)!=0) |
| |
| #define | likely(X) !!(X) |
| |
| #define | unlikely(X) !!(X) |
| |
| #define | _SQLITE3_H_ |
| |
| #define | SQLITE_EXTERN extern |
| |
| #define | SQLITE_DEPRECATED |
| |
| #define | SQLITE_EXPERIMENTAL |
| |
| #define | SQLITE_VERSION "3.7.17" |
| |
| #define | SQLITE_VERSION_NUMBER 3007017 |
| |
| #define | SQLITE_SOURCE_ID "2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668" |
| |
| #define | SQLITE_OK 0 /* Successful result */ |
| |
| #define | SQLITE_ERROR 1 /* SQL error or missing database */ |
| |
| #define | SQLITE_INTERNAL 2 /* Internal logic error in SQLite */ |
| |
| #define | SQLITE_PERM 3 /* Access permission denied */ |
| |
| #define | SQLITE_ABORT 4 /* Callback routine requested an abort */ |
| |
| #define | SQLITE_BUSY 5 /* The database file is locked */ |
| |
| #define | SQLITE_LOCKED 6 /* A table in the database is locked */ |
| |
| #define | SQLITE_NOMEM 7 /* A malloc() failed */ |
| |
| #define | SQLITE_READONLY 8 /* Attempt to write a readonly database */ |
| |
| #define | SQLITE_INTERRUPT 9 /* Operation terminated by sqlite3_interrupt()*/ |
| |
| #define | SQLITE_IOERR 10 /* Some kind of disk I/O error occurred */ |
| |
| #define | SQLITE_CORRUPT 11 /* The database disk image is malformed */ |
| |
| #define | SQLITE_NOTFOUND 12 /* Unknown opcode in sqlite3_file_control() */ |
| |
| #define | SQLITE_FULL 13 /* Insertion failed because database is full */ |
| |
| #define | SQLITE_CANTOPEN 14 /* Unable to open the database file */ |
| |
| #define | SQLITE_PROTOCOL 15 /* Database lock protocol error */ |
| |
| #define | SQLITE_EMPTY 16 /* Database is empty */ |
| |
| #define | SQLITE_SCHEMA 17 /* The database schema changed */ |
| |
| #define | SQLITE_TOOBIG 18 /* String or BLOB exceeds size limit */ |
| |
| #define | SQLITE_CONSTRAINT 19 /* Abort due to constraint violation */ |
| |
| #define | SQLITE_MISMATCH 20 /* Data type mismatch */ |
| |
| #define | SQLITE_MISUSE 21 /* Library used incorrectly */ |
| |
| #define | SQLITE_NOLFS 22 /* Uses OS features not supported on host */ |
| |
| #define | SQLITE_AUTH 23 /* Authorization denied */ |
| |
| #define | SQLITE_FORMAT 24 /* Auxiliary database format error */ |
| |
| #define | SQLITE_RANGE 25 /* 2nd parameter to sqlite3_bind out of range */ |
| |
| #define | SQLITE_NOTADB 26 /* File opened that is not a database file */ |
| |
| #define | SQLITE_NOTICE 27 /* Notifications from sqlite3_log() */ |
| |
| #define | SQLITE_WARNING 28 /* Warnings from sqlite3_log() */ |
| |
| #define | SQLITE_ROW 100 /* sqlite3_step() has another row ready */ |
| |
| #define | SQLITE_DONE 101 /* sqlite3_step() has finished executing */ |
| |
| #define | SQLITE_IOERR_READ (SQLITE_IOERR | (1<<8)) |
| |
| #define | SQLITE_IOERR_SHORT_READ (SQLITE_IOERR | (2<<8)) |
| |
| #define | SQLITE_IOERR_WRITE (SQLITE_IOERR | (3<<8)) |
| |
| #define | SQLITE_IOERR_FSYNC (SQLITE_IOERR | (4<<8)) |
| |
| #define | SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8)) |
| |
| #define | SQLITE_IOERR_TRUNCATE (SQLITE_IOERR | (6<<8)) |
| |
| #define | SQLITE_IOERR_FSTAT (SQLITE_IOERR | (7<<8)) |
| |
| #define | SQLITE_IOERR_UNLOCK (SQLITE_IOERR | (8<<8)) |
| |
| #define | SQLITE_IOERR_RDLOCK (SQLITE_IOERR | (9<<8)) |
| |
| #define | SQLITE_IOERR_DELETE (SQLITE_IOERR | (10<<8)) |
| |
| #define | SQLITE_IOERR_BLOCKED (SQLITE_IOERR | (11<<8)) |
| |
| #define | SQLITE_IOERR_NOMEM (SQLITE_IOERR | (12<<8)) |
| |
| #define | SQLITE_IOERR_ACCESS (SQLITE_IOERR | (13<<8)) |
| |
| #define | SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8)) |
| |
| #define | SQLITE_IOERR_LOCK (SQLITE_IOERR | (15<<8)) |
| |
| #define | SQLITE_IOERR_CLOSE (SQLITE_IOERR | (16<<8)) |
| |
| #define | SQLITE_IOERR_DIR_CLOSE (SQLITE_IOERR | (17<<8)) |
| |
| #define | SQLITE_IOERR_SHMOPEN (SQLITE_IOERR | (18<<8)) |
| |
| #define | SQLITE_IOERR_SHMSIZE (SQLITE_IOERR | (19<<8)) |
| |
| #define | SQLITE_IOERR_SHMLOCK (SQLITE_IOERR | (20<<8)) |
| |
| #define | SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21<<8)) |
| |
| #define | SQLITE_IOERR_SEEK (SQLITE_IOERR | (22<<8)) |
| |
| #define | SQLITE_IOERR_DELETE_NOENT (SQLITE_IOERR | (23<<8)) |
| |
| #define | SQLITE_IOERR_MMAP (SQLITE_IOERR | (24<<8)) |
| |
| #define | SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8)) |
| |
| #define | SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8)) |
| |
| #define | SQLITE_CANTOPEN_NOTEMPDIR (SQLITE_CANTOPEN | (1<<8)) |
| |
| #define | SQLITE_CANTOPEN_ISDIR (SQLITE_CANTOPEN | (2<<8)) |
| |
| #define | SQLITE_CANTOPEN_FULLPATH (SQLITE_CANTOPEN | (3<<8)) |
| |
| #define | SQLITE_CORRUPT_VTAB (SQLITE_CORRUPT | (1<<8)) |
| |
| #define | SQLITE_READONLY_RECOVERY (SQLITE_READONLY | (1<<8)) |
| |
| #define | SQLITE_READONLY_CANTLOCK (SQLITE_READONLY | (2<<8)) |
| |
| #define | SQLITE_READONLY_ROLLBACK (SQLITE_READONLY | (3<<8)) |
| |
| #define | SQLITE_ABORT_ROLLBACK (SQLITE_ABORT | (2<<8)) |
| |
| #define | SQLITE_CONSTRAINT_CHECK (SQLITE_CONSTRAINT | (1<<8)) |
| |
| #define | SQLITE_CONSTRAINT_COMMITHOOK (SQLITE_CONSTRAINT | (2<<8)) |
| |
| #define | SQLITE_CONSTRAINT_FOREIGNKEY (SQLITE_CONSTRAINT | (3<<8)) |
| |
| #define | SQLITE_CONSTRAINT_FUNCTION (SQLITE_CONSTRAINT | (4<<8)) |
| |
| #define | SQLITE_CONSTRAINT_NOTNULL (SQLITE_CONSTRAINT | (5<<8)) |
| |
| #define | SQLITE_CONSTRAINT_PRIMARYKEY (SQLITE_CONSTRAINT | (6<<8)) |
| |
| #define | SQLITE_CONSTRAINT_TRIGGER (SQLITE_CONSTRAINT | (7<<8)) |
| |
| #define | SQLITE_CONSTRAINT_UNIQUE (SQLITE_CONSTRAINT | (8<<8)) |
| |
| #define | SQLITE_CONSTRAINT_VTAB (SQLITE_CONSTRAINT | (9<<8)) |
| |
| #define | SQLITE_NOTICE_RECOVER_WAL (SQLITE_NOTICE | (1<<8)) |
| |
| #define | SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8)) |
| |
| #define | SQLITE_OPEN_READONLY 0x00000001 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_READWRITE 0x00000002 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_CREATE 0x00000004 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_DELETEONCLOSE 0x00000008 /* VFS only */ |
| |
| #define | SQLITE_OPEN_EXCLUSIVE 0x00000010 /* VFS only */ |
| |
| #define | SQLITE_OPEN_AUTOPROXY 0x00000020 /* VFS only */ |
| |
| #define | SQLITE_OPEN_URI 0x00000040 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_MEMORY 0x00000080 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_MAIN_DB 0x00000100 /* VFS only */ |
| |
| #define | SQLITE_OPEN_TEMP_DB 0x00000200 /* VFS only */ |
| |
| #define | SQLITE_OPEN_TRANSIENT_DB 0x00000400 /* VFS only */ |
| |
| #define | SQLITE_OPEN_MAIN_JOURNAL 0x00000800 /* VFS only */ |
| |
| #define | SQLITE_OPEN_TEMP_JOURNAL 0x00001000 /* VFS only */ |
| |
| #define | SQLITE_OPEN_SUBJOURNAL 0x00002000 /* VFS only */ |
| |
| #define | SQLITE_OPEN_MASTER_JOURNAL 0x00004000 /* VFS only */ |
| |
| #define | SQLITE_OPEN_NOMUTEX 0x00008000 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_FULLMUTEX 0x00010000 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_SHAREDCACHE 0x00020000 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_PRIVATECACHE 0x00040000 /* Ok for sqlite3_open_v2() */ |
| |
| #define | SQLITE_OPEN_WAL 0x00080000 /* VFS only */ |
| |
| #define | SQLITE_IOCAP_ATOMIC 0x00000001 |
| |
| #define | SQLITE_IOCAP_ATOMIC512 0x00000002 |
| |
| #define | SQLITE_IOCAP_ATOMIC1K 0x00000004 |
| |
| #define | SQLITE_IOCAP_ATOMIC2K 0x00000008 |
| |
| #define | SQLITE_IOCAP_ATOMIC4K 0x00000010 |
| |
| #define | SQLITE_IOCAP_ATOMIC8K 0x00000020 |
| |
| #define | SQLITE_IOCAP_ATOMIC16K 0x00000040 |
| |
| #define | SQLITE_IOCAP_ATOMIC32K 0x00000080 |
| |
| #define | SQLITE_IOCAP_ATOMIC64K 0x00000100 |
| |
| #define | SQLITE_IOCAP_SAFE_APPEND 0x00000200 |
| |
| #define | SQLITE_IOCAP_SEQUENTIAL 0x00000400 |
| |
| #define | SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 0x00000800 |
| |
| #define | SQLITE_IOCAP_POWERSAFE_OVERWRITE 0x00001000 |
| |
| #define | SQLITE_LOCK_NONE 0 |
| |
| #define | SQLITE_LOCK_SHARED 1 |
| |
| #define | SQLITE_LOCK_RESERVED 2 |
| |
| #define | SQLITE_LOCK_PENDING 3 |
| |
| #define | SQLITE_LOCK_EXCLUSIVE 4 |
| |
| #define | SQLITE_SYNC_NORMAL 0x00002 |
| |
| #define | SQLITE_SYNC_FULL 0x00003 |
| |
| #define | SQLITE_SYNC_DATAONLY 0x00010 |
| |
| #define | SQLITE_FCNTL_LOCKSTATE 1 |
| |
| #define | SQLITE_GET_LOCKPROXYFILE 2 |
| |
| #define | SQLITE_SET_LOCKPROXYFILE 3 |
| |
| #define | SQLITE_LAST_ERRNO 4 |
| |
| #define | SQLITE_FCNTL_SIZE_HINT 5 |
| |
| #define | SQLITE_FCNTL_CHUNK_SIZE 6 |
| |
| #define | SQLITE_FCNTL_FILE_POINTER 7 |
| |
| #define | SQLITE_FCNTL_SYNC_OMITTED 8 |
| |
| #define | SQLITE_FCNTL_WIN32_AV_RETRY 9 |
| |
| #define | SQLITE_FCNTL_PERSIST_WAL 10 |
| |
| #define | SQLITE_FCNTL_OVERWRITE 11 |
| |
| #define | SQLITE_FCNTL_VFSNAME 12 |
| |
| #define | SQLITE_FCNTL_POWERSAFE_OVERWRITE 13 |
| |
| #define | SQLITE_FCNTL_PRAGMA 14 |
| |
| #define | SQLITE_FCNTL_BUSYHANDLER 15 |
| |
| #define | SQLITE_FCNTL_TEMPFILENAME 16 |
| |
| #define | SQLITE_FCNTL_MMAP_SIZE 18 |
| |
| #define | SQLITE_ACCESS_EXISTS 0 |
| |
| #define | SQLITE_ACCESS_READWRITE 1 /* Used by PRAGMA temp_store_directory */ |
| |
| #define | SQLITE_ACCESS_READ 2 /* Unused */ |
| |
| #define | SQLITE_SHM_UNLOCK 1 |
| |
| #define | SQLITE_SHM_LOCK 2 |
| |
| #define | SQLITE_SHM_SHARED 4 |
| |
| #define | SQLITE_SHM_EXCLUSIVE 8 |
| |
| #define | SQLITE_SHM_NLOCK 8 |
| |
| #define | SQLITE_CONFIG_SINGLETHREAD 1 /* nil */ |
| |
| #define | SQLITE_CONFIG_MULTITHREAD 2 /* nil */ |
| |
| #define | SQLITE_CONFIG_SERIALIZED 3 /* nil */ |
| |
| #define | SQLITE_CONFIG_MALLOC 4 /* sqlite3_mem_methods* */ |
| |
| #define | SQLITE_CONFIG_GETMALLOC 5 /* sqlite3_mem_methods* */ |
| |
| #define | SQLITE_CONFIG_SCRATCH 6 /* void*, int sz, int N */ |
| |
| #define | SQLITE_CONFIG_PAGECACHE 7 /* void*, int sz, int N */ |
| |
| #define | SQLITE_CONFIG_HEAP 8 /* void*, int nByte, int min */ |
| |
| #define | SQLITE_CONFIG_MEMSTATUS 9 /* boolean */ |
| |
| #define | SQLITE_CONFIG_MUTEX 10 /* sqlite3_mutex_methods* */ |
| |
| #define | SQLITE_CONFIG_GETMUTEX 11 /* sqlite3_mutex_methods* */ |
| |
| #define | SQLITE_CONFIG_LOOKASIDE 13 /* int int */ |
| |
| #define | SQLITE_CONFIG_PCACHE 14 /* no-op */ |
| |
| #define | SQLITE_CONFIG_GETPCACHE 15 /* no-op */ |
| |
| #define | SQLITE_CONFIG_LOG 16 /* xFunc, void* */ |
| |
| #define | SQLITE_CONFIG_URI 17 /* int */ |
| |
| #define | SQLITE_CONFIG_PCACHE2 18 /* sqlite3_pcache_methods2* */ |
| |
| #define | SQLITE_CONFIG_GETPCACHE2 19 /* sqlite3_pcache_methods2* */ |
| |
| #define | SQLITE_CONFIG_COVERING_INDEX_SCAN 20 /* int */ |
| |
| #define | SQLITE_CONFIG_SQLLOG 21 /* xSqllog, void* */ |
| |
| #define | SQLITE_CONFIG_MMAP_SIZE 22 /* sqlite3_int64, sqlite3_int64 */ |
| |
| #define | SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */ |
| |
| #define | SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */ |
| |
| #define | SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */ |
| |
| #define | SQLITE_DENY 1 /* Abort the SQL statement with an error */ |
| |
| #define | SQLITE_IGNORE 2 /* Don't allow access, but don't generate an error */ |
| |
| #define | SQLITE_CREATE_INDEX 1 /* Index Name Table Name */ |
| |
| #define | SQLITE_CREATE_TABLE 2 /* Table Name NULL */ |
| |
| #define | SQLITE_CREATE_TEMP_INDEX 3 /* Index Name Table Name */ |
| |
| #define | SQLITE_CREATE_TEMP_TABLE 4 /* Table Name NULL */ |
| |
| #define | SQLITE_CREATE_TEMP_TRIGGER 5 /* Trigger Name Table Name */ |
| |
| #define | SQLITE_CREATE_TEMP_VIEW 6 /* View Name NULL */ |
| |
| #define | SQLITE_CREATE_TRIGGER 7 /* Trigger Name Table Name */ |
| |
| #define | SQLITE_CREATE_VIEW 8 /* View Name NULL */ |
| |
| #define | SQLITE_DELETE 9 /* Table Name NULL */ |
| |
| #define | SQLITE_DROP_INDEX 10 /* Index Name Table Name */ |
| |
| #define | SQLITE_DROP_TABLE 11 /* Table Name NULL */ |
| |
| #define | SQLITE_DROP_TEMP_INDEX 12 /* Index Name Table Name */ |
| |
| #define | SQLITE_DROP_TEMP_TABLE 13 /* Table Name NULL */ |
| |
| #define | SQLITE_DROP_TEMP_TRIGGER 14 /* Trigger Name Table Name */ |
| |
| #define | SQLITE_DROP_TEMP_VIEW 15 /* View Name NULL */ |
| |
| #define | SQLITE_DROP_TRIGGER 16 /* Trigger Name Table Name */ |
| |
| #define | SQLITE_DROP_VIEW 17 /* View Name NULL */ |
| |
| #define | SQLITE_INSERT 18 /* Table Name NULL */ |
| |
| #define | SQLITE_PRAGMA 19 /* Pragma Name 1st arg or NULL */ |
| |
| #define | SQLITE_READ 20 /* Table Name Column Name */ |
| |
| #define | SQLITE_SELECT 21 /* NULL NULL */ |
| |
| #define | SQLITE_TRANSACTION 22 /* Operation NULL */ |
| |
| #define | SQLITE_UPDATE 23 /* Table Name Column Name */ |
| |
| #define | SQLITE_ATTACH 24 /* Filename NULL */ |
| |
| #define | SQLITE_DETACH 25 /* Database Name NULL */ |
| |
| #define | SQLITE_ALTER_TABLE 26 /* Database Name Table Name */ |
| |
| #define | SQLITE_REINDEX 27 /* Index Name NULL */ |
| |
| #define | SQLITE_ANALYZE 28 /* Table Name NULL */ |
| |
| #define | SQLITE_CREATE_VTABLE 29 /* Table Name Module Name */ |
| |
| #define | SQLITE_DROP_VTABLE 30 /* Table Name Module Name */ |
| |
| #define | SQLITE_FUNCTION 31 /* NULL Function Name */ |
| |
| #define | SQLITE_SAVEPOINT 32 /* Operation Savepoint Name */ |
| |
| #define | SQLITE_COPY 0 /* No longer used */ |
| |
| #define | SQLITE_LIMIT_LENGTH 0 |
| |
| #define | SQLITE_LIMIT_SQL_LENGTH 1 |
| |
| #define | SQLITE_LIMIT_COLUMN 2 |
| |
| #define | SQLITE_LIMIT_EXPR_DEPTH 3 |
| |
| #define | SQLITE_LIMIT_COMPOUND_SELECT 4 |
| |
| #define | SQLITE_LIMIT_VDBE_OP 5 |
| |
| #define | SQLITE_LIMIT_FUNCTION_ARG 6 |
| |
| #define | SQLITE_LIMIT_ATTACHED 7 |
| |
| #define | SQLITE_LIMIT_LIKE_PATTERN_LENGTH 8 |
| |
| #define | SQLITE_LIMIT_VARIABLE_NUMBER 9 |
| |
| #define | SQLITE_LIMIT_TRIGGER_DEPTH 10 |
| |
| #define | SQLITE_INTEGER 1 |
| |
| #define | SQLITE_FLOAT 2 |
| |
| #define | SQLITE_BLOB 4 |
| |
| #define | SQLITE_NULL 5 |
| |
| #define | SQLITE_TEXT 3 |
| |
| #define | SQLITE3_TEXT 3 |
| |
| #define | SQLITE_UTF8 1 |
| |
| #define | SQLITE_UTF16LE 2 |
| |
| #define | SQLITE_UTF16BE 3 |
| |
| #define | SQLITE_UTF16 4 /* Use native byte order */ |
| |
| #define | SQLITE_ANY 5 /* sqlite3_create_function only */ |
| |
| #define | SQLITE_UTF16_ALIGNED 8 /* sqlite3_create_collation only */ |
| |
| #define | SQLITE_STATIC ((sqlite3_destructor_type)0) |
| |
| #define | SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) |
| |
| #define | SQLITE_INDEX_CONSTRAINT_EQ 2 |
| |
| #define | SQLITE_INDEX_CONSTRAINT_GT 4 |
| |
| #define | SQLITE_INDEX_CONSTRAINT_LE 8 |
| |
| #define | SQLITE_INDEX_CONSTRAINT_LT 16 |
| |
| #define | SQLITE_INDEX_CONSTRAINT_GE 32 |
| |
| #define | SQLITE_INDEX_CONSTRAINT_MATCH 64 |
| |
| #define | SQLITE_MUTEX_FAST 0 |
| |
| #define | SQLITE_MUTEX_RECURSIVE 1 |
| |
| #define | SQLITE_MUTEX_STATIC_MASTER 2 |
| |
| #define | SQLITE_MUTEX_STATIC_MEM 3 /* sqlite3_malloc() */ |
| |
| #define | SQLITE_MUTEX_STATIC_MEM2 4 /* NOT USED */ |
| |
| #define | SQLITE_MUTEX_STATIC_OPEN 4 /* sqlite3BtreeOpen() */ |
| |
| #define | SQLITE_MUTEX_STATIC_PRNG 5 /* sqlite3_random() */ |
| |
| #define | SQLITE_MUTEX_STATIC_LRU 6 /* lru page list */ |
| |
| #define | SQLITE_MUTEX_STATIC_LRU2 7 /* NOT USED */ |
| |
| #define | SQLITE_MUTEX_STATIC_PMEM 7 /* sqlite3PageMalloc() */ |
| |
| #define | SQLITE_TESTCTRL_FIRST 5 |
| |
| #define | SQLITE_TESTCTRL_PRNG_SAVE 5 |
| |
| #define | SQLITE_TESTCTRL_PRNG_RESTORE 6 |
| |
| #define | SQLITE_TESTCTRL_PRNG_RESET 7 |
| |
| #define | SQLITE_TESTCTRL_BITVEC_TEST 8 |
| |
| #define | SQLITE_TESTCTRL_FAULT_INSTALL 9 |
| |
| #define | SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS 10 |
| |
| #define | SQLITE_TESTCTRL_PENDING_BYTE 11 |
| |
| #define | SQLITE_TESTCTRL_ASSERT 12 |
| |
| #define | SQLITE_TESTCTRL_ALWAYS 13 |
| |
| #define | SQLITE_TESTCTRL_RESERVE 14 |
| |
| #define | SQLITE_TESTCTRL_OPTIMIZATIONS 15 |
| |
| #define | SQLITE_TESTCTRL_ISKEYWORD 16 |
| |
| #define | SQLITE_TESTCTRL_SCRATCHMALLOC 17 |
| |
| #define | SQLITE_TESTCTRL_LOCALTIME_FAULT 18 |
| |
| #define | SQLITE_TESTCTRL_EXPLAIN_STMT 19 |
| |
| #define | SQLITE_TESTCTRL_LAST 19 |
| |
| #define | SQLITE_STATUS_MEMORY_USED 0 |
| |
| #define | SQLITE_STATUS_PAGECACHE_USED 1 |
| |
| #define | SQLITE_STATUS_PAGECACHE_OVERFLOW 2 |
| |
| #define | SQLITE_STATUS_SCRATCH_USED 3 |
| |
| #define | SQLITE_STATUS_SCRATCH_OVERFLOW 4 |
| |
| #define | SQLITE_STATUS_MALLOC_SIZE 5 |
| |
| #define | SQLITE_STATUS_PARSER_STACK 6 |
| |
| #define | SQLITE_STATUS_PAGECACHE_SIZE 7 |
| |
| #define | SQLITE_STATUS_SCRATCH_SIZE 8 |
| |
| #define | SQLITE_STATUS_MALLOC_COUNT 9 |
| |
| #define | SQLITE_DBSTATUS_LOOKASIDE_USED 0 |
| |
| #define | SQLITE_DBSTATUS_CACHE_USED 1 |
| |
| #define | SQLITE_DBSTATUS_SCHEMA_USED 2 |
| |
| #define | SQLITE_DBSTATUS_STMT_USED 3 |
| |
| #define | SQLITE_DBSTATUS_LOOKASIDE_HIT 4 |
| |
| #define | SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE 5 |
| |
| #define | SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL 6 |
| |
| #define | SQLITE_DBSTATUS_CACHE_HIT 7 |
| |
| #define | SQLITE_DBSTATUS_CACHE_MISS 8 |
| |
| #define | SQLITE_DBSTATUS_CACHE_WRITE 9 |
| |
| #define | SQLITE_DBSTATUS_MAX 9 /* Largest defined DBSTATUS */ |
| |
| #define | SQLITE_STMTSTATUS_FULLSCAN_STEP 1 |
| |
| #define | SQLITE_STMTSTATUS_SORT 2 |
| |
| #define | SQLITE_STMTSTATUS_AUTOINDEX 3 |
| |
| #define | SQLITE_CHECKPOINT_PASSIVE 0 |
| |
| #define | SQLITE_CHECKPOINT_FULL 1 |
| |
| #define | SQLITE_CHECKPOINT_RESTART 2 |
| |
| #define | SQLITE_VTAB_CONSTRAINT_SUPPORT 1 |
| |
| #define | SQLITE_ROLLBACK 1 |
| |
| #define | SQLITE_FAIL 3 |
| |
| #define | SQLITE_REPLACE 5 |
| |
| #define | _SQLITE3RTREE_H_ |
| |
| #define | _SQLITE_HASH_H_ |
| |
| #define | sqliteHashFirst(H) ((H)->first) |
| |
| #define | sqliteHashNext(E) ((E)->next) |
| |
| #define | sqliteHashData(E) ((E)->data) |
| |
| #define | TK_SEMI 1 |
| |
| #define | TK_EXPLAIN 2 |
| |
| #define | TK_QUERY 3 |
| |
| #define | TK_PLAN 4 |
| |
| #define | TK_BEGIN 5 |
| |
| #define | TK_TRANSACTION 6 |
| |
| #define | TK_DEFERRED 7 |
| |
| #define | TK_IMMEDIATE 8 |
| |
| #define | TK_EXCLUSIVE 9 |
| |
| #define | TK_COMMIT 10 |
| |
| #define | TK_END 11 |
| |
| #define | TK_ROLLBACK 12 |
| |
| #define | TK_SAVEPOINT 13 |
| |
| #define | TK_RELEASE 14 |
| |
| #define | TK_TO 15 |
| |
| #define | TK_TABLE 16 |
| |
| #define | TK_CREATE 17 |
| |
| #define | TK_IF 18 |
| |
| #define | TK_NOT 19 |
| |
| #define | TK_EXISTS 20 |
| |
| #define | TK_TEMP 21 |
| |
| #define | TK_LP 22 |
| |
| #define | TK_RP 23 |
| |
| #define | TK_AS 24 |
| |
| #define | TK_COMMA 25 |
| |
| #define | TK_ID 26 |
| |
| #define | TK_INDEXED 27 |
| |
| #define | TK_ABORT 28 |
| |
| #define | TK_ACTION 29 |
| |
| #define | TK_AFTER 30 |
| |
| #define | TK_ANALYZE 31 |
| |
| #define | TK_ASC 32 |
| |
| #define | TK_ATTACH 33 |
| |
| #define | TK_BEFORE 34 |
| |
| #define | TK_BY 35 |
| |
| #define | TK_CASCADE 36 |
| |
| #define | TK_CAST 37 |
| |
| #define | TK_COLUMNKW 38 |
| |
| #define | TK_CONFLICT 39 |
| |
| #define | TK_DATABASE 40 |
| |
| #define | TK_DESC 41 |
| |
| #define | TK_DETACH 42 |
| |
| #define | TK_EACH 43 |
| |
| #define | TK_FAIL 44 |
| |
| #define | TK_FOR 45 |
| |
| #define | TK_IGNORE 46 |
| |
| #define | TK_INITIALLY 47 |
| |
| #define | TK_INSTEAD 48 |
| |
| #define | TK_LIKE_KW 49 |
| |
| #define | TK_MATCH 50 |
| |
| #define | TK_NO 51 |
| |
| #define | TK_KEY 52 |
| |
| #define | TK_OF 53 |
| |
| #define | TK_OFFSET 54 |
| |
| #define | TK_PRAGMA 55 |
| |
| #define | TK_RAISE 56 |
| |
| #define | TK_REPLACE 57 |
| |
| #define | TK_RESTRICT 58 |
| |
| #define | TK_ROW 59 |
| |
| #define | TK_TRIGGER 60 |
| |
| #define | TK_VACUUM 61 |
| |
| #define | TK_VIEW 62 |
| |
| #define | TK_VIRTUAL 63 |
| |
| #define | TK_REINDEX 64 |
| |
| #define | TK_RENAME 65 |
| |
| #define | TK_CTIME_KW 66 |
| |
| #define | TK_ANY 67 |
| |
| #define | TK_OR 68 |
| |
| #define | TK_AND 69 |
| |
| #define | TK_IS 70 |
| |
| #define | TK_BETWEEN 71 |
| |
| #define | TK_IN 72 |
| |
| #define | TK_ISNULL 73 |
| |
| #define | TK_NOTNULL 74 |
| |
| #define | TK_NE 75 |
| |
| #define | TK_EQ 76 |
| |
| #define | TK_GT 77 |
| |
| #define | TK_LE 78 |
| |
| #define | TK_LT 79 |
| |
| #define | TK_GE 80 |
| |
| #define | TK_ESCAPE 81 |
| |
| #define | TK_BITAND 82 |
| |
| #define | TK_BITOR 83 |
| |
| #define | TK_LSHIFT 84 |
| |
| #define | TK_RSHIFT 85 |
| |
| #define | TK_PLUS 86 |
| |
| #define | TK_MINUS 87 |
| |
| #define | TK_STAR 88 |
| |
| #define | TK_SLASH 89 |
| |
| #define | TK_REM 90 |
| |
| #define | TK_CONCAT 91 |
| |
| #define | TK_COLLATE 92 |
| |
| #define | TK_BITNOT 93 |
| |
| #define | TK_STRING 94 |
| |
| #define | TK_JOIN_KW 95 |
| |
| #define | TK_CONSTRAINT 96 |
| |
| #define | TK_DEFAULT 97 |
| |
| #define | TK_NULL 98 |
| |
| #define | TK_PRIMARY 99 |
| |
| #define | TK_UNIQUE 100 |
| |
| #define | TK_CHECK 101 |
| |
| #define | TK_REFERENCES 102 |
| |
| #define | TK_AUTOINCR 103 |
| |
| #define | TK_ON 104 |
| |
| #define | TK_INSERT 105 |
| |
| #define | TK_DELETE 106 |
| |
| #define | TK_UPDATE 107 |
| |
| #define | TK_SET 108 |
| |
| #define | TK_DEFERRABLE 109 |
| |
| #define | TK_FOREIGN 110 |
| |
| #define | TK_DROP 111 |
| |
| #define | TK_UNION 112 |
| |
| #define | TK_ALL 113 |
| |
| #define | TK_EXCEPT 114 |
| |
| #define | TK_INTERSECT 115 |
| |
| #define | TK_SELECT 116 |
| |
| #define | TK_DISTINCT 117 |
| |
| #define | TK_DOT 118 |
| |
| #define | TK_FROM 119 |
| |
| #define | TK_JOIN 120 |
| |
| #define | TK_USING 121 |
| |
| #define | TK_ORDER 122 |
| |
| #define | TK_GROUP 123 |
| |
| #define | TK_HAVING 124 |
| |
| #define | TK_LIMIT 125 |
| |
| #define | TK_WHERE 126 |
| |
| #define | TK_INTO 127 |
| |
| #define | TK_VALUES 128 |
| |
| #define | TK_INTEGER 129 |
| |
| #define | TK_FLOAT 130 |
| |
| #define | TK_BLOB 131 |
| |
| #define | TK_REGISTER 132 |
| |
| #define | TK_VARIABLE 133 |
| |
| #define | TK_CASE 134 |
| |
| #define | TK_WHEN 135 |
| |
| #define | TK_THEN 136 |
| |
| #define | TK_ELSE 137 |
| |
| #define | TK_INDEX 138 |
| |
| #define | TK_ALTER 139 |
| |
| #define | TK_ADD 140 |
| |
| #define | TK_TO_TEXT 141 |
| |
| #define | TK_TO_BLOB 142 |
| |
| #define | TK_TO_NUMERIC 143 |
| |
| #define | TK_TO_INT 144 |
| |
| #define | TK_TO_REAL 145 |
| |
| #define | TK_ISNOT 146 |
| |
| #define | TK_END_OF_FILE 147 |
| |
| #define | TK_ILLEGAL 148 |
| |
| #define | TK_SPACE 149 |
| |
| #define | TK_UNCLOSED_STRING 150 |
| |
| #define | TK_FUNCTION 151 |
| |
| #define | TK_COLUMN 152 |
| |
| #define | TK_AGG_FUNCTION 153 |
| |
| #define | TK_AGG_COLUMN 154 |
| |
| #define | TK_CONST_FUNC 155 |
| |
| #define | TK_UMINUS 156 |
| |
| #define | TK_UPLUS 157 |
| |
| #define | SQLITE_BIG_DBL (1e99) |
| |
| #define | OMIT_TEMPDB 0 |
| |
| #define | SQLITE_MAX_FILE_FORMAT 4 |
| |
| #define | SQLITE_DEFAULT_FILE_FORMAT 4 |
| |
| #define | SQLITE_DEFAULT_RECURSIVE_TRIGGERS 0 |
| |
| #define | SQLITE_TEMP_STORE 1 |
| |
| #define | SQLITE_TEMP_STORE_xc 1 /* Exclude from ctime.c */ |
| |
| #define | offsetof(STRUCTURE, FIELD) ((int)((char*)&((STRUCTURE*)0)->FIELD)) |
| |
| #define | SQLITE_ASCII 1 |
| |
| #define | UINT32_TYPE unsigned int |
| |
| #define | UINT16_TYPE unsigned short int |
| |
| #define | INT16_TYPE short int |
| |
| #define | UINT8_TYPE unsigned char |
| |
| #define | INT8_TYPE signed char |
| |
| #define | LONGDOUBLE_TYPE long double |
| |
| #define | SQLITE_MAX_U32 ((((u64)1)<<32)-1) |
| |
| #define | SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0) |
| |
| #define | SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1) |
| |
| #define | SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE) |
| |
| #define | LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32)) |
| |
| #define | SMALLEST_INT64 (((i64)-1) - LARGEST_INT64) |
| |
| #define | ROUND8(x) (((x)+7)&~7) |
| |
| #define | ROUNDDOWN8(x) ((x)&~7) |
| |
| #define | EIGHT_BYTE_ALIGNMENT(X) ((((char*)(X) - (char*)0)&7)==0) |
| |
| #define | SQLITE_MAX_MMAP_SIZE 0 |
| |
| #define | SQLITE_MAX_MMAP_SIZE_xc 1 /* exclude from ctime.c */ |
| |
| #define | SQLITE_DEFAULT_MMAP_SIZE 0 |
| |
| #define | SQLITE_DEFAULT_MMAP_SIZE_xc 1 /* Exclude from ctime.c */ |
| |
| #define | MASTER_NAME "sqlite_master" |
| |
| #define | TEMP_MASTER_NAME "sqlite_temp_master" |
| |
| #define | MASTER_ROOT 1 |
| |
| #define | SCHEMA_TABLE(x) ((!OMIT_TEMPDB)&&(x==1)?TEMP_MASTER_NAME:MASTER_NAME) |
| |
| #define | ArraySize(X) ((int)(sizeof(X)/sizeof(X[0]))) |
| |
| #define | IsPowerOfTwo(X) (((X)&((X)-1))==0) |
| |
| #define | SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize) |
| |
| #define | SQLITE_WSD |
| |
| #define | GLOBAL(t, v) v |
| |
| #define | sqlite3GlobalConfig sqlite3Config |
| |
| #define | UNUSED_PARAMETER(x) (void)(x) |
| |
| #define | UNUSED_PARAMETER2(x, y) UNUSED_PARAMETER(x),UNUSED_PARAMETER(y) |
| |
| #define | _BTREE_H_ |
| |
| #define | SQLITE_N_BTREE_META 10 |
| |
| #define | SQLITE_DEFAULT_AUTOVACUUM 0 |
| |
| #define | BTREE_AUTOVACUUM_NONE 0 /* Do not do auto-vacuum */ |
| |
| #define | BTREE_AUTOVACUUM_FULL 1 /* Do full auto-vacuum */ |
| |
| #define | BTREE_AUTOVACUUM_INCR 2 /* Incremental vacuum */ |
| |
| #define | BTREE_OMIT_JOURNAL 1 /* Do not create or use a rollback journal */ |
| |
| #define | BTREE_MEMORY 2 /* This is an in-memory DB */ |
| |
| #define | BTREE_SINGLE 4 /* The file contains at most 1 b-tree */ |
| |
| #define | BTREE_UNORDERED 8 /* Use of a hash implementation is OK */ |
| |
| #define | BTREE_INTKEY 1 /* Table has only 64-bit signed integer keys */ |
| |
| #define | BTREE_BLOBKEY 2 /* Table has keys only - no data */ |
| |
| #define | BTREE_FREE_PAGE_COUNT 0 |
| |
| #define | BTREE_SCHEMA_VERSION 1 |
| |
| #define | BTREE_FILE_FORMAT 2 |
| |
| #define | BTREE_DEFAULT_CACHE_SIZE 3 |
| |
| #define | BTREE_LARGEST_ROOT_PAGE 4 |
| |
| #define | BTREE_TEXT_ENCODING 5 |
| |
| #define | BTREE_USER_VERSION 6 |
| |
| #define | BTREE_INCR_VACUUM 7 |
| |
| #define | BTREE_APPLICATION_ID 8 |
| |
| #define | BTREE_BULKLOAD 0x00000001 |
| |
| #define | _SQLITE_VDBE_H_ |
| |
| #define | P4_NOTUSED 0 /* The P4 parameter is not used */ |
| |
| #define | P4_DYNAMIC (-1) /* Pointer to a string obtained from sqliteMalloc() */ |
| |
| #define | P4_STATIC (-2) /* Pointer to a static string */ |
| |
| #define | P4_COLLSEQ (-4) /* P4 is a pointer to a CollSeq structure */ |
| |
| #define | P4_FUNCDEF (-5) /* P4 is a pointer to a FuncDef structure */ |
| |
| #define | P4_KEYINFO (-6) /* P4 is a pointer to a KeyInfo structure */ |
| |
| #define | P4_VDBEFUNC (-7) /* P4 is a pointer to a VdbeFunc structure */ |
| |
| #define | P4_MEM (-8) /* P4 is a pointer to a Mem* structure */ |
| |
| #define | P4_TRANSIENT 0 /* P4 is a pointer to a transient string */ |
| |
| #define | P4_VTAB (-10) /* P4 is a pointer to an sqlite3_vtab structure */ |
| |
| #define | P4_MPRINTF (-11) /* P4 is a string obtained from sqlite3_mprintf() */ |
| |
| #define | P4_REAL (-12) /* P4 is a 64-bit floating point value */ |
| |
| #define | P4_INT64 (-13) /* P4 is a 64-bit signed integer */ |
| |
| #define | P4_INT32 (-14) /* P4 is a 32-bit signed integer */ |
| |
| #define | P4_INTARRAY (-15) /* P4 is a vector of 32-bit integers */ |
| |
| #define | P4_SUBPROGRAM (-18) /* P4 is a pointer to a SubProgram structure */ |
| |
| #define | P4_ADVANCE (-19) /* P4 is a pointer to BtreeNext() or BtreePrev() */ |
| |
| #define | P4_KEYINFO_HANDOFF (-16) |
| |
| #define | P4_KEYINFO_STATIC (-17) |
| |
| #define | COLNAME_NAME 0 |
| |
| #define | COLNAME_DECLTYPE 1 |
| |
| #define | COLNAME_DATABASE 2 |
| |
| #define | COLNAME_TABLE 3 |
| |
| #define | COLNAME_COLUMN 4 |
| |
| #define | COLNAME_N 2 /* Store the name and decltype */ |
| |
| #define | ADDR(X) (-1-(X)) |
| |
| #define | OP_Goto 1 |
| |
| #define | OP_Gosub 2 |
| |
| #define | OP_Return 3 |
| |
| #define | OP_Yield 4 |
| |
| #define | OP_HaltIfNull 5 |
| |
| #define | OP_Halt 6 |
| |
| #define | OP_Integer 7 |
| |
| #define | OP_Int64 8 |
| |
| #define | OP_Real 130 /* same as TK_FLOAT */ |
| |
| #define | OP_String8 94 /* same as TK_STRING */ |
| |
| #define | OP_String 9 |
| |
| #define | OP_Null 10 |
| |
| #define | OP_Blob 11 |
| |
| #define | OP_Variable 12 |
| |
| #define | OP_Move 13 |
| |
| #define | OP_Copy 14 |
| |
| #define | OP_SCopy 15 |
| |
| #define | OP_ResultRow 16 |
| |
| #define | OP_Concat 91 /* same as TK_CONCAT */ |
| |
| #define | OP_Add 86 /* same as TK_PLUS */ |
| |
| #define | OP_Subtract 87 /* same as TK_MINUS */ |
| |
| #define | OP_Multiply 88 /* same as TK_STAR */ |
| |
| #define | OP_Divide 89 /* same as TK_SLASH */ |
| |
| #define | OP_Remainder 90 /* same as TK_REM */ |
| |
| #define | OP_CollSeq 17 |
| |
| #define | OP_Function 18 |
| |
| #define | OP_BitAnd 82 /* same as TK_BITAND */ |
| |
| #define | OP_BitOr 83 /* same as TK_BITOR */ |
| |
| #define | OP_ShiftLeft 84 /* same as TK_LSHIFT */ |
| |
| #define | OP_ShiftRight 85 /* same as TK_RSHIFT */ |
| |
| #define | OP_AddImm 20 |
| |
| #define | OP_MustBeInt 21 |
| |
| #define | OP_RealAffinity 22 |
| |
| #define | OP_ToText 141 /* same as TK_TO_TEXT */ |
| |
| #define | OP_ToBlob 142 /* same as TK_TO_BLOB */ |
| |
| #define | OP_ToNumeric 143 /* same as TK_TO_NUMERIC*/ |
| |
| #define | OP_ToInt 144 /* same as TK_TO_INT */ |
| |
| #define | OP_ToReal 145 /* same as TK_TO_REAL */ |
| |
| #define | OP_Eq 76 /* same as TK_EQ */ |
| |
| #define | OP_Ne 75 /* same as TK_NE */ |
| |
| #define | OP_Lt 79 /* same as TK_LT */ |
| |
| #define | OP_Le 78 /* same as TK_LE */ |
| |
| #define | OP_Gt 77 /* same as TK_GT */ |
| |
| #define | OP_Ge 80 /* same as TK_GE */ |
| |
| #define | OP_Permutation 23 |
| |
| #define | OP_Compare 24 |
| |
| #define | OP_Jump 25 |
| |
| #define | OP_And 69 /* same as TK_AND */ |
| |
| #define | OP_Or 68 /* same as TK_OR */ |
| |
| #define | OP_Not 19 /* same as TK_NOT */ |
| |
| #define | OP_BitNot 93 /* same as TK_BITNOT */ |
| |
| #define | OP_Once 26 |
| |
| #define | OP_If 27 |
| |
| #define | OP_IfNot 28 |
| |
| #define | OP_IsNull 73 /* same as TK_ISNULL */ |
| |
| #define | OP_NotNull 74 /* same as TK_NOTNULL */ |
| |
| #define | OP_Column 29 |
| |
| #define | OP_Affinity 30 |
| |
| #define | OP_MakeRecord 31 |
| |
| #define | OP_Count 32 |
| |
| #define | OP_Savepoint 33 |
| |
| #define | OP_AutoCommit 34 |
| |
| #define | OP_Transaction 35 |
| |
| #define | OP_ReadCookie 36 |
| |
| #define | OP_SetCookie 37 |
| |
| #define | OP_VerifyCookie 38 |
| |
| #define | OP_OpenRead 39 |
| |
| #define | OP_OpenWrite 40 |
| |
| #define | OP_OpenAutoindex 41 |
| |
| #define | OP_OpenEphemeral 42 |
| |
| #define | OP_SorterOpen 43 |
| |
| #define | OP_OpenPseudo 44 |
| |
| #define | OP_Close 45 |
| |
| #define | OP_SeekLt 46 |
| |
| #define | OP_SeekLe 47 |
| |
| #define | OP_SeekGe 48 |
| |
| #define | OP_SeekGt 49 |
| |
| #define | OP_Seek 50 |
| |
| #define | OP_NotFound 51 |
| |
| #define | OP_Found 52 |
| |
| #define | OP_IsUnique 53 |
| |
| #define | OP_NotExists 54 |
| |
| #define | OP_Sequence 55 |
| |
| #define | OP_NewRowid 56 |
| |
| #define | OP_Insert 57 |
| |
| #define | OP_InsertInt 58 |
| |
| #define | OP_Delete 59 |
| |
| #define | OP_ResetCount 60 |
| |
| #define | OP_SorterCompare 61 |
| |
| #define | OP_SorterData 62 |
| |
| #define | OP_RowKey 63 |
| |
| #define | OP_RowData 64 |
| |
| #define | OP_Rowid 65 |
| |
| #define | OP_NullRow 66 |
| |
| #define | OP_Last 67 |
| |
| #define | OP_SorterSort 70 |
| |
| #define | OP_Sort 71 |
| |
| #define | OP_Rewind 72 |
| |
| #define | OP_SorterNext 81 |
| |
| #define | OP_Prev 92 |
| |
| #define | OP_Next 95 |
| |
| #define | OP_SorterInsert 96 |
| |
| #define | OP_IdxInsert 97 |
| |
| #define | OP_IdxDelete 98 |
| |
| #define | OP_IdxRowid 99 |
| |
| #define | OP_IdxLT 100 |
| |
| #define | OP_IdxGE 101 |
| |
| #define | OP_Destroy 102 |
| |
| #define | OP_Clear 103 |
| |
| #define | OP_CreateIndex 104 |
| |
| #define | OP_CreateTable 105 |
| |
| #define | OP_ParseSchema 106 |
| |
| #define | OP_LoadAnalysis 107 |
| |
| #define | OP_DropTable 108 |
| |
| #define | OP_DropIndex 109 |
| |
| #define | OP_DropTrigger 110 |
| |
| #define | OP_IntegrityCk 111 |
| |
| #define | OP_RowSetAdd 112 |
| |
| #define | OP_RowSetRead 113 |
| |
| #define | OP_RowSetTest 114 |
| |
| #define | OP_Program 115 |
| |
| #define | OP_Param 116 |
| |
| #define | OP_FkCounter 117 |
| |
| #define | OP_FkIfZero 118 |
| |
| #define | OP_MemMax 119 |
| |
| #define | OP_IfPos 120 |
| |
| #define | OP_IfNeg 121 |
| |
| #define | OP_IfZero 122 |
| |
| #define | OP_AggStep 123 |
| |
| #define | OP_AggFinal 124 |
| |
| #define | OP_Checkpoint 125 |
| |
| #define | OP_JournalMode 126 |
| |
| #define | OP_Vacuum 127 |
| |
| #define | OP_IncrVacuum 128 |
| |
| #define | OP_Expire 129 |
| |
| #define | OP_TableLock 131 |
| |
| #define | OP_VBegin 132 |
| |
| #define | OP_VCreate 133 |
| |
| #define | OP_VDestroy 134 |
| |
| #define | OP_VOpen 135 |
| |
| #define | OP_VFilter 136 |
| |
| #define | OP_VColumn 137 |
| |
| #define | OP_VNext 138 |
| |
| #define | OP_VRename 139 |
| |
| #define | OP_VUpdate 140 |
| |
| #define | OP_Pagecount 146 |
| |
| #define | OP_MaxPgcnt 147 |
| |
| #define | OP_Trace 148 |
| |
| #define | OP_Noop 149 |
| |
| #define | OP_Explain 150 |
| |
| #define | OPFLG_JUMP 0x0001 /* jump: P2 holds jmp target */ |
| |
| #define | OPFLG_OUT2_PRERELEASE 0x0002 /* out2-prerelease: */ |
| |
| #define | OPFLG_IN1 0x0004 /* in1: P1 is an input */ |
| |
| #define | OPFLG_IN2 0x0008 /* in2: P2 is an input */ |
| |
| #define | OPFLG_IN3 0x0010 /* in3: P3 is an input */ |
| |
| #define | OPFLG_OUT2 0x0020 /* out2: P2 is an output */ |
| |
| #define | OPFLG_OUT3 0x0040 /* out3: P3 is an output */ |
| |
| #define | OPFLG_INITIALIZER |
| |
| #define | VdbeComment(X) |
| |
| #define | VdbeNoopComment(X) |
| |
| #define | _PAGER_H_ |
| |
| #define | SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT -1 |
| |
| #define | PAGER_MJ_PGNO(x) ((Pgno)((PENDING_BYTE/((x)->pageSize))+1)) |
| |
| #define | PAGER_OMIT_JOURNAL 0x0001 /* Do not use a rollback journal */ |
| |
| #define | PAGER_MEMORY 0x0002 /* In-memory database */ |
| |
| #define | PAGER_LOCKINGMODE_QUERY -1 |
| |
| #define | PAGER_LOCKINGMODE_NORMAL 0 |
| |
| #define | PAGER_LOCKINGMODE_EXCLUSIVE 1 |
| |
| #define | PAGER_JOURNALMODE_QUERY (-1) /* Query the value of journalmode */ |
| |
| #define | PAGER_JOURNALMODE_DELETE 0 /* Commit by deleting journal file */ |
| |
| #define | PAGER_JOURNALMODE_PERSIST 1 /* Commit by zeroing journal header */ |
| |
| #define | PAGER_JOURNALMODE_OFF 2 /* Journal omitted. */ |
| |
| #define | PAGER_JOURNALMODE_TRUNCATE 3 /* Commit by truncating journal */ |
| |
| #define | PAGER_JOURNALMODE_MEMORY 4 /* In-memory journal file */ |
| |
| #define | PAGER_JOURNALMODE_WAL 5 /* Use write-ahead logging */ |
| |
| #define | PAGER_ACQUIRE_NOCONTENT 0x01 /* Do not load data from disk */ |
| |
| #define | PAGER_ACQUIRE_READONLY 0x02 /* Read-only page is acceptable */ |
| |
| #define | sqlite3PagerGet(A, B, C) sqlite3PagerAcquire(A,B,C,0) |
| |
| #define | disable_simulated_io_errors() |
| |
| #define | enable_simulated_io_errors() |
| |
| #define | PGHDR_DIRTY 0x002 /* Page has changed */ |
| |
| #define | PGHDR_NEED_SYNC |
| |
| #define | PGHDR_NEED_READ 0x008 /* Content is unread */ |
| |
| #define | PGHDR_REUSE_UNLIKELY 0x010 /* A hint that reuse is unlikely */ |
| |
| #define | PGHDR_DONT_WRITE 0x020 /* Do not write content to disk */ |
| |
| #define | PGHDR_MMAP 0x040 /* This is an mmap page object */ |
| |
| #define | _SQLITE_OS_H_ |
| |
| #define | SQLITE_OS_OTHER 0 |
| |
| #define | SQLITE_OS_WIN 0 |
| |
| #define | SQLITE_OS_UNIX 1 |
| |
| #define | SQLITE_OS_WINCE 0 |
| |
| #define | SQLITE_OS_WINRT 0 |
| |
| #define | SET_FULLSYNC(x, y) |
| |
| #define | SQLITE_DEFAULT_SECTOR_SIZE 4096 |
| |
| #define | SQLITE_TEMP_FILE_PREFIX "etilqs_" |
| |
| #define | NO_LOCK 0 |
| |
| #define | SHARED_LOCK 1 |
| |
| #define | RESERVED_LOCK 2 |
| |
| #define | PENDING_LOCK 3 |
| |
| #define | EXCLUSIVE_LOCK 4 |
| |
| #define | PENDING_BYTE sqlite3PendingByte |
| |
| #define | RESERVED_BYTE (PENDING_BYTE+1) |
| |
| #define | SHARED_FIRST (PENDING_BYTE+2) |
| |
| #define | SHARED_SIZE 510 |
| |
| #define | SQLITE_FCNTL_DB_UNCHANGED 0xca093fa0 |
| |
| #define | SQLITE_MUTEX_PTHREADS |
| |
| #define | MUTEX_LOGIC(X) X |
| |
| #define | DbHasProperty(D, I, P) (((D)->aDb[I].pSchema->flags&(P))==(P)) |
| |
| #define | DbHasAnyProperty(D, I, P) (((D)->aDb[I].pSchema->flags&(P))!=0) |
| |
| #define | DbSetProperty(D, I, P) (D)->aDb[I].pSchema->flags|=(P) |
| |
| #define | DbClearProperty(D, I, P) (D)->aDb[I].pSchema->flags&=~(P) |
| |
| #define | DB_SchemaLoaded 0x0001 /* The schema has been loaded */ |
| |
| #define | DB_UnresetViews 0x0002 /* Some views have defined column names */ |
| |
| #define | DB_Empty 0x0004 /* The file is empty (length 0 bytes) */ |
| |
| #define | SQLITE_N_LIMIT (SQLITE_LIMIT_TRIGGER_DEPTH+1) |
| |
| #define | ENC(db) ((db)->aDb[0].pSchema->enc) |
| |
| #define | SQLITE_VdbeTrace 0x00000001 /* True to trace VDBE execution */ |
| |
| #define | SQLITE_InternChanges 0x00000002 /* Uncommitted Hash table changes */ |
| |
| #define | SQLITE_FullColNames 0x00000004 /* Show full column names on SELECT */ |
| |
| #define | SQLITE_ShortColNames 0x00000008 /* Show short columns names */ |
| |
| #define | SQLITE_CountRows 0x00000010 /* Count rows changed by INSERT, */ |
| |
| #define | SQLITE_NullCallback 0x00000020 /* Invoke the callback once if the */ |
| |
| #define | SQLITE_SqlTrace 0x00000040 /* Debug print SQL as it executes */ |
| |
| #define | SQLITE_VdbeListing 0x00000080 /* Debug listings of VDBE programs */ |
| |
| #define | SQLITE_WriteSchema 0x00000100 /* OK to update SQLITE_MASTER */ |
| |
| #define | SQLITE_VdbeAddopTrace 0x00000200 /* Trace sqlite3VdbeAddOp() calls */ |
| |
| #define | SQLITE_IgnoreChecks 0x00000400 /* Do not enforce check constraints */ |
| |
| #define | SQLITE_ReadUncommitted 0x0000800 /* For shared-cache mode */ |
| |
| #define | SQLITE_LegacyFileFmt 0x00001000 /* Create new databases in format 1 */ |
| |
| #define | SQLITE_FullFSync 0x00002000 /* Use full fsync on the backend */ |
| |
| #define | SQLITE_CkptFullFSync 0x00004000 /* Use full fsync for checkpoint */ |
| |
| #define | SQLITE_RecoveryMode 0x00008000 /* Ignore schema errors */ |
| |
| #define | SQLITE_ReverseOrder 0x00010000 /* Reverse unordered SELECTs */ |
| |
| #define | SQLITE_RecTriggers 0x00020000 /* Enable recursive triggers */ |
| |
| #define | SQLITE_ForeignKeys 0x00040000 /* Enforce foreign key constraints */ |
| |
| #define | SQLITE_AutoIndex 0x00080000 /* Enable automatic indexes */ |
| |
| #define | SQLITE_PreferBuiltin 0x00100000 /* Preference to built-in funcs */ |
| |
| #define | SQLITE_LoadExtension 0x00200000 /* Enable load_extension */ |
| |
| #define | SQLITE_EnableTrigger 0x00400000 /* True to enable triggers */ |
| |
| #define | SQLITE_QueryFlattener 0x0001 /* Query flattening */ |
| |
| #define | SQLITE_ColumnCache 0x0002 /* Column cache */ |
| |
| #define | SQLITE_GroupByOrder 0x0004 /* GROUPBY cover of ORDERBY */ |
| |
| #define | SQLITE_FactorOutConst 0x0008 /* Constant factoring */ |
| |
| #define | SQLITE_IdxRealAsInt 0x0010 /* Store REAL as INT in indices */ |
| |
| #define | SQLITE_DistinctOpt 0x0020 /* DISTINCT using indexes */ |
| |
| #define | SQLITE_CoverIdxScan 0x0040 /* Covering index scans */ |
| |
| #define | SQLITE_OrderByIdxJoin 0x0080 /* ORDER BY of joins via index */ |
| |
| #define | SQLITE_SubqCoroutine 0x0100 /* Evaluate subqueries as coroutines */ |
| |
| #define | SQLITE_Transitive 0x0200 /* Transitive constraints */ |
| |
| #define | SQLITE_AllOpts 0xffff /* All optimizations */ |
| |
| #define | OptimizationDisabled(db, mask) (((db)->dbOptFlags&(mask))!=0) |
| |
| #define | OptimizationEnabled(db, mask) (((db)->dbOptFlags&(mask))==0) |
| |
| #define | SQLITE_MAGIC_OPEN 0xa029a697 /* Database is open */ |
| |
| #define | SQLITE_MAGIC_CLOSED 0x9f3c2d33 /* Database is closed */ |
| |
| #define | SQLITE_MAGIC_SICK 0x4b771290 /* Error and awaiting close */ |
| |
| #define | SQLITE_MAGIC_BUSY 0xf03b7906 /* Database currently in use */ |
| |
| #define | SQLITE_MAGIC_ERROR 0xb5357930 /* An SQLITE_MISUSE error occurred */ |
| |
| #define | SQLITE_MAGIC_ZOMBIE 0x64cffc7f /* Close with last statement close */ |
| |
| #define | SQLITE_FUNC_LIKE 0x01 /* Candidate for the LIKE optimization */ |
| |
| #define | SQLITE_FUNC_CASE 0x02 /* Case-sensitive LIKE-type function */ |
| |
| #define | SQLITE_FUNC_EPHEM 0x04 /* Ephemeral. Delete with VDBE */ |
| |
| #define | SQLITE_FUNC_NEEDCOLL 0x08 /* sqlite3GetFuncCollSeq() might be called */ |
| |
| #define | SQLITE_FUNC_COUNT 0x10 /* Built-in count(*) aggregate */ |
| |
| #define | SQLITE_FUNC_COALESCE 0x20 /* Built-in coalesce() or ifnull() function */ |
| |
| #define | SQLITE_FUNC_LENGTH 0x40 /* Built-in length() function */ |
| |
| #define | SQLITE_FUNC_TYPEOF 0x80 /* Built-in typeof() function */ |
| |
| #define | FUNCTION(zName, nArg, iArg, bNC, xFunc) |
| |
| #define | FUNCTION2(zName, nArg, iArg, bNC, xFunc, extraFlags) |
| |
| #define | STR_FUNCTION(zName, nArg, pArg, bNC, xFunc) |
| |
| #define | LIKEFUNC(zName, nArg, arg, flags) {nArg, SQLITE_UTF8, flags, (void *)arg, 0, likeFunc, 0, 0, #zName, 0, 0} |
| |
| #define | AGGREGATE(zName, nArg, arg, nc, xStep, xFinal) |
| |
| #define | SAVEPOINT_BEGIN 0 |
| |
| #define | SAVEPOINT_RELEASE 1 |
| |
| #define | SAVEPOINT_ROLLBACK 2 |
| |
| #define | COLFLAG_PRIMKEY 0x0001 /* Column is part of the primary key */ |
| |
| #define | COLFLAG_HIDDEN 0x0002 /* A hidden column in a virtual table */ |
| |
| #define | SQLITE_SO_ASC 0 /* Sort in ascending order */ |
| |
| #define | SQLITE_SO_DESC 1 /* Sort in ascending order */ |
| |
| #define | SQLITE_AFF_TEXT 'a' |
| |
| #define | SQLITE_AFF_NONE 'b' |
| |
| #define | SQLITE_AFF_NUMERIC 'c' |
| |
| #define | SQLITE_AFF_INTEGER 'd' |
| |
| #define | SQLITE_AFF_REAL 'e' |
| |
| #define | sqlite3IsNumericAffinity(X) ((X)>=SQLITE_AFF_NUMERIC) |
| |
| #define | SQLITE_AFF_MASK 0x67 |
| |
| #define | SQLITE_JUMPIFNULL 0x08 /* jumps if either operand is NULL */ |
| |
| #define | SQLITE_STOREP2 0x10 /* Store result in reg[P2] rather than jump */ |
| |
| #define | SQLITE_NULLEQ 0x80 /* NULL=NULL */ |
| |
| #define | TF_Readonly 0x01 /* Read-only system table */ |
| |
| #define | TF_Ephemeral 0x02 /* An ephemeral table */ |
| |
| #define | TF_HasPrimaryKey 0x04 /* Table has a primary key */ |
| |
| #define | TF_Autoincrement 0x08 /* Integer primary key is autoincrement */ |
| |
| #define | TF_Virtual 0x10 /* Is a virtual table */ |
| |
| #define | IsVirtual(X) (((X)->tabFlags & TF_Virtual)!=0) |
| |
| #define | IsHiddenColumn(X) (((X)->colFlags & COLFLAG_HIDDEN)!=0) |
| |
| #define | OE_None 0 /* There is no constraint to check */ |
| |
| #define | OE_Rollback 1 /* Fail the operation and rollback the transaction */ |
| |
| #define | OE_Abort 2 /* Back out changes but do no rollback transaction */ |
| |
| #define | OE_Fail 3 /* Stop the operation but leave all prior changes */ |
| |
| #define | OE_Ignore 4 /* Ignore the error. Do not do the INSERT or UPDATE */ |
| |
| #define | OE_Replace 5 /* Delete existing record, then do INSERT or UPDATE */ |
| |
| #define | OE_Restrict 6 /* OE_Abort for IMMEDIATE, OE_Rollback for DEFERRED */ |
| |
| #define | OE_SetNull 7 /* Set the foreign key value to NULL */ |
| |
| #define | OE_SetDflt 8 /* Set the foreign key value to its default */ |
| |
| #define | OE_Cascade 9 /* Cascade the changes */ |
| |
| #define | OE_Default 99 /* Do whatever the default action is */ |
| |
| #define | UNPACKED_INCRKEY 0x01 /* Make this key an epsilon larger */ |
| |
| #define | UNPACKED_PREFIX_MATCH 0x02 /* A prefix match is considered OK */ |
| |
| #define | UNPACKED_PREFIX_SEARCH 0x04 /* Ignore final (rowid) field */ |
| |
| #define | EP_FromJoin 0x0001 /* Originated in ON or USING clause of a join */ |
| |
| #define | EP_Agg 0x0002 /* Contains one or more aggregate functions */ |
| |
| #define | EP_Resolved 0x0004 /* IDs have been resolved to COLUMNs */ |
| |
| #define | EP_Error 0x0008 /* Expression contains one or more errors */ |
| |
| #define | EP_Distinct 0x0010 /* Aggregate function with DISTINCT keyword */ |
| |
| #define | EP_VarSelect 0x0020 /* pSelect is correlated, not constant */ |
| |
| #define | EP_DblQuoted 0x0040 /* token.z was originally in "..." */ |
| |
| #define | EP_InfixFunc 0x0080 /* True for an infix function: LIKE, GLOB, etc */ |
| |
| #define | EP_Collate 0x0100 /* Tree contains a TK_COLLATE opeartor */ |
| |
| #define | EP_FixedDest 0x0200 /* Result needed in a specific register */ |
| |
| #define | EP_IntValue 0x0400 /* Integer value contained in u.iValue */ |
| |
| #define | EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */ |
| |
| #define | EP_Hint 0x1000 /* Not used */ |
| |
| #define | EP_Reduced 0x2000 /* Expr struct is EXPR_REDUCEDSIZE bytes only */ |
| |
| #define | EP_TokenOnly 0x4000 /* Expr struct is EXPR_TOKENONLYSIZE bytes only */ |
| |
| #define | EP_Static 0x8000 /* Held in memory not obtained from malloc() */ |
| |
| #define | EP2_MallocedToken 0x0001 /* Need to sqlite3DbFree() Expr.zToken */ |
| |
| #define | EP2_Irreducible 0x0002 /* Cannot EXPRDUP_REDUCE this Expr */ |
| |
| #define | ExprSetIrreducible(X) |
| |
| #define | ExprHasProperty(E, P) (((E)->flags&(P))==(P)) |
| |
| #define | ExprHasAnyProperty(E, P) (((E)->flags&(P))!=0) |
| |
| #define | ExprSetProperty(E, P) (E)->flags|=(P) |
| |
| #define | ExprClearProperty(E, P) (E)->flags&=~(P) |
| |
| #define | EXPR_FULLSIZE sizeof(Expr) /* Full size */ |
| |
| #define | EXPR_REDUCEDSIZE offsetof(Expr,iTable) /* Common features */ |
| |
| #define | EXPR_TOKENONLYSIZE offsetof(Expr,pLeft) /* Fewer features */ |
| |
| #define | EXPRDUP_REDUCE 0x0001 /* Used reduced-size Expr nodes */ |
| |
| #define | BMS ((int)(sizeof(Bitmask)*8)) |
| |
| #define | JT_INNER 0x0001 /* Any kind of inner or cross join */ |
| |
| #define | JT_CROSS 0x0002 /* Explicit use of the CROSS keyword */ |
| |
| #define | JT_NATURAL 0x0004 /* True for a "natural" join */ |
| |
| #define | JT_LEFT 0x0008 /* Left outer join */ |
| |
| #define | JT_RIGHT 0x0010 /* Right outer join */ |
| |
| #define | JT_OUTER 0x0020 /* The "OUTER" keyword is present */ |
| |
| #define | JT_ERROR 0x0040 /* unknown or unsupported join type */ |
| |
| #define | WHERE_ORDERBY_NORMAL 0x0000 /* No-op */ |
| |
| #define | WHERE_ORDERBY_MIN 0x0001 /* ORDER BY processing for min() func */ |
| |
| #define | WHERE_ORDERBY_MAX 0x0002 /* ORDER BY processing for max() func */ |
| |
| #define | WHERE_ONEPASS_DESIRED 0x0004 /* Want to do one-pass UPDATE/DELETE */ |
| |
| #define | WHERE_DUPLICATES_OK 0x0008 /* Ok to return a row more than once */ |
| |
| #define | WHERE_OMIT_OPEN_CLOSE 0x0010 /* Table cursors are already open */ |
| |
| #define | WHERE_FORCE_TABLE 0x0020 /* Do not use an index-only search */ |
| |
| #define | WHERE_ONETABLE_ONLY 0x0040 /* Only code the 1st table in pTabList */ |
| |
| #define | WHERE_AND_ONLY 0x0080 /* Don't use indices for OR terms */ |
| |
| #define | WHERE_DISTINCT_NOOP 0 /* DISTINCT keyword not used */ |
| |
| #define | WHERE_DISTINCT_UNIQUE 1 /* No duplicates */ |
| |
| #define | WHERE_DISTINCT_ORDERED 2 /* All duplicates are adjacent */ |
| |
| #define | WHERE_DISTINCT_UNORDERED 3 /* Duplicates are scattered */ |
| |
| #define | NC_AllowAgg 0x01 /* Aggregate functions are allowed here */ |
| |
| #define | NC_HasAgg 0x02 /* One or more aggregate functions seen */ |
| |
| #define | NC_IsCheck 0x04 /* True if resolving names in a CHECK constraint */ |
| |
| #define | NC_InAggFunc 0x08 /* True if analyzing arguments to an agg func */ |
| |
| #define | NC_AsMaybe |
| |
| #define | SF_Distinct 0x0001 /* Output should be DISTINCT */ |
| |
| #define | SF_Resolved 0x0002 /* Identifiers have been resolved */ |
| |
| #define | SF_Aggregate 0x0004 /* Contains aggregate functions */ |
| |
| #define | SF_UsesEphemeral 0x0008 /* Uses the OpenEphemeral opcode */ |
| |
| #define | SF_Expanded 0x0010 /* sqlite3SelectExpand() called on this */ |
| |
| #define | SF_HasTypeInfo 0x0020 /* FROM subqueries have Table metadata */ |
| |
| #define | SF_UseSorter 0x0040 /* Sort using a sorter */ |
| |
| #define | SF_Values 0x0080 /* Synthesized from VALUES clause */ |
| |
| #define | SF_Materialize 0x0100 /* Force materialization of views */ |
| |
| #define | SF_NestedFrom 0x0200 /* Part of a parenthesized FROM clause */ |
| |
| #define | SRT_Union 1 /* Store result as keys in an index */ |
| |
| #define | SRT_Except 2 /* Remove result from a UNION index */ |
| |
| #define | SRT_Exists 3 /* Store 1 if the result is not empty */ |
| |
| #define | SRT_Discard 4 /* Do not save the results anywhere */ |
| |
| #define | IgnorableOrderby(X) ((X->eDest)<=SRT_Discard) |
| |
| #define | SRT_Output 5 /* Output each row of result */ |
| |
| #define | SRT_Mem 6 /* Store result in a memory cell */ |
| |
| #define | SRT_Set 7 /* Store results as keys in an index */ |
| |
| #define | SRT_Table 8 /* Store result as data with an automatic rowid */ |
| |
| #define | SRT_EphemTab 9 /* Create transient tab and store like SRT_Table */ |
| |
| #define | SRT_Coroutine 10 /* Generate a single row of result */ |
| |
| #define | SQLITE_N_COLCACHE 10 |
| |
| #define | IN_DECLARE_VTAB (pParse->declareVtab) |
| |
| #define | OPFLAG_NCHANGE 0x01 /* Set to update db->nChange */ |
| |
| #define | OPFLAG_LASTROWID 0x02 /* Set to update db->lastRowid */ |
| |
| #define | OPFLAG_ISUPDATE 0x04 /* This OP_Insert is an sql UPDATE */ |
| |
| #define | OPFLAG_APPEND 0x08 /* This is likely to be an append */ |
| |
| #define | OPFLAG_USESEEKRESULT 0x10 /* Try to avoid a seek in BtreeInsert() */ |
| |
| #define | OPFLAG_CLEARCACHE 0x20 /* Clear pseudo-table cache in OP_Column */ |
| |
| #define | OPFLAG_LENGTHARG 0x40 /* OP_Column only used for length() */ |
| |
| #define | OPFLAG_TYPEOFARG 0x80 /* OP_Column only used for typeof() */ |
| |
| #define | OPFLAG_BULKCSR 0x01 /* OP_Open** used to open bulk cursor */ |
| |
| #define | OPFLAG_P2ISREG 0x02 /* P2 to OP_Open** is a register number */ |
| |
| #define | OPFLAG_PERMUTE 0x01 /* OP_Compare: use the permutation */ |
| |
| #define | TRIGGER_BEFORE 1 |
| |
| #define | TRIGGER_AFTER 2 |
| |
| #define | WRC_Continue 0 /* Continue down into children */ |
| |
| #define | WRC_Prune 1 /* Omit children but continue walking siblings */ |
| |
| #define | WRC_Abort 2 /* Abandon the tree walk */ |
| |
| #define | SQLITE_SKIP_UTF8(zIn) |
| |
| #define | SQLITE_CORRUPT_BKPT sqlite3CorruptError(__LINE__) |
| |
| #define | SQLITE_MISUSE_BKPT sqlite3MisuseError(__LINE__) |
| |
| #define | SQLITE_CANTOPEN_BKPT sqlite3CantopenError(__LINE__) |
| |
| #define | sqlite3Toupper(x) ((x)&~(sqlite3CtypeMap[(unsigned char)(x)]&0x20)) |
| |
| #define | sqlite3Isspace(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x01) |
| |
| #define | sqlite3Isalnum(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x06) |
| |
| #define | sqlite3Isalpha(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x02) |
| |
| #define | sqlite3Isdigit(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x04) |
| |
| #define | sqlite3Isxdigit(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x08) |
| |
| #define | sqlite3Tolower(x) (sqlite3UpperToLower[(unsigned char)(x)]) |
| |
| #define | sqlite3StrICmp sqlite3_stricmp |
| |
| #define | sqlite3StrNICmp sqlite3_strnicmp |
| |
| #define | sqlite3StackAllocRaw(D, N) sqlite3DbMallocRaw(D,N) |
| |
| #define | sqlite3StackAllocZero(D, N) sqlite3DbMallocZero(D,N) |
| |
| #define | sqlite3StackFree(D, P) sqlite3DbFree(D,P) |
| |
| #define | sqlite3ExplainBegin(X) |
| |
| #define | sqlite3ExplainSelect(A, B) |
| |
| #define | sqlite3ExplainExpr(A, B) |
| |
| #define | sqlite3ExplainExprList(A, B) |
| |
| #define | sqlite3ExplainFinish(X) |
| |
| #define | sqlite3VdbeExplanation(X) 0 |
| |
| #define | sqlite3ParseToplevel(p) ((p)->pToplevel ? (p)->pToplevel : (p)) |
| |
| #define | getVarint32(A, B) (u8)((*(A)<(u8)0x80)?((B)=(u32)*(A)),1:sqlite3GetVarint32((A),(u32 *)&(B))) |
| |
| #define | putVarint32(A, B) |
| |
| #define | getVarint sqlite3GetVarint |
| |
| #define | putVarint sqlite3PutVarint |
| |
| #define | sqlite3FileSuffix3(X, Y) |
| |
| #define | sqlite3VtabInSync(db) ((db)->nVTrans>0 && (db)->aVTrans==0) |
| |
| #define | SQLITE_FAULTINJECTOR_MALLOC 0 |
| |
| #define | SQLITE_FAULTINJECTOR_COUNT 1 |
| |
| #define | IN_INDEX_ROWID 1 |
| |
| #define | IN_INDEX_EPH 2 |
| |
| #define | IN_INDEX_INDEX_ASC 3 |
| |
| #define | IN_INDEX_INDEX_DESC 4 |
| |
| #define | sqlite3JournalSize(pVfs) ((pVfs)->szOsFile) |
| |
| #define | sqlite3JournalExists(p) 1 |
| |
| #define | sqlite3ConnectionBlocked(x, y) |
| |
| #define | sqlite3ConnectionUnlocked(x) |
| |
| #define | sqlite3ConnectionClosed(x) |
| |
| #define | IOTRACE(A) |
| |
| #define | sqlite3VdbeIOTraceSql(X) |
| |
| #define | sqlite3MemdebugSetType(X, Y) /* no-op */ |
| |
| #define | sqlite3MemdebugHasType(X, Y) 1 |
| |
| #define | sqlite3MemdebugNoType(X, Y) 1 |
| |
| #define | MEMTYPE_HEAP 0x01 /* General heap allocations */ |
| |
| #define | MEMTYPE_LOOKASIDE 0x02 /* Might have been lookaside memory */ |
| |
| #define | MEMTYPE_SCRATCH 0x04 /* Scratch allocations */ |
| |
| #define | MEMTYPE_PCACHE 0x08 /* Page cache allocations */ |
| |
| #define | MEMTYPE_DB 0x10 /* Uses sqlite3DbMalloc, not sqlite_malloc */ |
| |
| #define | SQLITE_USE_URI 0 |
| |
| #define | SQLITE_ALLOW_COVERING_INDEX_SCAN 1 |
| |
| #define | CTIMEOPT_VAL_(opt) #opt |
| |
| #define | CTIMEOPT_VAL(opt) CTIMEOPT_VAL_(opt) |
| |
| #define | _VDBEINT_H_ |
| |
| #define | SQLITE_MAX_SCHEMA_RETRY 50 |
| |
| #define | VdbeFrameMem(p) ((Mem *)&((u8 *)p)[ROUND8(sizeof(VdbeFrame))]) |
| |
| #define | CACHE_STALE 0 |
| |
| #define | MEM_Null 0x0001 /* Value is NULL */ |
| |
| #define | MEM_Str 0x0002 /* Value is a string */ |
| |
| #define | MEM_Int 0x0004 /* Value is an integer */ |
| |
| #define | MEM_Real 0x0008 /* Value is a real number */ |
| |
| #define | MEM_Blob 0x0010 /* Value is a BLOB */ |
| |
| #define | MEM_RowSet 0x0020 /* Value is a RowSet object */ |
| |
| #define | MEM_Frame 0x0040 /* Value is a VdbeFrame object */ |
| |
| #define | MEM_Invalid 0x0080 /* Value is undefined */ |
| |
| #define | MEM_Cleared 0x0100 /* NULL set by OP_Null, not from data */ |
| |
| #define | MEM_TypeMask 0x01ff /* Mask of type bits */ |
| |
| #define | MEM_Term 0x0200 /* String rep is nul terminated */ |
| |
| #define | MEM_Dyn 0x0400 /* Need to call sqliteFree() on Mem.z */ |
| |
| #define | MEM_Static 0x0800 /* Mem.z points to a static string */ |
| |
| #define | MEM_Ephem 0x1000 /* Mem.z points to an ephemeral string */ |
| |
| #define | MEM_Agg 0x2000 /* Mem.z points to an agg function context */ |
| |
| #define | MEM_Zero 0x4000 /* Mem.i contains count of 0s appended to blob */ |
| |
| #define | MemSetTypeFlag(p, f) ((p)->flags = ((p)->flags&~(MEM_TypeMask|MEM_Zero))|f) |
| |
| #define | VDBE_MAGIC_INIT 0x26bceaa5 /* Building a VDBE program */ |
| |
| #define | VDBE_MAGIC_RUN 0xbdf20da3 /* VDBE is ready to execute */ |
| |
| #define | VDBE_MAGIC_HALT 0x519c2973 /* VDBE has completed execution */ |
| |
| #define | VDBE_MAGIC_DEAD 0xb606c3c8 /* The VDBE has been deallocated */ |
| |
| #define | VdbeMemRelease(X) |
| |
| #define | ExpandBlob(P) (((P)->flags&MEM_Zero)?sqlite3VdbeMemExpandBlob(P):0) |
| |
| #define | wsdStatInit |
| |
| #define | wsdStat sqlite3Stat |
| |
| #define | _SQLITE_OS_C_ 1 |
| |
| #define | DO_OS_MALLOC_TEST(x) |
| |
| #define | vfsList GLOBAL(sqlite3_vfs *, vfsList) |
| |
| #define | wsdHooksInit |
| |
| #define | wsdHooks sqlite3Hooks |
| |
| #define | SQLITE_MALLOC(x) malloc(x) |
| |
| #define | SQLITE_FREE(x) free(x) |
| |
| #define | SQLITE_REALLOC(x, y) realloc((x),(y)) |
| |
| #define | SQLITE_MUTEX_NREF 0 |
| |
| #define | SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER } |
| |
| #define | mem0 GLOBAL(struct Mem0Global, mem0) |
| |
| #define | etRADIX 1 /* Integer types. %d, %x, %o, and so forth */ |
| |
| #define | etFLOAT 2 /* Floating point. %f */ |
| |
| #define | etEXP 3 /* Exponentional notation. %e and %E */ |
| |
| #define | etGENERIC 4 /* Floating or exponential, depending on exponent. %g */ |
| |
| #define | etSIZE 5 /* Return number of characters processed so far. %n */ |
| |
| #define | etSTRING 6 /* Strings. %s */ |
| |
| #define | etDYNSTRING 7 /* Dynamically allocated strings. %z */ |
| |
| #define | etPERCENT 8 /* Percent symbol. %% */ |
| |
| #define | etCHARX 9 /* Characters. %c */ |
| |
| #define | etSQLESCAPE 10 /* Strings with '\'' doubled. %q */ |
| |
| #define | etSQLESCAPE2 |
| |
| #define | etTOKEN 12 /* a pointer to a Token structure */ |
| |
| #define | etSRCLIST 13 /* a pointer to a SrcList */ |
| |
| #define | etPOINTER 14 /* The %p conversion */ |
| |
| #define | etSQLESCAPE3 15 /* %w -> Strings with '\"' doubled */ |
| |
| #define | etORDINAL 16 /* %r -> 1st, 2nd, 3rd, 4th, etc. English only */ |
| |
| #define | etINVALID 0 /* Any unrecognized conversion type */ |
| |
| #define | FLAG_SIGNED 1 /* True if the value to convert is signed */ |
| |
| #define | FLAG_INTERN 2 /* True if for internal use only */ |
| |
| #define | FLAG_STRING 4 /* Allow infinity precision */ |
| |
| #define | SQLITE_PRINT_BUF_SIZE 70 |
| |
| #define | etBUFSIZE SQLITE_PRINT_BUF_SIZE /* Size of the output buffer */ |
| |
| #define | wsdPrng sqlite3Prng |
| |
| #define | WRITE_UTF8(zOut, c) |
| |
| #define | WRITE_UTF16LE(zOut, c) |
| |
| #define | WRITE_UTF16BE(zOut, c) |
| |
| #define | READ_UTF16LE(zIn, TERM, c) |
| |
| #define | READ_UTF16BE(zIn, TERM, c) |
| |
| #define | READ_UTF8(zIn, zTerm, c) |
| |
| #define | UpperToLower sqlite3UpperToLower |
| |
| #define | SLOT_2_0 0x001fc07f |
| |
| #define | SLOT_4_2_0 0xf01fc07f |
| |
| #define | TWOPOWER32 (((i64)1)<<32) |
| |
| #define | TWOPOWER31 (((i64)1)<<31) |
| |
| #define | SQLITE_ENABLE_LOCKING_STYLE 0 |
| |
| #define | OS_VXWORKS 0 |
| |
| #define | _LARGE_FILE 1 |
| |
| #define | _LARGEFILE_SOURCE 1 |
| |
| #define | SQLITE_FSFLAGS_IS_MSDOS 0x1 |
| |
| #define | SQLITE_UNIX_THREADS 1 |
| |
| #define | SQLITE_DEFAULT_FILE_PERMISSIONS 0644 |
| |
| #define | SQLITE_DEFAULT_PROXYDIR_PERMISSIONS 0755 |
| |
| #define | MAX_PATHNAME 512 |
| |
| #define | IS_LOCK_ERROR(x) ((x != SQLITE_OK) && (x != SQLITE_BUSY)) |
| |
| #define | UNIXFILE_EXCL 0x01 /* Connections from one process only */ |
| |
| #define | UNIXFILE_RDONLY 0x02 /* Connection is read only */ |
| |
| #define | UNIXFILE_PERSIST_WAL 0x04 /* Persistent WAL mode */ |
| |
| #define | UNIXFILE_DIRSYNC 0x08 /* Directory sync needed */ |
| |
| #define | UNIXFILE_PSOW 0x10 /* SQLITE_IOCAP_POWERSAFE_OVERWRITE */ |
| |
| #define | UNIXFILE_DELETE 0x20 /* Delete on close */ |
| |
| #define | UNIXFILE_URI 0x40 /* Filename might have query parameters */ |
| |
| #define | UNIXFILE_NOLOCK 0x80 /* Do no file locking */ |
| |
| #define | UNIXFILE_WARNED 0x0100 /* verifyDbFile() warnings have been issued */ |
| |
| #define | _OS_COMMON_H_ |
| |
| #define | OSTRACE(X) |
| |
| #define | TIMER_START |
| |
| #define | TIMER_END |
| |
| #define | TIMER_ELAPSED ((sqlite_uint64)0) |
| |
| #define | SimulateIOErrorBenign(X) |
| |
| #define | SimulateIOError(A) |
| |
| #define | SimulateDiskfullError(A) |
| |
| #define | OpenCounter(X) |
| |
| #define | O_LARGEFILE 0 |
| |
| #define | O_NOFOLLOW 0 |
| |
| #define | O_BINARY 0 |
| |
| #define | threadid pthread_self() |
| |
| #define | HAVE_MREMAP 0 |
| |
| #define | osOpen ((int(*)(const char*,int,int))aSyscall[0].pCurrent) |
| |
| #define | osClose ((int(*)(int))aSyscall[1].pCurrent) |
| |
| #define | osAccess ((int(*)(const char*,int))aSyscall[2].pCurrent) |
| |
| #define | osGetcwd ((char*(*)(char*,size_t))aSyscall[3].pCurrent) |
| |
| #define | osStat ((int(*)(const char*,struct stat*))aSyscall[4].pCurrent) |
| |
| #define | osFstat ((int(*)(int,struct stat*))aSyscall[5].pCurrent) |
| |
| #define | osFtruncate ((int(*)(int,off_t))aSyscall[6].pCurrent) |
| |
| #define | osFcntl ((int(*)(int,int,...))aSyscall[7].pCurrent) |
| |
| #define | osRead ((ssize_t(*)(int,void*,size_t))aSyscall[8].pCurrent) |
| |
| #define | osPread ((ssize_t(*)(int,void*,size_t,off_t))aSyscall[9].pCurrent) |
| |
| #define | osPread64 ((ssize_t(*)(int,void*,size_t,off_t))aSyscall[10].pCurrent) |
| |
| #define | osWrite ((ssize_t(*)(int,const void*,size_t))aSyscall[11].pCurrent) |
| |
| #define | osPwrite |
| |
| #define | osPwrite64 |
| |
| #define | osFchmod ((int(*)(int,mode_t))aSyscall[14].pCurrent) |
| |
| #define | osFallocate ((int(*)(int,off_t,off_t))aSyscall[15].pCurrent) |
| |
| #define | osUnlink ((int(*)(const char*))aSyscall[16].pCurrent) |
| |
| #define | osOpenDirectory ((int(*)(const char*,int*))aSyscall[17].pCurrent) |
| |
| #define | osMkdir ((int(*)(const char*,mode_t))aSyscall[18].pCurrent) |
| |
| #define | osRmdir ((int(*)(const char*))aSyscall[19].pCurrent) |
| |
| #define | osFchown ((int(*)(int,uid_t,gid_t))aSyscall[20].pCurrent) |
| |
| #define | osMmap ((void*(*)(void*,size_t,int,int,int,off_t))aSyscall[21].pCurrent) |
| |
| #define | osMunmap ((void*(*)(void*,size_t))aSyscall[22].pCurrent) |
| |
| #define | osMremap ((void*(*)(void*,size_t,size_t,int,...))aSyscall[23].pCurrent) |
| |
| #define | unixLogError(a, b, c) unixLogErrorAtLine(a,b,c,__LINE__) |
| |
| #define | DOTLOCK_SUFFIX ".lock" |
| |
| #define | fdatasync fsync |
| |
| #define | HAVE_FULLFSYNC 0 |
| |
| #define | UNIX_SHM_BASE ((22+SQLITE_SHM_NLOCK)*4) /* first lock byte */ |
| |
| #define | UNIX_SHM_DMS (UNIX_SHM_BASE+SQLITE_SHM_NLOCK) /* deadman switch */ |
| |
| #define | IOMETHODS(FINDER, METHOD, VERSION, CLOSE, LOCK, UNLOCK, CKLOCK) |
| |
| #define | UNIXVFS(VFSNAME, FINDER) |
| |
| #define | BITVEC_SZ 512 |
| |
| #define | BITVEC_USIZE (((BITVEC_SZ-(3*sizeof(u32)))/sizeof(Bitvec*))*sizeof(Bitvec*)) |
| |
| #define | BITVEC_TELEM u8 |
| |
| #define | BITVEC_SZELEM 8 |
| |
| #define | BITVEC_NELEM (BITVEC_USIZE/sizeof(BITVEC_TELEM)) |
| |
| #define | BITVEC_NBIT (BITVEC_NELEM*BITVEC_SZELEM) |
| |
| #define | BITVEC_NINT (BITVEC_USIZE/sizeof(u32)) |
| |
| #define | BITVEC_MXHASH (BITVEC_NINT/2) |
| |
| #define | BITVEC_HASH(X) (((X)*1)%BITVEC_NINT) |
| |
| #define | BITVEC_NPTR (BITVEC_USIZE/sizeof(Bitvec *)) |
| |
| #define | SETBIT(V, I) V[I>>3] |= (1<<(I&7)) |
| |
| #define | CLEARBIT(V, I) V[I>>3] &= ~(1<<(I&7)) |
| |
| #define | TESTBIT(V, I) (V[I>>3]&(1<<(I&7)))!=0 |
| |
| #define | expensive_assert(X) |
| |
| #define | N_SORT_BUCKET 32 |
| |
| #define | pcache1 (GLOBAL(struct PCacheGlobal, pcache1_g)) |
| |
| #define | pcache1EnterMutex(X) sqlite3_mutex_enter((X)->mutex) |
| |
| #define | pcache1LeaveMutex(X) sqlite3_mutex_leave((X)->mutex) |
| |
| #define | ROWSET_ALLOCATION_SIZE 1024 |
| |
| #define | ROWSET_ENTRY_PER_CHUNK ((ROWSET_ALLOCATION_SIZE-8)/sizeof(struct RowSetEntry)) |
| |
| #define | ROWSET_SORTED 0x01 /* True if RowSet.pEntry is sorted */ |
| |
| #define | ROWSET_NEXT 0x02 /* True if sqlite3RowSetNext() has been called */ |
| |
| #define | _WAL_H_ |
| |
| #define | WAL_SYNC_TRANSACTIONS 0x20 /* Sync at the end of each transaction */ |
| |
| #define | SQLITE_SYNC_MASK 0x13 /* Mask off the SQLITE_SYNC_* values */ |
| |
| #define | WAL_SAVEPOINT_NDATA 4 |
| |
| #define | PAGERTRACE(X) |
| |
| #define | PAGERID(p) ((int)(p->fd)) |
| |
| #define | FILEHANDLEID(fd) ((int)fd) |
| |
| #define | PAGER_OPEN 0 |
| |
| #define | PAGER_READER 1 |
| |
| #define | PAGER_WRITER_LOCKED 2 |
| |
| #define | PAGER_WRITER_CACHEMOD 3 |
| |
| #define | PAGER_WRITER_DBMOD 4 |
| |
| #define | PAGER_WRITER_FINISHED 5 |
| |
| #define | PAGER_ERROR 6 |
| |
| #define | UNKNOWN_LOCK (EXCLUSIVE_LOCK+1) |
| |
| #define | CODEC1(P, D, N, X, E) /* NO-OP */ |
| |
| #define | CODEC2(P, D, N, X, E, O) O=(char*)D |
| |
| #define | MAX_SECTOR_SIZE 0x10000 |
| |
| #define | PAGER_STAT_HIT 0 |
| |
| #define | PAGER_STAT_MISS 1 |
| |
| #define | PAGER_STAT_WRITE 2 |
| |
| #define | PAGER_INCR(v) |
| |
| #define | JOURNAL_PG_SZ(pPager) ((pPager->pageSize) + 8) |
| |
| #define | JOURNAL_HDR_SZ(pPager) (pPager->sectorSize) |
| |
| #define | MEMDB pPager->memDb |
| |
| #define | USEFETCH(x) 0 |
| |
| #define | PAGER_MAX_PGNO 2147483647 |
| |
| #define | isOpen(pFd) ((pFd)->pMethods) |
| |
| #define | put32bits(A, B) sqlite3Put4byte((u8*)A,B) |
| |
| #define | pager_datahash(X, Y) 0 |
| |
| #define | pager_pagehash(X) 0 |
| |
| #define | pager_set_pagehash(X) |
| |
| #define | CHECK_PAGE(x) |
| |
| #define | pagerReportSize(X) /* No-op if we do not support a codec */ |
| |
| #define | disable_simulated_io_errors() |
| |
| #define | enable_simulated_io_errors() |
| |
| #define | assertTruncateConstraint(pPager) |
| |
| #define | DIRECT_MODE 0 |
| |
| #define | WALTRACE(X) |
| |
| #define | WAL_MAX_VERSION 3007000 |
| |
| #define | WALINDEX_MAX_VERSION 3007000 |
| |
| #define | WAL_WRITE_LOCK 0 |
| |
| #define | WAL_ALL_BUT_WRITE 1 |
| |
| #define | WAL_CKPT_LOCK 1 |
| |
| #define | WAL_RECOVER_LOCK 2 |
| |
| #define | WAL_READ_LOCK(I) (3+(I)) |
| |
| #define | WAL_NREADER (SQLITE_SHM_NLOCK-3) |
| |
| #define | READMARK_NOT_USED 0xffffffff |
| |
| #define | WALINDEX_LOCK_OFFSET (sizeof(WalIndexHdr)*2 + sizeof(WalCkptInfo)) |
| |
| #define | WALINDEX_LOCK_RESERVED 16 |
| |
| #define | WALINDEX_HDR_SIZE (WALINDEX_LOCK_OFFSET+WALINDEX_LOCK_RESERVED) |
| |
| #define | WAL_FRAME_HDRSIZE 24 |
| |
| #define | WAL_HDRSIZE 32 |
| |
| #define | WAL_MAGIC 0x377f0682 |
| |
| #define | walFrameOffset(iFrame, szPage) |
| |
| #define | WAL_NORMAL_MODE 0 |
| |
| #define | WAL_EXCLUSIVE_MODE 1 |
| |
| #define | WAL_HEAPMEMORY_MODE 2 |
| |
| #define | WAL_RDWR 0 /* Normal read/write connection */ |
| |
| #define | WAL_RDONLY 1 /* The WAL file is readonly */ |
| |
| #define | WAL_SHM_RDONLY 2 /* The SHM file is readonly */ |
| |
| #define | HASHTABLE_NPAGE 4096 /* Must be power of 2 */ |
| |
| #define | HASHTABLE_HASH_1 383 /* Should be prime */ |
| |
| #define | HASHTABLE_NSLOT (HASHTABLE_NPAGE*2) /* Must be a power of 2 */ |
| |
| #define | HASHTABLE_NPAGE_ONE (HASHTABLE_NPAGE - (WALINDEX_HDR_SIZE/sizeof(u32))) |
| |
| #define | WALINDEX_PGSZ |
| |
| #define | BYTESWAP32(x) |
| |
| #define | WAL_RETRY (-1) |
| |
| #define | MX_CELL_SIZE(pBt) ((int)(pBt->pageSize-8)) |
| |
| #define | MX_CELL(pBt) ((pBt->pageSize-8)/6) |
| |
| #define | SQLITE_FILE_HEADER "SQLite format 3" |
| |
| #define | PTF_INTKEY 0x01 |
| |
| #define | PTF_ZERODATA 0x02 |
| |
| #define | PTF_LEAFDATA 0x04 |
| |
| #define | PTF_LEAF 0x08 |
| |
| #define | EXTRA_SIZE sizeof(MemPage) |
| |
| #define | READ_LOCK 1 |
| |
| #define | WRITE_LOCK 2 |
| |
| #define | TRANS_NONE 0 |
| |
| #define | TRANS_READ 1 |
| |
| #define | TRANS_WRITE 2 |
| |
| #define | BTS_READ_ONLY 0x0001 /* Underlying file is readonly */ |
| |
| #define | BTS_PAGESIZE_FIXED 0x0002 /* Page size can no longer be changed */ |
| |
| #define | BTS_SECURE_DELETE 0x0004 /* PRAGMA secure_delete is enabled */ |
| |
| #define | BTS_INITIALLY_EMPTY 0x0008 /* Database was empty at trans start */ |
| |
| #define | BTS_NO_WAL 0x0010 /* Do not open write-ahead-log files */ |
| |
| #define | BTS_EXCLUSIVE 0x0020 /* pWriter has an exclusive lock */ |
| |
| #define | BTS_PENDING 0x0040 /* Waiting for read-locks to clear */ |
| |
| #define | BTCURSOR_MAX_DEPTH 20 |
| |
| #define | CURSOR_INVALID 0 |
| |
| #define | CURSOR_VALID 1 |
| |
| #define | CURSOR_REQUIRESEEK 2 |
| |
| #define | CURSOR_FAULT 3 |
| |
| #define | PENDING_BYTE_PAGE(pBt) PAGER_MJ_PGNO(pBt) |
| |
| #define | PTRMAP_PAGENO(pBt, pgno) ptrmapPageno(pBt, pgno) |
| |
| #define | PTRMAP_PTROFFSET(pgptrmap, pgno) (5*(pgno-pgptrmap-1)) |
| |
| #define | PTRMAP_ISPAGE(pBt, pgno) (PTRMAP_PAGENO((pBt),(pgno))==(pgno)) |
| |
| #define | PTRMAP_ROOTPAGE 1 |
| |
| #define | PTRMAP_FREEPAGE 2 |
| |
| #define | PTRMAP_OVERFLOW1 3 |
| |
| #define | PTRMAP_OVERFLOW2 4 |
| |
| #define | PTRMAP_BTREE 5 |
| |
| #define | btreeIntegrity(p) |
| |
| #define | ISAUTOVACUUM (pBt->autoVacuum) |
| |
| #define | get2byte(x) ((x)[0]<<8 | (x)[1]) |
| |
| #define | put2byte(p, v) ((p)[0] = (u8)((v)>>8), (p)[1] = (u8)(v)) |
| |
| #define | get4byte sqlite3Get4byte |
| |
| #define | put4byte sqlite3Put4byte |
| |
| #define | TRACE(X) |
| |
| #define | get2byteNotZero(X) (((((int)get2byte(X))-1)&0xffff)+1) |
| |
| #define | BTALLOC_ANY 0 /* Allocate any page */ |
| |
| #define | BTALLOC_EXACT 1 /* Allocate exact page if possible */ |
| |
| #define | BTALLOC_LE 2 /* Allocate any page <= the parameter */ |
| |
| #define | IfNotOmitAV(expr) (expr) |
| |
| #define | restoreCursorPosition(p) |
| |
| #define | findCell(P, I) ((P)->aData + ((P)->maskPage & get2byte(&(P)->aCellIdx[2*(I)]))) |
| |
| #define | findCellv2(D, M, O, I) (D+(M&get2byte(D+(O+2*(I))))) |
| |
| #define | parseCell(pPage, iCell, pInfo) btreeParseCellPtr((pPage), findCell((pPage), (iCell)), (pInfo)) |
| |
| #define | assertCellInfo(x) |
| |
| #define | getCellInfo(pCur) |
| |
| #define | assertParentIndex(x, y, z) |
| |
| #define | NN 1 /* Number of neighbors on either side of pPage */ |
| |
| #define | NB (NN*2+1) /* Total pages involved in the balance */ |
| |
| #define | MIN(x, y) ((x)<(y)?(x):(y)) |
| |
| #define | MEMCELLSIZE (size_t)(&(((Mem *)0)->zMalloc)) |
| |
| #define | checkActiveVdbeCnt(x) |
| |
| #define | vdbeInvokeSqllog(x) |
| |
| #define | MAX_6BYTE ((((i64)0x00008000)<<32)-1) |
| |
| #define | swapMixedEndianFloat(X) |
| |
| #define | memAboutToChange(P, M) |
| |
| #define | UPDATE_MAX_BLOBSIZE(P) |
| |
| #define | Stringify(P, enc) |
| |
| #define | Deephemeralize(P) |
| |
| #define | isSorter(x) ((x)->pSorter!=0) |
| |
| #define | REGISTER_TRACE(R, M) |
| |
| #define | CHECK_FOR_INTERRUPT if( db->u1.isInterrupted ) goto abort_due_to_interrupt; |
| |
| #define | MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff ) |
| |
| #define | SORTER_MIN_WORKING 10 |
| |
| #define | SORTER_MAX_MERGE_COUNT 16 |
| |
| #define | JOURNAL_CHUNKSIZE ((int)(1024-sizeof(FileChunk*))) |
| |
| #define | SQLITE_STAT3_SAMPLES 24 |
| |
| #define | SAVE_SZ (sizeof(Parse) - offsetof(Parse,nVar)) |
| |
| #define | STRICMP(x, y) |
| |
| #define | FUNC_PERFECT_MATCH 6 /* The score for a perfect match */ |
| |
| #define | ifnullFunc versionFunc /* Substitute function - never called */ |
| |
| #define | GlogUpperToLower(A) if( !((A)&~0x7f) ){ A = sqlite3UpperToLower[A]; } |
| |
| #define | COLUMN_MASK(x) (((x)>31) ? 0xffffffff : ((u32)1<<(x))) |
| |
| #define | _SQLITE3EXT_H_ |
| |
| #define | SQLITE_EXTENSION_INIT1 /*no-op*/ |
| |
| #define | SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */ |
| |
| #define | sqlite3_column_database_name 0 |
| |
| #define | sqlite3_column_database_name16 0 |
| |
| #define | sqlite3_column_table_name 0 |
| |
| #define | sqlite3_column_table_name16 0 |
| |
| #define | sqlite3_column_origin_name 0 |
| |
| #define | sqlite3_column_origin_name16 0 |
| |
| #define | sqlite3_table_column_metadata 0 |
| |
| #define | wsdAutoextInit |
| |
| #define | wsdAutoext sqlite3Autoext |
| |
| #define | SQLITE_INTEGRITY_CHECK_ERROR_MAX 100 |
| |
| #define | explainSetInteger(a, b) a = b |
| |
| #define | WHERETRACE(X) |
| |
| #define | TERM_DYNAMIC 0x01 /* Need to call sqlite3ExprDelete(db, pExpr) */ |
| |
| #define | TERM_VIRTUAL 0x02 /* Added by the optimizer. Do not code */ |
| |
| #define | TERM_CODED 0x04 /* This term is already coded */ |
| |
| #define | TERM_COPIED 0x08 /* Has a child */ |
| |
| #define | TERM_ORINFO 0x10 /* Need to free the WhereTerm.u.pOrInfo object */ |
| |
| #define | TERM_ANDINFO 0x20 /* Need to free the WhereTerm.u.pAndInfo obj */ |
| |
| #define | TERM_OR_OK 0x40 /* Used during OR-clause processing */ |
| |
| #define | TERM_VNULL 0x00 /* Disabled if not using stat3 */ |
| |
| #define | WO_IN 0x001 |
| |
| #define | WO_EQ 0x002 |
| |
| #define | WO_LT (WO_EQ<<(TK_LT-TK_EQ)) |
| |
| #define | WO_LE (WO_EQ<<(TK_LE-TK_EQ)) |
| |
| #define | WO_GT (WO_EQ<<(TK_GT-TK_EQ)) |
| |
| #define | WO_GE (WO_EQ<<(TK_GE-TK_EQ)) |
| |
| #define | WO_MATCH 0x040 |
| |
| #define | WO_ISNULL 0x080 |
| |
| #define | WO_OR 0x100 /* Two or more OR-connected terms */ |
| |
| #define | WO_AND 0x200 /* Two or more AND-connected terms */ |
| |
| #define | WO_EQUIV 0x400 /* Of the form A==B, both columns */ |
| |
| #define | WO_NOOP 0x800 /* This term does not restrict search space */ |
| |
| #define | WO_ALL 0xfff /* Mask of all possible WO_* values */ |
| |
| #define | WO_SINGLE 0x0ff /* Mask of all non-compound WO_* values */ |
| |
| #define | WHERE_ROWID_EQ 0x00001000 /* rowid=EXPR or rowid IN (...) */ |
| |
| #define | WHERE_ROWID_RANGE 0x00002000 /* rowid<EXPR and/or rowid>EXPR */ |
| |
| #define | WHERE_COLUMN_EQ 0x00010000 /* x=EXPR or x IN (...) or x IS NULL */ |
| |
| #define | WHERE_COLUMN_RANGE 0x00020000 /* x<EXPR and/or x>EXPR */ |
| |
| #define | WHERE_COLUMN_IN 0x00040000 /* x IN (...) */ |
| |
| #define | WHERE_COLUMN_NULL 0x00080000 /* x IS NULL */ |
| |
| #define | WHERE_INDEXED 0x000f0000 /* Anything that uses an index */ |
| |
| #define | WHERE_NOT_FULLSCAN 0x100f3000 /* Does not do a full table scan */ |
| |
| #define | WHERE_IN_ABLE 0x080f1000 /* Able to support an IN operator */ |
| |
| #define | WHERE_TOP_LIMIT 0x00100000 /* x<EXPR or x<=EXPR constraint */ |
| |
| #define | WHERE_BTM_LIMIT 0x00200000 /* x>EXPR or x>=EXPR constraint */ |
| |
| #define | WHERE_BOTH_LIMIT 0x00300000 /* Both x>EXPR and x<EXPR */ |
| |
| #define | WHERE_IDX_ONLY 0x00400000 /* Use index only - omit table */ |
| |
| #define | WHERE_ORDERED 0x00800000 /* Output will appear in correct order */ |
| |
| #define | WHERE_REVERSE 0x01000000 /* Scan in reverse order */ |
| |
| #define | WHERE_UNIQUE 0x02000000 /* Selects no more than one row */ |
| |
| #define | WHERE_ALL_UNIQUE 0x04000000 /* This and all prior have one row */ |
| |
| #define | WHERE_OB_UNIQUE |
| |
| #define | WHERE_VIRTUALTABLE 0x08000000 /* Use virtual-table processing */ |
| |
| #define | WHERE_MULTI_OR 0x10000000 /* OR using multiple indices */ |
| |
| #define | WHERE_TEMP_INDEX 0x20000000 /* Uses an ephemeral index */ |
| |
| #define | WHERE_DISTINCT 0x40000000 /* Correct order for DISTINCT */ |
| |
| #define | WHERE_COVER_SCAN 0x80000000 /* Full scan of a covering index */ |
| |
| #define | initMaskSet(P) memset(P, 0, sizeof(*P)) |
| |
| #define | SWAP(TYPE, A, B) {TYPE t=A; A=B; B=t;} |
| |
| #define | TRACE_IDX_INPUTS(A) |
| |
| #define | TRACE_IDX_OUTPUTS(A) |
| |
| #define | YYNOERRORRECOVERY 1 |
| |
| #define | yytestcase(X) testcase(X) |
| |
| #define | INTERFACE 1 |
| |
| #define | YYCODETYPE unsigned char |
| |
| #define | YYNOCODE 251 |
| |
| #define | YYACTIONTYPE unsigned short int |
| |
| #define | YYWILDCARD 67 |
| |
| #define | sqlite3ParserTOKENTYPE Token |
| |
| #define | YYSTACKDEPTH 100 |
| |
| #define | sqlite3ParserARG_SDECL Parse *pParse; |
| |
| #define | sqlite3ParserARG_PDECL ,Parse *pParse |
| |
| #define | sqlite3ParserARG_FETCH Parse *pParse = yypParser->pParse |
| |
| #define | sqlite3ParserARG_STORE yypParser->pParse = pParse |
| |
| #define | YYNSTATE 627 |
| |
| #define | YYNRULE 327 |
| |
| #define | YYFALLBACK 1 |
| |
| #define | YY_NO_ACTION (YYNSTATE+YYNRULE+2) |
| |
| #define | YY_ACCEPT_ACTION (YYNSTATE+YYNRULE+1) |
| |
| #define | YY_ERROR_ACTION (YYNSTATE+YYNRULE) |
| |
| #define | YY_ACTTAB_COUNT (1564) |
| |
| #define | YY_SHIFT_USE_DFLT (-70) |
| |
| #define | YY_SHIFT_COUNT (416) |
| |
| #define | YY_SHIFT_MIN (-69) |
| |
| #define | YY_SHIFT_MAX (1487) |
| |
| #define | YY_REDUCE_USE_DFLT (-169) |
| |
| #define | YY_REDUCE_COUNT (308) |
| |
| #define | YY_REDUCE_MIN (-168) |
| |
| #define | YY_REDUCE_MAX (1391) |
| |
| #define | TOKEN (yyminor.yy0) |
| |
| #define | charMap(X) sqlite3UpperToLower[(unsigned char)X] |
| |
| #define | SQLITE_N_KEYWORD 121 |
| |
| #define | IdChar(C) ((sqlite3CtypeMap[(unsigned char)C]&0x46)!=0) |
| |
| #define | tkSEMI 0 |
| |
| #define | tkWS 1 |
| |
| #define | tkOTHER 2 |
| |
| #define | tkEXPLAIN 3 |
| |
| #define | tkCREATE 4 |
| |
| #define | tkTEMP 5 |
| |
| #define | tkTRIGGER 6 |
| |
| #define | tkEND 7 |
| |
| #define | _FTSINT_H |
| |
|
| SQLITE_API const char * | sqlite3_libversion (void) |
| |
| SQLITE_API const char * | sqlite3_sourceid (void) |
| |
| SQLITE_API int | sqlite3_libversion_number (void) |
| |
| SQLITE_API int | sqlite3_compileoption_used (const char *zOptName) |
| |
| SQLITE_API const char * | sqlite3_compileoption_get (int N) |
| |
| SQLITE_API int | sqlite3_threadsafe (void) |
| |
| SQLITE_API int | sqlite3_close (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_close_v2 (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_exec (sqlite3 *, const char *sql, int(*callback)(void *, int, char **, char **), void *, char **errmsg) |
| |
| SQLITE_API int | sqlite3_initialize (void) |
| |
| SQLITE_API int | sqlite3_shutdown (void) |
| |
| SQLITE_API int | sqlite3_os_init (void) |
| |
| SQLITE_API int | sqlite3_os_end (void) |
| |
| SQLITE_API int | sqlite3_config (int,...) |
| |
| SQLITE_API int | sqlite3_db_config (sqlite3 *, int op,...) |
| |
| SQLITE_API int | sqlite3_extended_result_codes (sqlite3 *, int onoff) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_last_insert_rowid (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_changes (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_total_changes (sqlite3 *) |
| |
| SQLITE_API void | sqlite3_interrupt (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_complete (const char *sql) |
| |
| SQLITE_API int | sqlite3_complete16 (const void *sql) |
| |
| SQLITE_API int | sqlite3_busy_handler (sqlite3 *, int(*)(void *, int), void *) |
| |
| SQLITE_API int | sqlite3_busy_timeout (sqlite3 *, int ms) |
| |
| SQLITE_API int | sqlite3_get_table (sqlite3 *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn, char **pzErrmsg) |
| |
| SQLITE_API void | sqlite3_free_table (char **result) |
| |
| SQLITE_API char * | sqlite3_mprintf (const char *,...) |
| |
| SQLITE_API char * | sqlite3_vmprintf (const char *, va_list) |
| |
| SQLITE_API char * | sqlite3_snprintf (int, char *, const char *,...) |
| |
| SQLITE_API char * | sqlite3_vsnprintf (int, char *, const char *, va_list) |
| |
| SQLITE_API void * | sqlite3_malloc (int) |
| |
| SQLITE_API void * | sqlite3_realloc (void *, int) |
| |
| SQLITE_API void | sqlite3_free (void *) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_memory_used (void) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_memory_highwater (int resetFlag) |
| |
| SQLITE_API void | sqlite3_randomness (int N, void *P) |
| |
| SQLITE_API int | sqlite3_set_authorizer (sqlite3 *, int(*xAuth)(void *, int, const char *, const char *, const char *, const char *), void *pUserData) |
| |
| SQLITE_API void * | sqlite3_trace (sqlite3 *, void(*xTrace)(void *, const char *), void *) |
| |
| SQLITE_API SQLITE_EXPERIMENTAL void * | sqlite3_profile (sqlite3 *, void(*xProfile)(void *, const char *, sqlite3_uint64), void *) |
| |
| SQLITE_API void | sqlite3_progress_handler (sqlite3 *, int, int(*)(void *), void *) |
| |
| SQLITE_API int | sqlite3_open (const char *filename, sqlite3 **ppDb) |
| |
| SQLITE_API int | sqlite3_open16 (const void *filename, sqlite3 **ppDb) |
| |
| SQLITE_API int | sqlite3_open_v2 (const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) |
| |
| SQLITE_API const char * | sqlite3_uri_parameter (const char *zFilename, const char *zParam) |
| |
| SQLITE_API int | sqlite3_uri_boolean (const char *zFile, const char *zParam, int bDefault) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_uri_int64 (const char *, const char *, sqlite3_int64) |
| |
| SQLITE_API int | sqlite3_errcode (sqlite3 *db) |
| |
| SQLITE_API int | sqlite3_extended_errcode (sqlite3 *db) |
| |
| SQLITE_API const char * | sqlite3_errmsg (sqlite3 *) |
| |
| SQLITE_API const void * | sqlite3_errmsg16 (sqlite3 *) |
| |
| SQLITE_API const char * | sqlite3_errstr (int) |
| |
| SQLITE_API int | sqlite3_limit (sqlite3 *, int id, int newVal) |
| |
| SQLITE_API int | sqlite3_prepare (sqlite3 *db, const char *zSql, int nByte, sqlite3_stmt **ppStmt, const char **pzTail) |
| |
| SQLITE_API int | sqlite3_prepare_v2 (sqlite3 *db, const char *zSql, int nByte, sqlite3_stmt **ppStmt, const char **pzTail) |
| |
| SQLITE_API int | sqlite3_prepare16 (sqlite3 *db, const void *zSql, int nByte, sqlite3_stmt **ppStmt, const void **pzTail) |
| |
| SQLITE_API int | sqlite3_prepare16_v2 (sqlite3 *db, const void *zSql, int nByte, sqlite3_stmt **ppStmt, const void **pzTail) |
| |
| SQLITE_API const char * | sqlite3_sql (sqlite3_stmt *pStmt) |
| |
| SQLITE_API int | sqlite3_stmt_readonly (sqlite3_stmt *pStmt) |
| |
| SQLITE_API int | sqlite3_stmt_busy (sqlite3_stmt *) |
| |
| SQLITE_API int | sqlite3_bind_blob (sqlite3_stmt *, int, const void *, int n, void(*)(void *)) |
| |
| SQLITE_API int | sqlite3_bind_double (sqlite3_stmt *, int, double) |
| |
| SQLITE_API int | sqlite3_bind_int (sqlite3_stmt *, int, int) |
| |
| SQLITE_API int | sqlite3_bind_int64 (sqlite3_stmt *, int, sqlite3_int64) |
| |
| SQLITE_API int | sqlite3_bind_null (sqlite3_stmt *, int) |
| |
| SQLITE_API int | sqlite3_bind_text (sqlite3_stmt *, int, const char *, int n, void(*)(void *)) |
| |
| SQLITE_API int | sqlite3_bind_text16 (sqlite3_stmt *, int, const void *, int, void(*)(void *)) |
| |
| SQLITE_API int | sqlite3_bind_value (sqlite3_stmt *, int, const sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_bind_zeroblob (sqlite3_stmt *, int, int n) |
| |
| SQLITE_API int | sqlite3_bind_parameter_count (sqlite3_stmt *) |
| |
| SQLITE_API const char * | sqlite3_bind_parameter_name (sqlite3_stmt *, int) |
| |
| SQLITE_API int | sqlite3_bind_parameter_index (sqlite3_stmt *, const char *zName) |
| |
| SQLITE_API int | sqlite3_clear_bindings (sqlite3_stmt *) |
| |
| SQLITE_API int | sqlite3_column_count (sqlite3_stmt *pStmt) |
| |
| SQLITE_API const char * | sqlite3_column_name (sqlite3_stmt *, int N) |
| |
| SQLITE_API const void * | sqlite3_column_name16 (sqlite3_stmt *, int N) |
| |
| SQLITE_API const char * | sqlite3_column_database_name (sqlite3_stmt *, int) |
| |
| SQLITE_API const void * | sqlite3_column_database_name16 (sqlite3_stmt *, int) |
| |
| SQLITE_API const char * | sqlite3_column_table_name (sqlite3_stmt *, int) |
| |
| SQLITE_API const void * | sqlite3_column_table_name16 (sqlite3_stmt *, int) |
| |
| SQLITE_API const char * | sqlite3_column_origin_name (sqlite3_stmt *, int) |
| |
| SQLITE_API const void * | sqlite3_column_origin_name16 (sqlite3_stmt *, int) |
| |
| SQLITE_API const char * | sqlite3_column_decltype (sqlite3_stmt *, int) |
| |
| SQLITE_API const void * | sqlite3_column_decltype16 (sqlite3_stmt *, int) |
| |
| SQLITE_API int | sqlite3_step (sqlite3_stmt *) |
| |
| SQLITE_API int | sqlite3_data_count (sqlite3_stmt *pStmt) |
| |
| SQLITE_API const void * | sqlite3_column_blob (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API int | sqlite3_column_bytes (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API int | sqlite3_column_bytes16 (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API double | sqlite3_column_double (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API int | sqlite3_column_int (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_column_int64 (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API const unsigned char * | sqlite3_column_text (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API const void * | sqlite3_column_text16 (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API int | sqlite3_column_type (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API sqlite3_value * | sqlite3_column_value (sqlite3_stmt *, int iCol) |
| |
| SQLITE_API int | sqlite3_finalize (sqlite3_stmt *pStmt) |
| |
| SQLITE_API int | sqlite3_reset (sqlite3_stmt *pStmt) |
| |
| SQLITE_API int | sqlite3_create_function (sqlite3 *db, const char *zFunctionName, int nArg, int eTextRep, void *pApp, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *)) |
| |
| SQLITE_API int | sqlite3_create_function16 (sqlite3 *db, const void *zFunctionName, int nArg, int eTextRep, void *pApp, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *)) |
| |
| SQLITE_API int | sqlite3_create_function_v2 (sqlite3 *db, const char *zFunctionName, int nArg, int eTextRep, void *pApp, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *), void(*xDestroy)(void *)) |
| |
| SQLITE_API SQLITE_DEPRECATED int | sqlite3_aggregate_count (sqlite3_context *) |
| |
| SQLITE_API SQLITE_DEPRECATED int | sqlite3_expired (sqlite3_stmt *) |
| |
| SQLITE_API SQLITE_DEPRECATED int | sqlite3_transfer_bindings (sqlite3_stmt *, sqlite3_stmt *) |
| |
| SQLITE_API SQLITE_DEPRECATED int | sqlite3_global_recover (void) |
| |
| SQLITE_API SQLITE_DEPRECATED void | sqlite3_thread_cleanup (void) |
| |
| SQLITE_API SQLITE_DEPRECATED int | sqlite3_memory_alarm (void(*)(void *, sqlite3_int64, int), void *, sqlite3_int64) |
| |
| SQLITE_API const void * | sqlite3_value_blob (sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_value_bytes (sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_value_bytes16 (sqlite3_value *) |
| |
| SQLITE_API double | sqlite3_value_double (sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_value_int (sqlite3_value *) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_value_int64 (sqlite3_value *) |
| |
| SQLITE_API const unsigned char * | sqlite3_value_text (sqlite3_value *) |
| |
| SQLITE_API const void * | sqlite3_value_text16 (sqlite3_value *) |
| |
| SQLITE_API const void * | sqlite3_value_text16le (sqlite3_value *) |
| |
| SQLITE_API const void * | sqlite3_value_text16be (sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_value_type (sqlite3_value *) |
| |
| SQLITE_API int | sqlite3_value_numeric_type (sqlite3_value *) |
| |
| SQLITE_API void * | sqlite3_aggregate_context (sqlite3_context *, int nBytes) |
| |
| SQLITE_API void * | sqlite3_user_data (sqlite3_context *) |
| |
| SQLITE_API sqlite3 * | sqlite3_context_db_handle (sqlite3_context *) |
| |
| SQLITE_API void * | sqlite3_get_auxdata (sqlite3_context *, int N) |
| |
| SQLITE_API void | sqlite3_set_auxdata (sqlite3_context *, int N, void *, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_blob (sqlite3_context *, const void *, int, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_double (sqlite3_context *, double) |
| |
| SQLITE_API void | sqlite3_result_error (sqlite3_context *, const char *, int) |
| |
| SQLITE_API void | sqlite3_result_error16 (sqlite3_context *, const void *, int) |
| |
| SQLITE_API void | sqlite3_result_error_toobig (sqlite3_context *) |
| |
| SQLITE_API void | sqlite3_result_error_nomem (sqlite3_context *) |
| |
| SQLITE_API void | sqlite3_result_error_code (sqlite3_context *, int) |
| |
| SQLITE_API void | sqlite3_result_int (sqlite3_context *, int) |
| |
| SQLITE_API void | sqlite3_result_int64 (sqlite3_context *, sqlite3_int64) |
| |
| SQLITE_API void | sqlite3_result_null (sqlite3_context *) |
| |
| SQLITE_API void | sqlite3_result_text (sqlite3_context *, const char *, int, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_text16 (sqlite3_context *, const void *, int, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_text16le (sqlite3_context *, const void *, int, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_text16be (sqlite3_context *, const void *, int, void(*)(void *)) |
| |
| SQLITE_API void | sqlite3_result_value (sqlite3_context *, sqlite3_value *) |
| |
| SQLITE_API void | sqlite3_result_zeroblob (sqlite3_context *, int n) |
| |
| SQLITE_API int | sqlite3_create_collation (sqlite3 *, const char *zName, int eTextRep, void *pArg, int(*xCompare)(void *, int, const void *, int, const void *)) |
| |
| SQLITE_API int | sqlite3_create_collation_v2 (sqlite3 *, const char *zName, int eTextRep, void *pArg, int(*xCompare)(void *, int, const void *, int, const void *), void(*xDestroy)(void *)) |
| |
| SQLITE_API int | sqlite3_create_collation16 (sqlite3 *, const void *zName, int eTextRep, void *pArg, int(*xCompare)(void *, int, const void *, int, const void *)) |
| |
| SQLITE_API int | sqlite3_collation_needed (sqlite3 *, void *, void(*)(void *, sqlite3 *, int eTextRep, const char *)) |
| |
| SQLITE_API int | sqlite3_collation_needed16 (sqlite3 *, void *, void(*)(void *, sqlite3 *, int eTextRep, const void *)) |
| |
| SQLITE_API int | sqlite3_sleep (int) |
| |
| SQLITE_API int | sqlite3_get_autocommit (sqlite3 *) |
| |
| SQLITE_API sqlite3 * | sqlite3_db_handle (sqlite3_stmt *) |
| |
| SQLITE_API const char * | sqlite3_db_filename (sqlite3 *db, const char *zDbName) |
| |
| SQLITE_API int | sqlite3_db_readonly (sqlite3 *db, const char *zDbName) |
| |
| SQLITE_API sqlite3_stmt * | sqlite3_next_stmt (sqlite3 *pDb, sqlite3_stmt *pStmt) |
| |
| SQLITE_API void * | sqlite3_commit_hook (sqlite3 *, int(*)(void *), void *) |
| |
| SQLITE_API void * | sqlite3_rollback_hook (sqlite3 *, void(*)(void *), void *) |
| |
| SQLITE_API void * | sqlite3_update_hook (sqlite3 *, void(*)(void *, int, char const *, char const *, sqlite3_int64), void *) |
| |
| SQLITE_API int | sqlite3_enable_shared_cache (int) |
| |
| SQLITE_API int | sqlite3_release_memory (int) |
| |
| SQLITE_API int | sqlite3_db_release_memory (sqlite3 *) |
| |
| SQLITE_API sqlite3_int64 | sqlite3_soft_heap_limit64 (sqlite3_int64 N) |
| |
| SQLITE_API SQLITE_DEPRECATED void | sqlite3_soft_heap_limit (int N) |
| |
| SQLITE_API int | sqlite3_table_column_metadata (sqlite3 *db, const char *zDbName, const char *zTableName, const char *zColumnName, char const **pzDataType, char const **pzCollSeq, int *pNotNull, int *pPrimaryKey, int *pAutoinc) |
| |
| SQLITE_API int | sqlite3_load_extension (sqlite3 *db, const char *zFile, const char *zProc, char **pzErrMsg) |
| |
| SQLITE_API int | sqlite3_enable_load_extension (sqlite3 *db, int onoff) |
| |
| SQLITE_API int | sqlite3_auto_extension (void(*xEntryPoint)(void)) |
| |
| SQLITE_API void | sqlite3_reset_auto_extension (void) |
| |
| SQLITE_API int | sqlite3_create_module (sqlite3 *db, const char *zName, const sqlite3_module *p, void *pClientData) |
| |
| SQLITE_API int | sqlite3_create_module_v2 (sqlite3 *db, const char *zName, const sqlite3_module *p, void *pClientData, void(*xDestroy)(void *)) |
| |
| SQLITE_API int | sqlite3_declare_vtab (sqlite3 *, const char *zSQL) |
| |
| SQLITE_API int | sqlite3_overload_function (sqlite3 *, const char *zFuncName, int nArg) |
| |
| SQLITE_API int | sqlite3_blob_open (sqlite3 *, const char *zDb, const char *zTable, const char *zColumn, sqlite3_int64 iRow, int flags, sqlite3_blob **ppBlob) |
| |
| SQLITE_API SQLITE_EXPERIMENTAL int | sqlite3_blob_reopen (sqlite3_blob *, sqlite3_int64) |
| |
| SQLITE_API int | sqlite3_blob_close (sqlite3_blob *) |
| |
| SQLITE_API int | sqlite3_blob_bytes (sqlite3_blob *) |
| |
| SQLITE_API int | sqlite3_blob_read (sqlite3_blob *, void *Z, int N, int iOffset) |
| |
| SQLITE_API int | sqlite3_blob_write (sqlite3_blob *, const void *z, int n, int iOffset) |
| |
| SQLITE_API sqlite3_vfs * | sqlite3_vfs_find (const char *zVfsName) |
| |
| SQLITE_API int | sqlite3_vfs_register (sqlite3_vfs *, int makeDflt) |
| |
| SQLITE_API int | sqlite3_vfs_unregister (sqlite3_vfs *) |
| |
| SQLITE_API sqlite3_mutex * | sqlite3_mutex_alloc (int) |
| |
| SQLITE_API void | sqlite3_mutex_free (sqlite3_mutex *) |
| |
| SQLITE_API void | sqlite3_mutex_enter (sqlite3_mutex *) |
| |
| SQLITE_API int | sqlite3_mutex_try (sqlite3_mutex *) |
| |
| SQLITE_API void | sqlite3_mutex_leave (sqlite3_mutex *) |
| |
| SQLITE_API sqlite3_mutex * | sqlite3_db_mutex (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_file_control (sqlite3 *, const char *zDbName, int op, void *) |
| |
| SQLITE_API int | sqlite3_test_control (int op,...) |
| |
| SQLITE_API int | sqlite3_status (int op, int *pCurrent, int *pHighwater, int resetFlag) |
| |
| SQLITE_API int | sqlite3_db_status (sqlite3 *, int op, int *pCur, int *pHiwtr, int resetFlg) |
| |
| SQLITE_API int | sqlite3_stmt_status (sqlite3_stmt *, int op, int resetFlg) |
| |
| SQLITE_API sqlite3_backup * | sqlite3_backup_init (sqlite3 *pDest, const char *zDestName, sqlite3 *pSource, const char *zSourceName) |
| |
| SQLITE_API int | sqlite3_backup_step (sqlite3_backup *p, int nPage) |
| |
| SQLITE_API int | sqlite3_backup_finish (sqlite3_backup *p) |
| |
| SQLITE_API int | sqlite3_backup_remaining (sqlite3_backup *p) |
| |
| SQLITE_API int | sqlite3_backup_pagecount (sqlite3_backup *p) |
| |
| SQLITE_API int | sqlite3_unlock_notify (sqlite3 *pBlocked, void(*xNotify)(void **apArg, int nArg), void *pNotifyArg) |
| |
| SQLITE_API int | sqlite3_stricmp (const char *, const char *) |
| |
| SQLITE_API int | sqlite3_strnicmp (const char *, const char *, int) |
| |
| SQLITE_API int | sqlite3_strglob (const char *zGlob, const char *zStr) |
| |
| SQLITE_API void | sqlite3_log (int iErrCode, const char *zFormat,...) |
| |
| SQLITE_API void * | sqlite3_wal_hook (sqlite3 *, int(*)(void *, sqlite3 *, const char *, int), void *) |
| |
| SQLITE_API int | sqlite3_wal_autocheckpoint (sqlite3 *db, int N) |
| |
| SQLITE_API int | sqlite3_wal_checkpoint (sqlite3 *db, const char *zDb) |
| |
| SQLITE_API int | sqlite3_wal_checkpoint_v2 (sqlite3 *db, const char *zDb, int eMode, int *pnLog, int *pnCkpt) |
| |
| SQLITE_API int | sqlite3_vtab_config (sqlite3 *, int op,...) |
| |
| SQLITE_API int | sqlite3_vtab_on_conflict (sqlite3 *) |
| |
| SQLITE_API int | sqlite3_rtree_geometry_callback (sqlite3 *db, const char *zGeom, int(*xGeom)(sqlite3_rtree_geometry *, int n, double *a, int *pRes), void *pContext) |
| |
| SQLITE_PRIVATE void | sqlite3HashInit (Hash *) |
| |
| SQLITE_PRIVATE void * | sqlite3HashInsert (Hash *, const char *pKey, int nKey, void *pData) |
| |
| SQLITE_PRIVATE void * | sqlite3HashFind (const Hash *, const char *pKey, int nKey) |
| |
| SQLITE_PRIVATE void | sqlite3HashClear (Hash *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeOpen (sqlite3_vfs *pVfs, const char *zFilename, sqlite3 *db, Btree **ppBtree, int flags, int vfsFlags) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeClose (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetCacheSize (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetMmapLimit (Btree *, sqlite3_int64) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetSafetyLevel (Btree *, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSyncDisabled (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetPageSize (Btree *p, int nPagesize, int nReserve, int eFix) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeGetPageSize (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeMaxPageCount (Btree *, int) |
| |
| SQLITE_PRIVATE u32 | sqlite3BtreeLastPage (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSecureDelete (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeGetReserve (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetAutoVacuum (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeGetAutoVacuum (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeBeginTrans (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCommitPhaseOne (Btree *, const char *zMaster) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCommitPhaseTwo (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCommit (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeRollback (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeBeginStmt (Btree *, int) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCreateTable (Btree *, int *, int flags) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeIsInTrans (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeIsInReadTrans (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeIsInBackup (Btree *) |
| |
| SQLITE_PRIVATE void * | sqlite3BtreeSchema (Btree *, int, void(*)(void *)) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSchemaLocked (Btree *pBtree) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeLockTable (Btree *pBtree, int iTab, u8 isWriteLock) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSavepoint (Btree *, int, int) |
| |
| SQLITE_PRIVATE const char * | sqlite3BtreeGetFilename (Btree *) |
| |
| SQLITE_PRIVATE const char * | sqlite3BtreeGetJournalname (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCopyFile (Btree *, Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeIncrVacuum (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeDropTable (Btree *, int, int *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeClearTable (Btree *, int, int *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeTripAllCursors (Btree *, int) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeGetMeta (Btree *pBtree, int idx, u32 *pValue) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeUpdateMeta (Btree *, int idx, u32 value) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeNewDb (Btree *p) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCursor (Btree *, int iTable, int wrFlag, struct KeyInfo *, BtCursor *pCursor) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCursorSize (void) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeCursorZero (BtCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCloseCursor (BtCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeMovetoUnpacked (BtCursor *, UnpackedRecord *pUnKey, i64 intKey, int bias, int *pRes) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCursorHasMoved (BtCursor *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeDelete (BtCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeInsert (BtCursor *, const void *pKey, i64 nKey, const void *pData, int nData, int nZero, int bias, int seekResult) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeFirst (BtCursor *, int *pRes) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeLast (BtCursor *, int *pRes) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeNext (BtCursor *, int *pRes) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeEof (BtCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreePrevious (BtCursor *, int *pRes) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeKeySize (BtCursor *, i64 *pSize) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeKey (BtCursor *, u32 offset, u32 amt, void *) |
| |
| SQLITE_PRIVATE const void * | sqlite3BtreeKeyFetch (BtCursor *, int *pAmt) |
| |
| SQLITE_PRIVATE const void * | sqlite3BtreeDataFetch (BtCursor *, int *pAmt) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeDataSize (BtCursor *, u32 *pSize) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeData (BtCursor *, u32 offset, u32 amt, void *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeSetCachedRowid (BtCursor *, sqlite3_int64) |
| |
| SQLITE_PRIVATE sqlite3_int64 | sqlite3BtreeGetCachedRowid (BtCursor *) |
| |
| SQLITE_PRIVATE char * | sqlite3BtreeIntegrityCheck (Btree *, int *aRoot, int nRoot, int, int *) |
| |
| SQLITE_PRIVATE struct Pager * | sqlite3BtreePager (Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreePutData (BtCursor *, u32 offset, u32 amt, void *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeCacheOverflow (BtCursor *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeClearCursor (BtCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSetVersion (Btree *pBt, int iVersion) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeCursorHints (BtCursor *, unsigned int mask) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCount (BtCursor *, i64 *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeCheckpoint (Btree *, int, int *, int *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeEnter (Btree *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeEnterAll (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3BtreeSharable (Btree *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeLeave (Btree *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeEnterCursor (BtCursor *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeLeaveCursor (BtCursor *) |
| |
| SQLITE_PRIVATE void | sqlite3BtreeLeaveAll (sqlite3 *) |
| |
| SQLITE_PRIVATE Vdbe * | sqlite3VdbeCreate (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp0 (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp1 (Vdbe *, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp2 (Vdbe *, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp3 (Vdbe *, int, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp4 (Vdbe *, int, int, int, int, const char *zP4, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOp4Int (Vdbe *, int, int, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeAddOpList (Vdbe *, int nOp, VdbeOpList const *aOp) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeAddParseSchemaOp (Vdbe *, int, char *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeP1 (Vdbe *, u32 addr, int P1) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeP2 (Vdbe *, u32 addr, int P2) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeP3 (Vdbe *, u32 addr, int P3) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeP5 (Vdbe *, u8 P5) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeJumpHere (Vdbe *, int addr) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeToNoop (Vdbe *, int addr) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeChangeP4 (Vdbe *, int addr, const char *zP4, int N) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeUsesBtree (Vdbe *, int) |
| |
| SQLITE_PRIVATE VdbeOp * | sqlite3VdbeGetOp (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMakeLabel (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeRunOnlyOnce (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeDelete (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeClearObject (sqlite3 *, Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMakeReady (Vdbe *, Parse *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeFinalize (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeResolveLabel (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeCurrentAddr (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeResetStepResult (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeRewind (Vdbe *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeReset (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSetNumCols (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSetColName (Vdbe *, int, int, const char *, void(*)(void *)) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeCountChanges (Vdbe *) |
| |
| SQLITE_PRIVATE sqlite3 * | sqlite3VdbeDb (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSetSql (Vdbe *, const char *z, int n, int) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSwap (Vdbe *, Vdbe *) |
| |
| SQLITE_PRIVATE VdbeOp * | sqlite3VdbeTakeOpArray (Vdbe *, int *, int *) |
| |
| SQLITE_PRIVATE sqlite3_value * | sqlite3VdbeGetValue (Vdbe *, int, u8) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSetVarmask (Vdbe *, int) |
| |
| SQLITE_PRIVATE char * | sqlite3VdbeExpandSql (Vdbe *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeRecordUnpack (KeyInfo *, int, const void *, UnpackedRecord *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeRecordCompare (int, const void *, UnpackedRecord *) |
| |
| SQLITE_PRIVATE UnpackedRecord * | sqlite3VdbeAllocUnpackedRecord (KeyInfo *, char *, int, char **) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeLinkSubProgram (Vdbe *, SubProgram *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerOpen (sqlite3_vfs *, Pager **ppPager, const char *, int, int, int, void(*)(DbPage *)) |
| |
| SQLITE_PRIVATE int | sqlite3PagerClose (Pager *pPager) |
| |
| SQLITE_PRIVATE int | sqlite3PagerReadFileheader (Pager *, int, unsigned char *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerSetBusyhandler (Pager *, int(*)(void *), void *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerSetPagesize (Pager *, u32 *, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerMaxPageCount (Pager *, int) |
| |
| SQLITE_PRIVATE void | sqlite3PagerSetCachesize (Pager *, int) |
| |
| SQLITE_PRIVATE void | sqlite3PagerSetMmapLimit (Pager *, sqlite3_int64) |
| |
| SQLITE_PRIVATE void | sqlite3PagerShrink (Pager *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerSetSafetyLevel (Pager *, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerLockingMode (Pager *, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerSetJournalMode (Pager *, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerGetJournalMode (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerOkToChangeJournalMode (Pager *) |
| |
| SQLITE_PRIVATE i64 | sqlite3PagerJournalSizeLimit (Pager *, i64) |
| |
| SQLITE_PRIVATE sqlite3_backup ** | sqlite3PagerBackupPtr (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerAcquire (Pager *pPager, Pgno pgno, DbPage **ppPage, int clrFlag) |
| |
| SQLITE_PRIVATE DbPage * | sqlite3PagerLookup (Pager *pPager, Pgno pgno) |
| |
| SQLITE_PRIVATE void | sqlite3PagerRef (DbPage *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerUnref (DbPage *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerWrite (DbPage *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerDontWrite (DbPage *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerMovepage (Pager *, DbPage *, Pgno, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerPageRefcount (DbPage *) |
| |
| SQLITE_PRIVATE void * | sqlite3PagerGetData (DbPage *) |
| |
| SQLITE_PRIVATE void * | sqlite3PagerGetExtra (DbPage *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerPagecount (Pager *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerBegin (Pager *, int exFlag, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerCommitPhaseOne (Pager *, const char *zMaster, int) |
| |
| SQLITE_PRIVATE int | sqlite3PagerExclusiveLock (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerSync (Pager *pPager) |
| |
| SQLITE_PRIVATE int | sqlite3PagerCommitPhaseTwo (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerRollback (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerOpenSavepoint (Pager *pPager, int n) |
| |
| SQLITE_PRIVATE int | sqlite3PagerSavepoint (Pager *pPager, int op, int iSavepoint) |
| |
| SQLITE_PRIVATE int | sqlite3PagerSharedLock (Pager *pPager) |
| |
| SQLITE_PRIVATE int | sqlite3PagerCheckpoint (Pager *pPager, int, int *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerWalSupported (Pager *pPager) |
| |
| SQLITE_PRIVATE int | sqlite3PagerWalCallback (Pager *pPager) |
| |
| SQLITE_PRIVATE int | sqlite3PagerOpenWal (Pager *pPager, int *pisOpen) |
| |
| SQLITE_PRIVATE int | sqlite3PagerCloseWal (Pager *pPager) |
| |
| SQLITE_PRIVATE u8 | sqlite3PagerIsreadonly (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerRefcount (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerMemUsed (Pager *) |
| |
| SQLITE_PRIVATE const char * | sqlite3PagerFilename (Pager *, int) |
| |
| SQLITE_PRIVATE const sqlite3_vfs * | sqlite3PagerVfs (Pager *) |
| |
| SQLITE_PRIVATE sqlite3_file * | sqlite3PagerFile (Pager *) |
| |
| SQLITE_PRIVATE const char * | sqlite3PagerJournalname (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerNosync (Pager *) |
| |
| SQLITE_PRIVATE void * | sqlite3PagerTempSpace (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3PagerIsMemdb (Pager *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerCacheStat (Pager *, int, int, int *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerClearCache (Pager *) |
| |
| SQLITE_PRIVATE int | sqlite3SectorSize (sqlite3_file *) |
| |
| SQLITE_PRIVATE void | sqlite3PagerTruncateImage (Pager *, Pgno) |
| |
| SQLITE_PRIVATE int | sqlite3PcacheInitialize (void) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheShutdown (void) |
| |
| SQLITE_PRIVATE void | sqlite3PCacheBufferSetup (void *, int sz, int n) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheOpen (int szPage, int szExtra, int bPurgeable, int(*xStress)(void *, PgHdr *), void *pStress, PCache *pToInit) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheSetPageSize (PCache *, int) |
| |
| SQLITE_PRIVATE int | sqlite3PcacheSize (void) |
| |
| SQLITE_PRIVATE int | sqlite3PcacheFetch (PCache *, Pgno, int createFlag, PgHdr **) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheRelease (PgHdr *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheDrop (PgHdr *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheMakeDirty (PgHdr *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheMakeClean (PgHdr *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheCleanAll (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheMove (PgHdr *, Pgno) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheTruncate (PCache *, Pgno x) |
| |
| SQLITE_PRIVATE PgHdr * | sqlite3PcacheDirtyList (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheClose (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheClearSyncFlags (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheClear (PCache *) |
| |
| SQLITE_PRIVATE int | sqlite3PcacheRefCount (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheRef (PgHdr *) |
| |
| SQLITE_PRIVATE int | sqlite3PcachePageRefcount (PgHdr *) |
| |
| SQLITE_PRIVATE int | sqlite3PcachePagecount (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheSetCachesize (PCache *, int) |
| |
| SQLITE_PRIVATE void | sqlite3PcacheShrink (PCache *) |
| |
| SQLITE_PRIVATE void | sqlite3PCacheSetDefault (void) |
| |
| SQLITE_PRIVATE int | sqlite3OsInit (void) |
| |
| SQLITE_PRIVATE int | sqlite3OsClose (sqlite3_file *) |
| |
| SQLITE_PRIVATE int | sqlite3OsRead (sqlite3_file *, void *, int amt, i64 offset) |
| |
| SQLITE_PRIVATE int | sqlite3OsWrite (sqlite3_file *, const void *, int amt, i64 offset) |
| |
| SQLITE_PRIVATE int | sqlite3OsTruncate (sqlite3_file *, i64 size) |
| |
| SQLITE_PRIVATE int | sqlite3OsSync (sqlite3_file *, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsFileSize (sqlite3_file *, i64 *pSize) |
| |
| SQLITE_PRIVATE int | sqlite3OsLock (sqlite3_file *, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsUnlock (sqlite3_file *, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsCheckReservedLock (sqlite3_file *id, int *pResOut) |
| |
| SQLITE_PRIVATE int | sqlite3OsFileControl (sqlite3_file *, int, void *) |
| |
| SQLITE_PRIVATE void | sqlite3OsFileControlHint (sqlite3_file *, int, void *) |
| |
| SQLITE_PRIVATE int | sqlite3OsSectorSize (sqlite3_file *id) |
| |
| SQLITE_PRIVATE int | sqlite3OsDeviceCharacteristics (sqlite3_file *id) |
| |
| SQLITE_PRIVATE int | sqlite3OsShmMap (sqlite3_file *, int, int, int, void volatile **) |
| |
| SQLITE_PRIVATE int | sqlite3OsShmLock (sqlite3_file *id, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3OsShmBarrier (sqlite3_file *id) |
| |
| SQLITE_PRIVATE int | sqlite3OsShmUnmap (sqlite3_file *id, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsFetch (sqlite3_file *id, i64, int, void **) |
| |
| SQLITE_PRIVATE int | sqlite3OsUnfetch (sqlite3_file *, i64, void *) |
| |
| SQLITE_PRIVATE int | sqlite3OsOpen (sqlite3_vfs *, const char *, sqlite3_file *, int, int *) |
| |
| SQLITE_PRIVATE int | sqlite3OsDelete (sqlite3_vfs *, const char *, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsAccess (sqlite3_vfs *, const char *, int, int *pResOut) |
| |
| SQLITE_PRIVATE int | sqlite3OsFullPathname (sqlite3_vfs *, const char *, int, char *) |
| |
| SQLITE_PRIVATE void * | sqlite3OsDlOpen (sqlite3_vfs *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3OsDlError (sqlite3_vfs *, int, char *) |
| |
| SQLITE_PRIVATE void | sqlite3OsDlClose (sqlite3_vfs *, void *) |
| |
| SQLITE_PRIVATE int | sqlite3OsRandomness (sqlite3_vfs *, int, char *) |
| |
| SQLITE_PRIVATE int | sqlite3OsSleep (sqlite3_vfs *, int) |
| |
| SQLITE_PRIVATE int | sqlite3OsCurrentTimeInt64 (sqlite3_vfs *, sqlite3_int64 *) |
| |
| SQLITE_PRIVATE int | sqlite3OsOpenMalloc (sqlite3_vfs *, const char *, sqlite3_file **, int, int *) |
| |
| SQLITE_PRIVATE int | sqlite3OsCloseFree (sqlite3_file *) |
| |
| SQLITE_PRIVATE int | sqlite3WalkExpr (Walker *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3WalkExprList (Walker *, ExprList *) |
| |
| SQLITE_PRIVATE int | sqlite3WalkSelect (Walker *, Select *) |
| |
| SQLITE_PRIVATE int | sqlite3WalkSelectExpr (Walker *, Select *) |
| |
| SQLITE_PRIVATE int | sqlite3WalkSelectFrom (Walker *, Select *) |
| |
| SQLITE_PRIVATE int | sqlite3CorruptError (int) |
| |
| SQLITE_PRIVATE int | sqlite3MisuseError (int) |
| |
| SQLITE_PRIVATE int | sqlite3CantopenError (int) |
| |
| SQLITE_PRIVATE int | sqlite3Strlen30 (const char *) |
| |
| SQLITE_PRIVATE int | sqlite3MallocInit (void) |
| |
| SQLITE_PRIVATE void | sqlite3MallocEnd (void) |
| |
| SQLITE_PRIVATE void * | sqlite3Malloc (int) |
| |
| SQLITE_PRIVATE void * | sqlite3MallocZero (int) |
| |
| SQLITE_PRIVATE void * | sqlite3DbMallocZero (sqlite3 *, int) |
| |
| SQLITE_PRIVATE void * | sqlite3DbMallocRaw (sqlite3 *, int) |
| |
| SQLITE_PRIVATE char * | sqlite3DbStrDup (sqlite3 *, const char *) |
| |
| SQLITE_PRIVATE char * | sqlite3DbStrNDup (sqlite3 *, const char *, int) |
| |
| SQLITE_PRIVATE void * | sqlite3Realloc (void *, int) |
| |
| SQLITE_PRIVATE void * | sqlite3DbReallocOrFree (sqlite3 *, void *, int) |
| |
| SQLITE_PRIVATE void * | sqlite3DbRealloc (sqlite3 *, void *, int) |
| |
| SQLITE_PRIVATE void | sqlite3DbFree (sqlite3 *, void *) |
| |
| SQLITE_PRIVATE int | sqlite3MallocSize (void *) |
| |
| SQLITE_PRIVATE int | sqlite3DbMallocSize (sqlite3 *, void *) |
| |
| SQLITE_PRIVATE void * | sqlite3ScratchMalloc (int) |
| |
| SQLITE_PRIVATE void | sqlite3ScratchFree (void *) |
| |
| SQLITE_PRIVATE void * | sqlite3PageMalloc (int) |
| |
| SQLITE_PRIVATE void | sqlite3PageFree (void *) |
| |
| SQLITE_PRIVATE void | sqlite3MemSetDefault (void) |
| |
| SQLITE_PRIVATE void | sqlite3BenignMallocHooks (void(*)(void), void(*)(void)) |
| |
| SQLITE_PRIVATE int | sqlite3HeapNearlyFull (void) |
| |
| SQLITE_PRIVATE sqlite3_mutex_methods const * | sqlite3DefaultMutex (void) |
| |
| SQLITE_PRIVATE sqlite3_mutex_methods const * | sqlite3NoopMutex (void) |
| |
| SQLITE_PRIVATE sqlite3_mutex * | sqlite3MutexAlloc (int) |
| |
| SQLITE_PRIVATE int | sqlite3MutexInit (void) |
| |
| SQLITE_PRIVATE int | sqlite3MutexEnd (void) |
| |
| SQLITE_PRIVATE int | sqlite3StatusValue (int) |
| |
| SQLITE_PRIVATE void | sqlite3StatusAdd (int, int) |
| |
| SQLITE_PRIVATE void | sqlite3StatusSet (int, int) |
| |
| SQLITE_PRIVATE int | sqlite3IsNaN (double) |
| |
| SQLITE_PRIVATE void | sqlite3VXPrintf (StrAccum *, int, const char *, va_list) |
| |
| SQLITE_PRIVATE void | sqlite3XPrintf (StrAccum *, const char *,...) |
| |
| SQLITE_PRIVATE char * | sqlite3MPrintf (sqlite3 *, const char *,...) |
| |
| SQLITE_PRIVATE char * | sqlite3VMPrintf (sqlite3 *, const char *, va_list) |
| |
| SQLITE_PRIVATE char * | sqlite3MAppendf (sqlite3 *, char *, const char *,...) |
| |
| SQLITE_PRIVATE void | sqlite3SetString (char **, sqlite3 *, const char *,...) |
| |
| SQLITE_PRIVATE void | sqlite3ErrorMsg (Parse *, const char *,...) |
| |
| SQLITE_PRIVATE int | sqlite3Dequote (char *) |
| |
| SQLITE_PRIVATE int | sqlite3KeywordCode (const unsigned char *, int) |
| |
| SQLITE_PRIVATE int | sqlite3RunParser (Parse *, const char *, char **) |
| |
| SQLITE_PRIVATE void | sqlite3FinishCoding (Parse *) |
| |
| SQLITE_PRIVATE int | sqlite3GetTempReg (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3ReleaseTempReg (Parse *, int) |
| |
| SQLITE_PRIVATE int | sqlite3GetTempRange (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3ReleaseTempRange (Parse *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ClearTempRegCache (Parse *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprAlloc (sqlite3 *, int, const Token *, int) |
| |
| SQLITE_PRIVATE Expr * | sqlite3Expr (sqlite3 *, int, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprAttachSubtrees (sqlite3 *, Expr *, Expr *, Expr *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3PExpr (Parse *, int, Expr *, Expr *, const Token *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprAnd (sqlite3 *, Expr *, Expr *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprFunction (Parse *, ExprList *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprAssignVarNumber (Parse *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprDelete (sqlite3 *, Expr *) |
| |
| SQLITE_PRIVATE ExprList * | sqlite3ExprListAppend (Parse *, ExprList *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprListSetName (Parse *, ExprList *, Token *, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprListSetSpan (Parse *, ExprList *, ExprSpan *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprListDelete (sqlite3 *, ExprList *) |
| |
| SQLITE_PRIVATE int | sqlite3Init (sqlite3 *, char **) |
| |
| SQLITE_PRIVATE int | sqlite3InitCallback (void *, int, char **, char **) |
| |
| SQLITE_PRIVATE void | sqlite3Pragma (Parse *, Token *, Token *, Token *, int) |
| |
| SQLITE_PRIVATE void | sqlite3ResetAllSchemasOfConnection (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3ResetOneSchema (sqlite3 *, int) |
| |
| SQLITE_PRIVATE void | sqlite3CollapseDatabaseArray (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3BeginParse (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3CommitInternalChanges (sqlite3 *) |
| |
| SQLITE_PRIVATE Table * | sqlite3ResultSetOfSelect (Parse *, Select *) |
| |
| SQLITE_PRIVATE void | sqlite3OpenMasterTable (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3StartTable (Parse *, Token *, Token *, int, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3AddColumn (Parse *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3AddNotNull (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3AddPrimaryKey (Parse *, ExprList *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3AddCheckConstraint (Parse *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3AddColumnType (Parse *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3AddDefaultValue (Parse *, ExprSpan *) |
| |
| SQLITE_PRIVATE void | sqlite3AddCollateType (Parse *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3EndTable (Parse *, Token *, Token *, Select *) |
| |
| SQLITE_PRIVATE int | sqlite3ParseUri (const char *, const char *, unsigned int *, sqlite3_vfs **, char **, char **) |
| |
| SQLITE_PRIVATE Btree * | sqlite3DbNameToBtree (sqlite3 *, const char *) |
| |
| SQLITE_PRIVATE int | sqlite3CodeOnce (Parse *) |
| |
| SQLITE_PRIVATE Bitvec * | sqlite3BitvecCreate (u32) |
| |
| SQLITE_PRIVATE int | sqlite3BitvecTest (Bitvec *, u32) |
| |
| SQLITE_PRIVATE int | sqlite3BitvecSet (Bitvec *, u32) |
| |
| SQLITE_PRIVATE void | sqlite3BitvecClear (Bitvec *, u32, void *) |
| |
| SQLITE_PRIVATE void | sqlite3BitvecDestroy (Bitvec *) |
| |
| SQLITE_PRIVATE u32 | sqlite3BitvecSize (Bitvec *) |
| |
| SQLITE_PRIVATE int | sqlite3BitvecBuiltinTest (int, int *) |
| |
| SQLITE_PRIVATE RowSet * | sqlite3RowSetInit (sqlite3 *, void *, unsigned int) |
| |
| SQLITE_PRIVATE void | sqlite3RowSetClear (RowSet *) |
| |
| SQLITE_PRIVATE void | sqlite3RowSetInsert (RowSet *, i64) |
| |
| SQLITE_PRIVATE int | sqlite3RowSetTest (RowSet *, u8 iBatch, i64) |
| |
| SQLITE_PRIVATE int | sqlite3RowSetNext (RowSet *, i64 *) |
| |
| SQLITE_PRIVATE void | sqlite3CreateView (Parse *, Token *, Token *, Token *, Select *, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3ViewGetColumnNames (Parse *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3DropTable (Parse *, SrcList *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3CodeDropTable (Parse *, Table *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3DeleteTable (sqlite3 *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3AutoincrementBegin (Parse *pParse) |
| |
| SQLITE_PRIVATE void | sqlite3AutoincrementEnd (Parse *pParse) |
| |
| SQLITE_PRIVATE int | sqlite3CodeCoroutine (Parse *, Select *, SelectDest *) |
| |
| SQLITE_PRIVATE void | sqlite3Insert (Parse *, SrcList *, ExprList *, Select *, IdList *, int) |
| |
| SQLITE_PRIVATE void * | sqlite3ArrayAllocate (sqlite3 *, void *, int, int *, int *) |
| |
| SQLITE_PRIVATE IdList * | sqlite3IdListAppend (sqlite3 *, IdList *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3IdListIndex (IdList *, const char *) |
| |
| SQLITE_PRIVATE SrcList * | sqlite3SrcListEnlarge (sqlite3 *, SrcList *, int, int) |
| |
| SQLITE_PRIVATE SrcList * | sqlite3SrcListAppend (sqlite3 *, SrcList *, Token *, Token *) |
| |
| SQLITE_PRIVATE SrcList * | sqlite3SrcListAppendFromTerm (Parse *, SrcList *, Token *, Token *, Token *, Select *, Expr *, IdList *) |
| |
| SQLITE_PRIVATE void | sqlite3SrcListIndexedBy (Parse *, SrcList *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3IndexedByLookup (Parse *, struct SrcList_item *) |
| |
| SQLITE_PRIVATE void | sqlite3SrcListShiftJoinType (SrcList *) |
| |
| SQLITE_PRIVATE void | sqlite3SrcListAssignCursors (Parse *, SrcList *) |
| |
| SQLITE_PRIVATE void | sqlite3IdListDelete (sqlite3 *, IdList *) |
| |
| SQLITE_PRIVATE void | sqlite3SrcListDelete (sqlite3 *, SrcList *) |
| |
| SQLITE_PRIVATE Index * | sqlite3CreateIndex (Parse *, Token *, Token *, SrcList *, ExprList *, int, Token *, Token *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3DropIndex (Parse *, SrcList *, int) |
| |
| SQLITE_PRIVATE int | sqlite3Select (Parse *, Select *, SelectDest *) |
| |
| SQLITE_PRIVATE Select * | sqlite3SelectNew (Parse *, ExprList *, SrcList *, Expr *, ExprList *, Expr *, ExprList *, u16, Expr *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3SelectDelete (sqlite3 *, Select *) |
| |
| SQLITE_PRIVATE Table * | sqlite3SrcListLookup (Parse *, SrcList *) |
| |
| SQLITE_PRIVATE int | sqlite3IsReadOnly (Parse *, Table *, int) |
| |
| SQLITE_PRIVATE void | sqlite3OpenTable (Parse *, int iCur, int iDb, Table *, int) |
| |
| SQLITE_PRIVATE void | sqlite3DeleteFrom (Parse *, SrcList *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3Update (Parse *, SrcList *, ExprList *, Expr *, int) |
| |
| SQLITE_PRIVATE WhereInfo * | sqlite3WhereBegin (Parse *, SrcList *, Expr *, ExprList *, ExprList *, u16, int) |
| |
| SQLITE_PRIVATE void | sqlite3WhereEnd (WhereInfo *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCodeGetColumn (Parse *, Table *, int, int, int, u8) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCodeGetColumnOfTable (Vdbe *, Table *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCodeMove (Parse *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCacheStore (Parse *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCachePush (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCachePop (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCacheRemove (Parse *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCacheClear (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCacheAffinityChange (Parse *, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCode (Parse *, Expr *, int) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCodeTemp (Parse *, Expr *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCodeTarget (Parse *, Expr *, int) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCodeAndCache (Parse *, Expr *, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCodeConstants (Parse *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCodeExprList (Parse *, ExprList *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprIfTrue (Parse *, Expr *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3ExprIfFalse (Parse *, Expr *, int, int) |
| |
| SQLITE_PRIVATE Table * | sqlite3FindTable (sqlite3 *, const char *, const char *) |
| |
| SQLITE_PRIVATE Table * | sqlite3LocateTable (Parse *, int isView, const char *, const char *) |
| |
| SQLITE_PRIVATE Table * | sqlite3LocateTableItem (Parse *, int isView, struct SrcList_item *) |
| |
| SQLITE_PRIVATE Index * | sqlite3FindIndex (sqlite3 *, const char *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3UnlinkAndDeleteTable (sqlite3 *, int, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3UnlinkAndDeleteIndex (sqlite3 *, int, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3Vacuum (Parse *) |
| |
| SQLITE_PRIVATE int | sqlite3RunVacuum (char **, sqlite3 *) |
| |
| SQLITE_PRIVATE char * | sqlite3NameFromToken (sqlite3 *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCompare (Expr *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprListCompare (ExprList *, ExprList *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprAnalyzeAggregates (NameContext *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprAnalyzeAggList (NameContext *, ExprList *) |
| |
| SQLITE_PRIVATE int | sqlite3FunctionUsesThisSrc (Expr *, SrcList *) |
| |
| SQLITE_PRIVATE Vdbe * | sqlite3GetVdbe (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3PrngSaveState (void) |
| |
| SQLITE_PRIVATE void | sqlite3PrngRestoreState (void) |
| |
| SQLITE_PRIVATE void | sqlite3PrngResetState (void) |
| |
| SQLITE_PRIVATE void | sqlite3RollbackAll (sqlite3 *, int) |
| |
| SQLITE_PRIVATE void | sqlite3CodeVerifySchema (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3CodeVerifyNamedSchema (Parse *, const char *zDb) |
| |
| SQLITE_PRIVATE void | sqlite3BeginTransaction (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3CommitTransaction (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3RollbackTransaction (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3Savepoint (Parse *, int, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3CloseSavepoints (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3LeaveMutexAndCloseZombie (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprIsConstant (Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprIsConstantNotJoin (Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprIsConstantOrFunction (Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprIsInteger (Expr *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCanBeNull (const Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprCodeIsNullJump (Vdbe *, const Expr *, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3ExprNeedsNoAffinityChange (const Expr *, char) |
| |
| SQLITE_PRIVATE int | sqlite3IsRowid (const char *) |
| |
| SQLITE_PRIVATE void | sqlite3GenerateRowDelete (Parse *, Table *, int, int, int, Trigger *, int) |
| |
| SQLITE_PRIVATE void | sqlite3GenerateRowIndexDelete (Parse *, Table *, int, int *) |
| |
| SQLITE_PRIVATE int | sqlite3GenerateIndexKey (Parse *, Index *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3GenerateConstraintChecks (Parse *, Table *, int, int, int *, int, int, int, int, int *) |
| |
| SQLITE_PRIVATE void | sqlite3CompleteInsertion (Parse *, Table *, int, int, int *, int, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3OpenTableAndIndices (Parse *, Table *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3BeginWriteOperation (Parse *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3MultiWrite (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3MayAbort (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3HaltConstraint (Parse *, int, int, char *, int) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprDup (sqlite3 *, Expr *, int) |
| |
| SQLITE_PRIVATE ExprList * | sqlite3ExprListDup (sqlite3 *, ExprList *, int) |
| |
| SQLITE_PRIVATE SrcList * | sqlite3SrcListDup (sqlite3 *, SrcList *, int) |
| |
| SQLITE_PRIVATE IdList * | sqlite3IdListDup (sqlite3 *, IdList *) |
| |
| SQLITE_PRIVATE Select * | sqlite3SelectDup (sqlite3 *, Select *, int) |
| |
| SQLITE_PRIVATE void | sqlite3FuncDefInsert (FuncDefHash *, FuncDef *) |
| |
| SQLITE_PRIVATE FuncDef * | sqlite3FindFunction (sqlite3 *, const char *, int, int, u8, u8) |
| |
| SQLITE_PRIVATE void | sqlite3RegisterBuiltinFunctions (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3RegisterDateTimeFunctions (void) |
| |
| SQLITE_PRIVATE void | sqlite3RegisterGlobalFunctions (void) |
| |
| SQLITE_PRIVATE int | sqlite3SafetyCheckOk (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3SafetyCheckSickOrOk (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3ChangeCookie (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3MaterializeView (Parse *, Table *, Expr *, int) |
| |
| SQLITE_PRIVATE void | sqlite3BeginTrigger (Parse *, Token *, Token *, int, int, IdList *, SrcList *, Expr *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3FinishTrigger (Parse *, TriggerStep *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3DropTrigger (Parse *, SrcList *, int) |
| |
| SQLITE_PRIVATE void | sqlite3DropTriggerPtr (Parse *, Trigger *) |
| |
| SQLITE_PRIVATE Trigger * | sqlite3TriggersExist (Parse *, Table *, int, ExprList *, int *pMask) |
| |
| SQLITE_PRIVATE Trigger * | sqlite3TriggerList (Parse *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3CodeRowTrigger (Parse *, Trigger *, int, ExprList *, int, Table *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3CodeRowTriggerDirect (Parse *, Trigger *, Table *, int, int, int) |
| |
| void | sqliteViewTriggers (Parse *, Table *, Expr *, int, ExprList *) |
| |
| SQLITE_PRIVATE void | sqlite3DeleteTriggerStep (sqlite3 *, TriggerStep *) |
| |
| SQLITE_PRIVATE TriggerStep * | sqlite3TriggerSelectStep (sqlite3 *, Select *) |
| |
| SQLITE_PRIVATE TriggerStep * | sqlite3TriggerInsertStep (sqlite3 *, Token *, IdList *, ExprList *, Select *, u8) |
| |
| SQLITE_PRIVATE TriggerStep * | sqlite3TriggerUpdateStep (sqlite3 *, Token *, ExprList *, Expr *, u8) |
| |
| SQLITE_PRIVATE TriggerStep * | sqlite3TriggerDeleteStep (sqlite3 *, Token *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3DeleteTrigger (sqlite3 *, Trigger *) |
| |
| SQLITE_PRIVATE void | sqlite3UnlinkAndDeleteTrigger (sqlite3 *, int, const char *) |
| |
| SQLITE_PRIVATE u32 | sqlite3TriggerColmask (Parse *, Trigger *, ExprList *, int, int, Table *, int) |
| |
| SQLITE_PRIVATE int | sqlite3JoinType (Parse *, Token *, Token *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3CreateForeignKey (Parse *, ExprList *, Token *, ExprList *, int) |
| |
| SQLITE_PRIVATE void | sqlite3DeferForeignKey (Parse *, int) |
| |
| SQLITE_PRIVATE void | sqlite3AuthRead (Parse *, Expr *, Schema *, SrcList *) |
| |
| SQLITE_PRIVATE int | sqlite3AuthCheck (Parse *, int, const char *, const char *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3AuthContextPush (Parse *, AuthContext *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3AuthContextPop (AuthContext *) |
| |
| SQLITE_PRIVATE int | sqlite3AuthReadCol (Parse *, const char *, const char *, int) |
| |
| SQLITE_PRIVATE void | sqlite3Attach (Parse *, Expr *, Expr *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3Detach (Parse *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3FixInit (DbFixer *, Parse *, int, const char *, const Token *) |
| |
| SQLITE_PRIVATE int | sqlite3FixSrcList (DbFixer *, SrcList *) |
| |
| SQLITE_PRIVATE int | sqlite3FixSelect (DbFixer *, Select *) |
| |
| SQLITE_PRIVATE int | sqlite3FixExpr (DbFixer *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3FixExprList (DbFixer *, ExprList *) |
| |
| SQLITE_PRIVATE int | sqlite3FixTriggerStep (DbFixer *, TriggerStep *) |
| |
| SQLITE_PRIVATE int | sqlite3AtoF (const char *z, double *, int, u8) |
| |
| SQLITE_PRIVATE int | sqlite3GetInt32 (const char *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3Atoi (const char *) |
| |
| SQLITE_PRIVATE int | sqlite3Utf16ByteLen (const void *pData, int nChar) |
| |
| SQLITE_PRIVATE int | sqlite3Utf8CharLen (const char *pData, int nByte) |
| |
| SQLITE_PRIVATE u32 | sqlite3Utf8Read (const u8 **) |
| |
| SQLITE_PRIVATE int | sqlite3PutVarint (unsigned char *, u64) |
| |
| SQLITE_PRIVATE int | sqlite3PutVarint32 (unsigned char *, u32) |
| |
| SQLITE_PRIVATE u8 | sqlite3GetVarint (const unsigned char *, u64 *) |
| |
| SQLITE_PRIVATE u8 | sqlite3GetVarint32 (const unsigned char *, u32 *) |
| |
| SQLITE_PRIVATE int | sqlite3VarintLen (u64 v) |
| |
| SQLITE_PRIVATE const char * | sqlite3IndexAffinityStr (Vdbe *, Index *) |
| |
| SQLITE_PRIVATE void | sqlite3TableAffinityStr (Vdbe *, Table *) |
| |
| SQLITE_PRIVATE char | sqlite3CompareAffinity (Expr *pExpr, char aff2) |
| |
| SQLITE_PRIVATE int | sqlite3IndexAffinityOk (Expr *pExpr, char idx_affinity) |
| |
| SQLITE_PRIVATE char | sqlite3ExprAffinity (Expr *pExpr) |
| |
| SQLITE_PRIVATE int | sqlite3Atoi64 (const char *, i64 *, int, u8) |
| |
| SQLITE_PRIVATE void | sqlite3Error (sqlite3 *, int, const char *,...) |
| |
| SQLITE_PRIVATE void * | sqlite3HexToBlob (sqlite3 *, const char *z, int n) |
| |
| SQLITE_PRIVATE u8 | sqlite3HexToInt (int h) |
| |
| SQLITE_PRIVATE int | sqlite3TwoPartName (Parse *, Token *, Token *, Token **) |
| |
| SQLITE_PRIVATE const char * | sqlite3ErrStr (int) |
| |
| SQLITE_PRIVATE int | sqlite3ReadSchema (Parse *pParse) |
| |
| SQLITE_PRIVATE CollSeq * | sqlite3FindCollSeq (sqlite3 *, u8 enc, const char *, int) |
| |
| SQLITE_PRIVATE CollSeq * | sqlite3LocateCollSeq (Parse *pParse, const char *zName) |
| |
| SQLITE_PRIVATE CollSeq * | sqlite3ExprCollSeq (Parse *pParse, Expr *pExpr) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprAddCollateToken (Parse *pParse, Expr *, Token *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprAddCollateString (Parse *, Expr *, const char *) |
| |
| SQLITE_PRIVATE Expr * | sqlite3ExprSkipCollate (Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3CheckCollSeq (Parse *, CollSeq *) |
| |
| SQLITE_PRIVATE int | sqlite3CheckObjectName (Parse *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSetChanges (sqlite3 *, int) |
| |
| SQLITE_PRIVATE int | sqlite3AddInt64 (i64 *, i64) |
| |
| SQLITE_PRIVATE int | sqlite3SubInt64 (i64 *, i64) |
| |
| SQLITE_PRIVATE int | sqlite3MulInt64 (i64 *, i64) |
| |
| SQLITE_PRIVATE int | sqlite3AbsInt32 (int) |
| |
| SQLITE_PRIVATE u8 | sqlite3GetBoolean (const char *z, int) |
| |
| SQLITE_PRIVATE const void * | sqlite3ValueText (sqlite3_value *, u8) |
| |
| SQLITE_PRIVATE int | sqlite3ValueBytes (sqlite3_value *, u8) |
| |
| SQLITE_PRIVATE void | sqlite3ValueSetStr (sqlite3_value *, int, const void *, u8, void(*)(void *)) |
| |
| SQLITE_PRIVATE void | sqlite3ValueFree (sqlite3_value *) |
| |
| SQLITE_PRIVATE sqlite3_value * | sqlite3ValueNew (sqlite3 *) |
| |
| SQLITE_PRIVATE char * | sqlite3Utf16to8 (sqlite3 *, const void *, int, u8) |
| |
| SQLITE_PRIVATE int | sqlite3ValueFromExpr (sqlite3 *, Expr *, u8, u8, sqlite3_value **) |
| |
| SQLITE_PRIVATE void | sqlite3ValueApplyAffinity (sqlite3_value *, u8, u8) |
| |
| SQLITE_PRIVATE void | sqlite3RootPageMoved (sqlite3 *, int, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3Reindex (Parse *, Token *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3AlterFunctions (void) |
| |
| SQLITE_PRIVATE void | sqlite3AlterRenameTable (Parse *, SrcList *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3GetToken (const unsigned char *, int *) |
| |
| SQLITE_PRIVATE void | sqlite3NestedParse (Parse *, const char *,...) |
| |
| SQLITE_PRIVATE void | sqlite3ExpirePreparedStatements (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3CodeSubselect (Parse *, Expr *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3SelectPrep (Parse *, Select *, NameContext *) |
| |
| SQLITE_PRIVATE int | sqlite3MatchSpanName (const char *, const char *, const char *, const char *) |
| |
| SQLITE_PRIVATE int | sqlite3ResolveExprNames (NameContext *, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3ResolveSelectNames (Parse *, Select *, NameContext *) |
| |
| SQLITE_PRIVATE int | sqlite3ResolveOrderGroupBy (Parse *, Select *, ExprList *, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3ColumnDefault (Vdbe *, Table *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3AlterFinishAddColumn (Parse *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3AlterBeginAddColumn (Parse *, SrcList *) |
| |
| SQLITE_PRIVATE CollSeq * | sqlite3GetCollSeq (Parse *, u8, CollSeq *, const char *) |
| |
| SQLITE_PRIVATE char | sqlite3AffinityType (const char *) |
| |
| SQLITE_PRIVATE void | sqlite3Analyze (Parse *, Token *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3InvokeBusyHandler (BusyHandler *) |
| |
| SQLITE_PRIVATE int | sqlite3FindDb (sqlite3 *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3FindDbName (sqlite3 *, const char *) |
| |
| SQLITE_PRIVATE int | sqlite3AnalysisLoad (sqlite3 *, int iDB) |
| |
| SQLITE_PRIVATE void | sqlite3DeleteIndexSamples (sqlite3 *, Index *) |
| |
| SQLITE_PRIVATE void | sqlite3DefaultRowEst (Index *) |
| |
| SQLITE_PRIVATE void | sqlite3RegisterLikeFunctions (sqlite3 *, int) |
| |
| SQLITE_PRIVATE int | sqlite3IsLikeFunction (sqlite3 *, Expr *, int *, char *) |
| |
| SQLITE_PRIVATE void | sqlite3MinimumFileFormat (Parse *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3SchemaClear (void *) |
| |
| SQLITE_PRIVATE Schema * | sqlite3SchemaGet (sqlite3 *, Btree *) |
| |
| SQLITE_PRIVATE int | sqlite3SchemaToIndex (sqlite3 *db, Schema *) |
| |
| SQLITE_PRIVATE KeyInfo * | sqlite3IndexKeyinfo (Parse *, Index *) |
| |
| SQLITE_PRIVATE int | sqlite3CreateFunc (sqlite3 *, const char *, int, int, void *, void(*)(sqlite3_context *, int, sqlite3_value **), void(*)(sqlite3_context *, int, sqlite3_value **), void(*)(sqlite3_context *), FuncDestructor *pDestructor) |
| |
| SQLITE_PRIVATE int | sqlite3ApiExit (sqlite3 *db, int) |
| |
| SQLITE_PRIVATE int | sqlite3OpenTempDatabase (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3StrAccumInit (StrAccum *, char *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3StrAccumAppend (StrAccum *, const char *, int) |
| |
| SQLITE_PRIVATE void | sqlite3AppendSpace (StrAccum *, int) |
| |
| SQLITE_PRIVATE char * | sqlite3StrAccumFinish (StrAccum *) |
| |
| SQLITE_PRIVATE void | sqlite3StrAccumReset (StrAccum *) |
| |
| SQLITE_PRIVATE void | sqlite3SelectDestInit (SelectDest *, int, int) |
| |
| SQLITE_PRIVATE Expr * | sqlite3CreateColumnExpr (sqlite3 *, SrcList *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3BackupRestart (sqlite3_backup *) |
| |
| SQLITE_PRIVATE void | sqlite3BackupUpdate (sqlite3_backup *, Pgno, const u8 *) |
| |
| SQLITE_PRIVATE void * | sqlite3ParserAlloc (void *(*)(size_t)) |
| |
| SQLITE_PRIVATE void | sqlite3ParserFree (void *, void(*)(void *)) |
| |
| SQLITE_PRIVATE void | sqlite3Parser (void *, int, Token, Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3AutoLoadExtensions (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3CloseExtensions (sqlite3 *) |
| |
| SQLITE_PRIVATE void | sqlite3TableLock (Parse *, int, int, u8, const char *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabClear (sqlite3 *db, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabDisconnect (sqlite3 *db, Table *p) |
| |
| SQLITE_PRIVATE int | sqlite3VtabSync (sqlite3 *db, char **) |
| |
| SQLITE_PRIVATE int | sqlite3VtabRollback (sqlite3 *db) |
| |
| SQLITE_PRIVATE int | sqlite3VtabCommit (sqlite3 *db) |
| |
| SQLITE_PRIVATE void | sqlite3VtabLock (VTable *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabUnlock (VTable *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabUnlockList (sqlite3 *) |
| |
| SQLITE_PRIVATE int | sqlite3VtabSavepoint (sqlite3 *, int, int) |
| |
| SQLITE_PRIVATE VTable * | sqlite3GetVTable (sqlite3 *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabMakeWritable (Parse *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabBeginParse (Parse *, Token *, Token *, Token *, int) |
| |
| SQLITE_PRIVATE void | sqlite3VtabFinishParse (Parse *, Token *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabArgInit (Parse *) |
| |
| SQLITE_PRIVATE void | sqlite3VtabArgExtend (Parse *, Token *) |
| |
| SQLITE_PRIVATE int | sqlite3VtabCallCreate (sqlite3 *, int, const char *, char **) |
| |
| SQLITE_PRIVATE int | sqlite3VtabCallConnect (Parse *, Table *) |
| |
| SQLITE_PRIVATE int | sqlite3VtabCallDestroy (sqlite3 *, int, const char *) |
| |
| SQLITE_PRIVATE int | sqlite3VtabBegin (sqlite3 *, VTable *) |
| |
| SQLITE_PRIVATE FuncDef * | sqlite3VtabOverloadFunction (sqlite3 *, FuncDef *, int nArg, Expr *) |
| |
| SQLITE_PRIVATE void | sqlite3InvalidFunction (sqlite3_context *, int, sqlite3_value **) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeParameterIndex (Vdbe *, const char *, int) |
| |
| SQLITE_PRIVATE int | sqlite3TransferBindings (sqlite3_stmt *, sqlite3_stmt *) |
| |
| SQLITE_PRIVATE int | sqlite3Reprepare (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprListCheckLength (Parse *, ExprList *, const char *) |
| |
| SQLITE_PRIVATE CollSeq * | sqlite3BinaryCompareCollSeq (Parse *, Expr *, Expr *) |
| |
| SQLITE_PRIVATE int | sqlite3TempInMemory (const sqlite3 *) |
| |
| SQLITE_PRIVATE const char * | sqlite3JournalModename (int) |
| |
| SQLITE_PRIVATE int | sqlite3Checkpoint (sqlite3 *, int, int, int *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3WalDefaultHook (void *, sqlite3 *, const char *, int) |
| |
| SQLITE_PRIVATE void | sqlite3FkCheck (Parse *, Table *, int, int) |
| |
| SQLITE_PRIVATE void | sqlite3FkDropTable (Parse *, SrcList *, Table *) |
| |
| SQLITE_PRIVATE void | sqlite3FkActions (Parse *, Table *, ExprList *, int) |
| |
| SQLITE_PRIVATE int | sqlite3FkRequired (Parse *, Table *, int *, int) |
| |
| SQLITE_PRIVATE u32 | sqlite3FkOldmask (Parse *, Table *) |
| |
| SQLITE_PRIVATE FKey * | sqlite3FkReferences (Table *) |
| |
| SQLITE_PRIVATE void | sqlite3FkDelete (sqlite3 *, Table *) |
| |
| SQLITE_PRIVATE int | sqlite3FkLocateIndex (Parse *, Table *, FKey *, Index **, int **) |
| |
| SQLITE_PRIVATE void | sqlite3BeginBenignMalloc (void) |
| |
| SQLITE_PRIVATE void | sqlite3EndBenignMalloc (void) |
| |
| SQLITE_PRIVATE int | sqlite3FindInIndex (Parse *, Expr *, int *) |
| |
| SQLITE_PRIVATE void | sqlite3MemJournalOpen (sqlite3_file *) |
| |
| SQLITE_PRIVATE int | sqlite3MemJournalSize (void) |
| |
| SQLITE_PRIVATE int | sqlite3IsMemJournal (sqlite3_file *) |
| |
| SQLITE_PRIVATE void | sqlite3ExprSetHeight (Parse *pParse, Expr *p) |
| |
| SQLITE_PRIVATE int | sqlite3SelectExprHeight (Select *) |
| |
| SQLITE_PRIVATE int | sqlite3ExprCheckHeight (Parse *, int) |
| |
| SQLITE_PRIVATE u32 | sqlite3Get4byte (const u8 *) |
| |
| SQLITE_PRIVATE void | sqlite3Put4byte (u8 *, u32) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeFreeCursor (Vdbe *, VdbeCursor *) |
| |
| void | sqliteVdbePopStack (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeCursorMoveto (VdbeCursor *) |
| |
| SQLITE_PRIVATE u32 | sqlite3VdbeSerialTypeLen (u32) |
| |
| SQLITE_PRIVATE u32 | sqlite3VdbeSerialType (Mem *, int) |
| |
| SQLITE_PRIVATE u32 | sqlite3VdbeSerialPut (unsigned char *, int, Mem *, int) |
| |
| SQLITE_PRIVATE u32 | sqlite3VdbeSerialGet (const unsigned char *, u32, Mem *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeDeleteAuxData (VdbeFunc *, int) |
| |
| int | sqlite2BtreeKeyCompare (BtCursor *, const void *, int, int, int *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeIdxKeyCompare (VdbeCursor *, UnpackedRecord *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeIdxRowid (sqlite3 *, BtCursor *, i64 *) |
| |
| SQLITE_PRIVATE int | sqlite3MemCompare (const Mem *, const Mem *, const CollSeq *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeExec (Vdbe *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeList (Vdbe *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeHalt (Vdbe *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeChangeEncoding (Mem *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemTooBig (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemCopy (Mem *, const Mem *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemShallowCopy (Mem *, const Mem *, int) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemMove (Mem *, Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemNulTerminate (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemSetStr (Mem *, const char *, int, u8, void(*)(void *)) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemSetInt64 (Mem *, i64) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemSetDouble (Mem *, double) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemSetNull (Mem *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemSetZeroBlob (Mem *, int) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemSetRowSet (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemMakeWriteable (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemStringify (Mem *, int) |
| |
| SQLITE_PRIVATE i64 | sqlite3VdbeIntValue (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemIntegerify (Mem *) |
| |
| SQLITE_PRIVATE double | sqlite3VdbeRealValue (Mem *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeIntegerAffinity (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemRealify (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemNumerify (Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemFromBtree (BtCursor *, int, int, int, Mem *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemRelease (Mem *p) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemReleaseExternal (Mem *p) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemFinalize (Mem *, FuncDef *) |
| |
| SQLITE_PRIVATE const char * | sqlite3OpcodeName (int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemGrow (Mem *pMem, int n, int preserve) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeCloseStatement (Vdbe *, int) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeFrameDelete (VdbeFrame *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeFrameRestore (VdbeFrame *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeMemStoreType (Mem *pMem) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeTransferError (Vdbe *p) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterInit (sqlite3 *, VdbeCursor *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeSorterClose (sqlite3 *, VdbeCursor *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterRowkey (const VdbeCursor *, Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterNext (sqlite3 *, const VdbeCursor *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterRewind (sqlite3 *, const VdbeCursor *, int *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterWrite (sqlite3 *, const VdbeCursor *, Mem *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeSorterCompare (const VdbeCursor *, Mem *, int *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeEnter (Vdbe *) |
| |
| SQLITE_PRIVATE void | sqlite3VdbeLeave (Vdbe *) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeCheckFk (Vdbe *, int) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemTranslate (Mem *, u8) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemHandleBom (Mem *pMem) |
| |
| SQLITE_PRIVATE int | sqlite3VdbeMemExpandBlob (Mem *) |
| |
| static int | getDigits (const char *zDate,...) |
| |
| static int | parseTimezone (const char *zDate, DateTime *p) |
| |
| static int | parseHhMmSs (const char *zDate, DateTime *p) |
| |
| static void | computeJD (DateTime *p) |
| |
| static int | parseYyyyMmDd (const char *zDate, DateTime *p) |
| |
| static int | setDateTimeToCurrent (sqlite3_context *context, DateTime *p) |
| |
| static int | parseDateOrTime (sqlite3_context *context, const char *zDate, DateTime *p) |
| |
| static void | computeYMD (DateTime *p) |
| |
| static void | computeHMS (DateTime *p) |
| |
| static void | computeYMD_HMS (DateTime *p) |
| |
| static void | clearYMD_HMS_TZ (DateTime *p) |
| |
| static int | osLocaltime (time_t *t, struct tm *pTm) |
| |
| static sqlite3_int64 | localtimeOffset (DateTime *p, sqlite3_context *pCtx, int *pRc) |
| |
| static int | parseModifier (sqlite3_context *pCtx, const char *zMod, DateTime *p) |
| |
| static int | isDate (sqlite3_context *context, int argc, sqlite3_value **argv, DateTime *p) |
| |
| static void | juliandayFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | datetimeFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | timeFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | dateFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | strftimeFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | ctimeFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | cdateFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | ctimestampFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | vfsUnlink (sqlite3_vfs *pVfs) |
| |
| static void * | sqlite3MemMalloc (int nByte) |
| |
| static void | sqlite3MemFree (void *pPrior) |
| |
| static int | sqlite3MemSize (void *pPrior) |
| |
| static void * | sqlite3MemRealloc (void *pPrior, int nByte) |
| |
| static int | sqlite3MemRoundup (int n) |
| |
| static int | sqlite3MemInit (void *NotUsed) |
| |
| static void | sqlite3MemShutdown (void *NotUsed) |
| |
| static int | noopMutexInit (void) |
| |
| static int | noopMutexEnd (void) |
| |
| static sqlite3_mutex * | noopMutexAlloc (int id) |
| |
| static void | noopMutexFree (sqlite3_mutex *p) |
| |
| static void | noopMutexEnter (sqlite3_mutex *p) |
| |
| static int | noopMutexTry (sqlite3_mutex *p) |
| |
| static void | noopMutexLeave (sqlite3_mutex *p) |
| |
| static int | pthreadMutexInit (void) |
| |
| static int | pthreadMutexEnd (void) |
| |
| static sqlite3_mutex * | pthreadMutexAlloc (int iType) |
| |
| static void | pthreadMutexFree (sqlite3_mutex *p) |
| |
| static void | pthreadMutexEnter (sqlite3_mutex *p) |
| |
| static int | pthreadMutexTry (sqlite3_mutex *p) |
| |
| static void | pthreadMutexLeave (sqlite3_mutex *p) |
| |
| static void | softHeapLimitEnforcer (void *NotUsed, sqlite3_int64 NotUsed2, int allocSize) |
| |
| static int | sqlite3MemoryAlarm (void(*xCallback)(void *pArg, sqlite3_int64 used, int N), void *pArg, sqlite3_int64 iThreshold) |
| |
| SQLITE_API int | sqlite3_memory_alarm (void(*xCallback)(void *pArg, sqlite3_int64 used, int N), void *pArg, sqlite3_int64 iThreshold) |
| |
| static void | sqlite3MallocAlarm (int nByte) |
| |
| static int | mallocWithAlarm (int n, void **pp) |
| |
| static int | isLookaside (sqlite3 *db, void *p) |
| |
| static char | et_getdigit (LONGDOUBLE_TYPE *val, int *cnt) |
| |
| static void | renderLogMsg (int iErrCode, const char *zFormat, va_list ap) |
| |
| static u8 | randomByte (void) |
| |
| SQLITE_PRIVATE u32 | sqlite3Utf8Read (const unsigned char **pz) |
| |
| static int | compare2pow63 (const char *zNum, int incr) |
| |
| SQLITE_PRIVATE void | sqlite3Put4byte (unsigned char *p, u32 v) |
| |
| static void | logBadConnection (const char *zType) |
| |
| static unsigned int | strHash (const char *z, int nKey) |
| |
| static void | insertElement (Hash *pH, struct _ht *pEntry, HashElem *pNew) |
| |
| static int | rehash (Hash *pH, unsigned int new_size) |
| |
| static HashElem * | findElementGivenHash (const Hash *pH, const char *pKey, int nKey, unsigned int h) |
| |
| static void | removeElementGivenHash (Hash *pH, HashElem *elem, unsigned int h) |
| |
| static int | posixOpen (const char *zFile, int flags, int mode) |
| |
| static int | posixFchown (int fd, uid_t uid, gid_t gid) |
| |
| static int | openDirectory (const char *, int *) |
| |
| static int | unixSetSystemCall (sqlite3_vfs *pNotUsed, const char *zName, sqlite3_syscall_ptr pNewFunc) |
| |
| static sqlite3_syscall_ptr | unixGetSystemCall (sqlite3_vfs *pNotUsed, const char *zName) |
| |
| static const char * | unixNextSystemCall (sqlite3_vfs *p, const char *zName) |
| |
| static int | robust_open (const char *z, int f, mode_t m) |
| |
| static void | unixEnterMutex (void) |
| |
| static void | unixLeaveMutex (void) |
| |
| static int | robust_ftruncate (int h, sqlite3_int64 sz) |
| |
| static int | sqliteErrorFromPosixError (int posixError, int sqliteIOErr) |
| |
| static int | unixLogErrorAtLine (int errcode, const char *zFunc, const char *zPath, int iLine) |
| |
| static void | robust_close (unixFile *pFile, int h, int lineno) |
| |
| static void | closePendingFds (unixFile *pFile) |
| |
| static void | releaseInodeInfo (unixFile *pFile) |
| |
| static int | findInodeInfo (unixFile *pFile, unixInodeInfo **ppInode) |
| |
| static void | verifyDbFile (unixFile *pFile) |
| |
| static int | unixCheckReservedLock (sqlite3_file *id, int *pResOut) |
| |
| static int | unixFileLock (unixFile *pFile, struct flock *pLock) |
| |
| static int | unixLock (sqlite3_file *id, int eFileLock) |
| |
| static void | setPendingFd (unixFile *pFile) |
| |
| static int | posixUnlock (sqlite3_file *id, int eFileLock, int handleNFSUnlock) |
| |
| static int | unixUnlock (sqlite3_file *id, int eFileLock) |
| |
| static int | unixMapfile (unixFile *pFd, i64 nByte) |
| |
| static void | unixUnmapfile (unixFile *pFd) |
| |
| static int | closeUnixFile (sqlite3_file *id) |
| |
| static int | unixClose (sqlite3_file *id) |
| |
| static int | nolockCheckReservedLock (sqlite3_file *NotUsed, int *pResOut) |
| |
| static int | nolockLock (sqlite3_file *NotUsed, int NotUsed2) |
| |
| static int | nolockUnlock (sqlite3_file *NotUsed, int NotUsed2) |
| |
| static int | nolockClose (sqlite3_file *id) |
| |
| static int | dotlockCheckReservedLock (sqlite3_file *id, int *pResOut) |
| |
| static int | dotlockLock (sqlite3_file *id, int eFileLock) |
| |
| static int | dotlockUnlock (sqlite3_file *id, int eFileLock) |
| |
| static int | dotlockClose (sqlite3_file *id) |
| |
| static int | seekAndRead (unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt) |
| |
| static int | unixRead (sqlite3_file *id, void *pBuf, int amt, sqlite3_int64 offset) |
| |
| static int | seekAndWriteFd (int fd, i64 iOff, const void *pBuf, int nBuf, int *piErrno) |
| |
| static int | seekAndWrite (unixFile *id, i64 offset, const void *pBuf, int cnt) |
| |
| static int | unixWrite (sqlite3_file *id, const void *pBuf, int amt, sqlite3_int64 offset) |
| |
| static int | full_fsync (int fd, int fullSync, int dataOnly) |
| |
| static int | unixSync (sqlite3_file *id, int flags) |
| |
| static int | unixTruncate (sqlite3_file *id, i64 nByte) |
| |
| static int | unixFileSize (sqlite3_file *id, i64 *pSize) |
| |
| static int | fcntlSizeHint (unixFile *pFile, i64 nByte) |
| |
| static void | unixModeBit (unixFile *pFile, unsigned char mask, int *pArg) |
| |
| static int | unixGetTempname (int nBuf, char *zBuf) |
| |
| static int | unixFileControl (sqlite3_file *id, int op, void *pArg) |
| |
| static int | unixSectorSize (sqlite3_file *NotUsed) |
| |
| static int | unixDeviceCharacteristics (sqlite3_file *id) |
| |
| static int | unixShmSystemLock (unixShmNode *pShmNode, int lockType, int ofst, int n) |
| |
| static void | unixShmPurge (unixFile *pFd) |
| |
| static int | unixOpenSharedMemory (unixFile *pDbFd) |
| |
| static int | unixShmMap (sqlite3_file *fd, int iRegion, int szRegion, int bExtend, void volatile **pp) |
| |
| static int | unixShmLock (sqlite3_file *fd, int ofst, int n, int flags) |
| |
| static void | unixShmBarrier (sqlite3_file *fd) |
| |
| static int | unixShmUnmap (sqlite3_file *fd, int deleteFlag) |
| |
| static int | unixFetch (sqlite3_file *fd, i64 iOff, int nAmt, void **pp) |
| |
| static int | unixUnfetch (sqlite3_file *fd, i64 iOff, void *p) |
| |
| | IOMETHODS (posixIoFinder, posixIoMethods, 3, unixClose, unixLock, unixUnlock, unixCheckReservedLock) |
| |
| static const char * | unixTempFileDir (void) |
| |
| static UnixUnusedFd * | findReusableFd (const char *zPath, int flags) |
| |
| static int | findCreateFileMode (const char *zPath, int flags, mode_t *pMode, uid_t *pUid, gid_t *pGid) |
| |
| static int | unixOpen (sqlite3_vfs *pVfs, const char *zPath, sqlite3_file *pFile, int flags, int *pOutFlags) |
| |
| static int | unixDelete (sqlite3_vfs *NotUsed, const char *zPath, int dirSync) |
| |
| static int | unixAccess (sqlite3_vfs *NotUsed, const char *zPath, int flags, int *pResOut) |
| |
| static int | unixFullPathname (sqlite3_vfs *pVfs, const char *zPath, int nOut, char *zOut) |
| |
| static void * | unixDlOpen (sqlite3_vfs *NotUsed, const char *zFilename) |
| |
| static void | unixDlError (sqlite3_vfs *NotUsed, int nBuf, char *zBufOut) |
| |
| static void | unixDlClose (sqlite3_vfs *NotUsed, void *pHandle) |
| |
| static int | unixRandomness (sqlite3_vfs *NotUsed, int nBuf, char *zBuf) |
| |
| static int | unixSleep (sqlite3_vfs *NotUsed, int microseconds) |
| |
| static int | unixCurrentTimeInt64 (sqlite3_vfs *NotUsed, sqlite3_int64 *piNow) |
| |
| static int | unixCurrentTime (sqlite3_vfs *NotUsed, double *prNow) |
| |
| static int | unixGetLastError (sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3) |
| |
| static void | pcacheRemoveFromDirtyList (PgHdr *pPage) |
| |
| static void | pcacheAddToDirtyList (PgHdr *pPage) |
| |
| static void | pcacheUnpin (PgHdr *p) |
| |
| static int | numberOfCachePages (PCache *p) |
| |
| static PgHdr * | pcacheMergeDirtyList (PgHdr *pA, PgHdr *pB) |
| |
| static PgHdr * | pcacheSortDirtyList (PgHdr *pIn) |
| |
| static void * | pcache1Alloc (int nByte) |
| |
| static int | pcache1Free (void *p) |
| |
| static PgHdr1 * | pcache1AllocPage (PCache1 *pCache) |
| |
| static void | pcache1FreePage (PgHdr1 *p) |
| |
| static int | pcache1UnderMemoryPressure (PCache1 *pCache) |
| |
| static int | pcache1ResizeHash (PCache1 *p) |
| |
| static void | pcache1PinPage (PgHdr1 *pPage) |
| |
| static void | pcache1RemoveFromHash (PgHdr1 *pPage) |
| |
| static void | pcache1EnforceMaxPage (PGroup *pGroup) |
| |
| static void | pcache1TruncateUnsafe (PCache1 *pCache, unsigned int iLimit) |
| |
| static int | pcache1Init (void *NotUsed) |
| |
| static void | pcache1Shutdown (void *NotUsed) |
| |
| static sqlite3_pcache * | pcache1Create (int szPage, int szExtra, int bPurgeable) |
| |
| static void | pcache1Cachesize (sqlite3_pcache *p, int nMax) |
| |
| static void | pcache1Shrink (sqlite3_pcache *p) |
| |
| static int | pcache1Pagecount (sqlite3_pcache *p) |
| |
| static sqlite3_pcache_page * | pcache1Fetch (sqlite3_pcache *p, unsigned int iKey, int createFlag) |
| |
| static void | pcache1Unpin (sqlite3_pcache *p, sqlite3_pcache_page *pPg, int reuseUnlikely) |
| |
| static void | pcache1Rekey (sqlite3_pcache *p, sqlite3_pcache_page *pPg, unsigned int iOld, unsigned int iNew) |
| |
| static void | pcache1Truncate (sqlite3_pcache *p, unsigned int iLimit) |
| |
| static void | pcache1Destroy (sqlite3_pcache *p) |
| |
| static struct RowSetEntry * | rowSetEntryAlloc (RowSet *p) |
| |
| static struct RowSetEntry * | rowSetEntryMerge (struct RowSetEntry *pA, struct RowSetEntry *pB) |
| |
| static struct RowSetEntry * | rowSetEntrySort (struct RowSetEntry *pIn) |
| |
| static void | rowSetTreeToList (struct RowSetEntry *pIn, struct RowSetEntry **ppFirst, struct RowSetEntry **ppLast) |
| |
| static struct RowSetEntry * | rowSetNDeepTree (struct RowSetEntry **ppList, int iDepth) |
| |
| static struct RowSetEntry * | rowSetListToTree (struct RowSetEntry *pList) |
| |
| static void | rowSetToList (RowSet *p) |
| |
| SQLITE_PRIVATE int | sqlite3WalOpen (sqlite3_vfs *, sqlite3_file *, const char *, int, i64, Wal **) |
| |
| SQLITE_PRIVATE int | sqlite3WalClose (Wal *pWal, int sync_flags, int, u8 *) |
| |
| SQLITE_PRIVATE void | sqlite3WalLimit (Wal *, i64) |
| |
| SQLITE_PRIVATE int | sqlite3WalBeginReadTransaction (Wal *pWal, int *) |
| |
| SQLITE_PRIVATE void | sqlite3WalEndReadTransaction (Wal *pWal) |
| |
| SQLITE_PRIVATE int | sqlite3WalFindFrame (Wal *, Pgno, u32 *) |
| |
| SQLITE_PRIVATE int | sqlite3WalReadFrame (Wal *, u32, int, u8 *) |
| |
| SQLITE_PRIVATE Pgno | sqlite3WalDbsize (Wal *pWal) |
| |
| SQLITE_PRIVATE int | sqlite3WalBeginWriteTransaction (Wal *pWal) |
| |
| SQLITE_PRIVATE int | sqlite3WalEndWriteTransaction (Wal *pWal) |
| |
| SQLITE_PRIVATE int | sqlite3WalUndo (Wal *pWal, int(*xUndo)(void *, Pgno), void *pUndoCtx) |
| |
| SQLITE_PRIVATE void | sqlite3WalSavepoint (Wal *pWal, u32 *aWalData) |
| |
| SQLITE_PRIVATE int | sqlite3WalSavepointUndo (Wal *pWal, u32 *aWalData) |
| |
| SQLITE_PRIVATE int | sqlite3WalFrames (Wal *pWal, int, PgHdr *, Pgno, int, int) |
| |
| SQLITE_PRIVATE int | sqlite3WalCheckpoint (Wal *pWal, int eMode, int(*xBusy)(void *), void *pBusyArg, int sync_flags, int nBuf, u8 *zBuf, int *pnLog, int *pnCkpt) |
| |
| SQLITE_PRIVATE int | sqlite3WalCallback (Wal *pWal) |
| |
| SQLITE_PRIVATE int | sqlite3WalExclusiveMode (Wal *pWal, int op) |
| |
| SQLITE_PRIVATE int | sqlite3WalHeapMemory (Wal *pWal) |
| |
| static int | pagerUseWal (Pager *pPager) |
| |
| static int | subjRequiresPage (PgHdr *pPg) |
| |
| static int | pageInJournal (PgHdr *pPg) |
| |
| static int | read32bits (sqlite3_file *fd, i64 offset, u32 *pRes) |
| |
| static int | write32bits (sqlite3_file *fd, i64 offset, u32 val) |
| |
| static int | pagerUnlockDb (Pager *pPager, int eLock) |
| |
| static int | pagerLockDb (Pager *pPager, int eLock) |
| |
| static int | readMasterJournal (sqlite3_file *pJrnl, char *zMaster, u32 nMaster) |
| |
| static i64 | journalHdrOffset (Pager *pPager) |
| |
| static int | zeroJournalHdr (Pager *pPager, int doTruncate) |
| |
| static int | writeJournalHdr (Pager *pPager) |
| |
| static int | readJournalHdr (Pager *pPager, int isHot, i64 journalSize, u32 *pNRec, u32 *pDbSize) |
| |
| static int | writeMasterJournal (Pager *pPager, const char *zMaster) |
| |
| static PgHdr * | pager_lookup (Pager *pPager, Pgno pgno) |
| |
| static void | pager_reset (Pager *pPager) |
| |
| static void | releaseAllSavepoints (Pager *pPager) |
| |
| static int | addToSavepointBitvecs (Pager *pPager, Pgno pgno) |
| |
| static void | pager_unlock (Pager *pPager) |
| |
| static int | pager_error (Pager *pPager, int rc) |
| |
| static int | pager_truncate (Pager *pPager, Pgno nPage) |
| |
| static int | pager_end_transaction (Pager *pPager, int hasMaster, int bCommit) |
| |
| static void | pagerUnlockAndRollback (Pager *pPager) |
| |
| static u32 | pager_cksum (Pager *pPager, const u8 *aData) |
| |
| static int | pager_playback_one_page (Pager *pPager, i64 *pOffset, Bitvec *pDone, int isMainJrnl, int isSavepnt) |
| |
| static int | pager_delmaster (Pager *pPager, const char *zMaster) |
| |
| static void | setSectorSize (Pager *pPager) |
| |
| static int | pager_playback (Pager *pPager, int isHot) |
| |
| static int | readDbPage (PgHdr *pPg, u32 iFrame) |
| |
| static void | pager_write_changecounter (PgHdr *pPg) |
| |
| static int | pagerUndoCallback (void *pCtx, Pgno iPg) |
| |
| static int | pagerRollbackWal (Pager *pPager) |
| |
| static int | pagerWalFrames (Pager *pPager, PgHdr *pList, Pgno nTruncate, int isCommit) |
| |
| static int | pagerBeginReadTransaction (Pager *pPager) |
| |
| static int | pagerPagecount (Pager *pPager, Pgno *pnPage) |
| |
| static int | pagerOpenWalIfPresent (Pager *pPager) |
| |
| static int | pagerPlaybackSavepoint (Pager *pPager, PagerSavepoint *pSavepoint) |
| |
| static void | pagerFixMaplimit (Pager *pPager) |
| |
| static int | pagerOpentemp (Pager *pPager, sqlite3_file *pFile, int vfsFlags) |
| |
| static int | pager_wait_on_lock (Pager *pPager, int locktype) |
| |
| static int | pagerSyncHotJournal (Pager *pPager) |
| |
| static int | pagerAcquireMapPage (Pager *pPager, Pgno pgno, void *pData, PgHdr **ppPage) |
| |
| static void | pagerReleaseMapPage (PgHdr *pPg) |
| |
| static void | pagerFreeMapHdrs (Pager *pPager) |
| |
| static int | syncJournal (Pager *pPager, int newHdr) |
| |
| static int | pager_write_pagelist (Pager *pPager, PgHdr *pList) |
| |
| static int | openSubJournal (Pager *pPager) |
| |
| static int | subjournalPage (PgHdr *pPg) |
| |
| static int | pagerStress (void *p, PgHdr *pPg) |
| |
| static int | hasHotJournal (Pager *pPager, int *pExists) |
| |
| static void | pagerUnlockIfUnused (Pager *pPager) |
| |
| static int | pager_open_journal (Pager *pPager) |
| |
| static int | pager_write (PgHdr *pPg) |
| |
| static int | pager_incr_changecounter (Pager *pPager, int isDirectMode) |
| |
| static int | pagerExclusiveLock (Pager *pPager) |
| |
| static int | pagerOpenWal (Pager *pPager) |
| |
| static int | walIndexPage (Wal *pWal, int iPage, volatile u32 **ppPage) |
| |
| static volatile WalCkptInfo * | walCkptInfo (Wal *pWal) |
| |
| static volatile WalIndexHdr * | walIndexHdr (Wal *pWal) |
| |
| static void | walChecksumBytes (int nativeCksum, u8 *a, int nByte, const u32 *aIn, u32 *aOut) |
| |
| static void | walShmBarrier (Wal *pWal) |
| |
| static void | walIndexWriteHdr (Wal *pWal) |
| |
| static void | walEncodeFrame (Wal *pWal, u32 iPage, u32 nTruncate, u8 *aData, u8 *aFrame) |
| |
| static int | walDecodeFrame (Wal *pWal, u32 *piPage, u32 *pnTruncate, u8 *aData, u8 *aFrame) |
| |
| static int | walLockShared (Wal *pWal, int lockIdx) |
| |
| static void | walUnlockShared (Wal *pWal, int lockIdx) |
| |
| static int | walLockExclusive (Wal *pWal, int lockIdx, int n) |
| |
| static void | walUnlockExclusive (Wal *pWal, int lockIdx, int n) |
| |
| static int | walHash (u32 iPage) |
| |
| static int | walNextHash (int iPriorHash) |
| |
| static int | walHashGet (Wal *pWal, int iHash, volatile ht_slot **paHash, volatile u32 **paPgno, u32 *piZero) |
| |
| static int | walFramePage (u32 iFrame) |
| |
| static u32 | walFramePgno (Wal *pWal, u32 iFrame) |
| |
| static void | walCleanupHash (Wal *pWal) |
| |
| static int | walIndexAppend (Wal *pWal, u32 iFrame, u32 iPage) |
| |
| static int | walIndexRecover (Wal *pWal) |
| |
| static void | walIndexClose (Wal *pWal, int isDelete) |
| |
| static int | walIteratorNext (WalIterator *p, u32 *piPage, u32 *piFrame) |
| |
| static void | walMerge (const u32 *aContent, ht_slot *aLeft, int nLeft, ht_slot **paRight, int *pnRight, ht_slot *aTmp) |
| |
| static void | walMergesort (const u32 *aContent, ht_slot *aBuffer, ht_slot *aList, int *pnList) |
| |
| static void | walIteratorFree (WalIterator *p) |
| |
| static int | walIteratorInit (Wal *pWal, WalIterator **pp) |
| |
| static int | walBusyLock (Wal *pWal, int(*xBusy)(void *), void *pBusyArg, int lockIdx, int n) |
| |
| static int | walPagesize (Wal *pWal) |
| |
| static int | walCheckpoint (Wal *pWal, int eMode, int(*xBusyCall)(void *), void *pBusyArg, int sync_flags, u8 *zBuf) |
| |
| static void | walLimitSize (Wal *pWal, i64 nMax) |
| |
| static int | walIndexTryHdr (Wal *pWal, int *pChanged) |
| |
| static int | walIndexReadHdr (Wal *pWal, int *pChanged) |
| |
| static int | walTryBeginRead (Wal *pWal, int *pChanged, int useWal, int cnt) |
| |
| static int | walRestartLog (Wal *pWal) |
| |
| static int | walWriteToLog (WalWriter *p, void *pContent, int iAmt, sqlite3_int64 iOffset) |
| |
| static int | walWriteOneFrame (WalWriter *p, PgHdr *pPage, int nTruncate, sqlite3_int64 iOffset) |
| |
| static void | lockBtreeMutex (Btree *p) |
| |
| static void | unlockBtreeMutex (Btree *p) |
| |
| static int | querySharedCacheTableLock (Btree *p, Pgno iTab, u8 eLock) |
| |
| static int | setSharedCacheTableLock (Btree *p, Pgno iTable, u8 eLock) |
| |
| static void | clearAllSharedCacheTableLocks (Btree *p) |
| |
| static void | downgradeAllSharedCacheTableLocks (Btree *p) |
| |
| static void | releasePage (MemPage *pPage) |
| |
| static void | invalidateOverflowCache (BtCursor *pCur) |
| |
| static void | invalidateAllOverflowCache (BtShared *pBt) |
| |
| static void | invalidateIncrblobCursors (Btree *pBtree, i64 iRow, int isClearTable) |
| |
| static int | btreeSetHasContent (BtShared *pBt, Pgno pgno) |
| |
| static int | btreeGetHasContent (BtShared *pBt, Pgno pgno) |
| |
| static void | btreeClearHasContent (BtShared *pBt) |
| |
| static void | btreeReleaseAllCursorPages (BtCursor *pCur) |
| |
| static int | saveCursorPosition (BtCursor *pCur) |
| |
| static int | saveAllCursors (BtShared *pBt, Pgno iRoot, BtCursor *pExcept) |
| |
| static int | btreeMoveto (BtCursor *pCur, const void *pKey, i64 nKey, int bias, int *pRes) |
| |
| static int | btreeRestoreCursorPosition (BtCursor *pCur) |
| |
| static Pgno | ptrmapPageno (BtShared *pBt, Pgno pgno) |
| |
| static void | ptrmapPut (BtShared *pBt, Pgno key, u8 eType, Pgno parent, int *pRC) |
| |
| static int | ptrmapGet (BtShared *pBt, Pgno key, u8 *pEType, Pgno *pPgno) |
| |
| static u8 * | findOverflowCell (MemPage *pPage, int iCell) |
| |
| static void | btreeParseCellPtr (MemPage *pPage, u8 *pCell, CellInfo *pInfo) |
| |
| static void | btreeParseCell (MemPage *pPage, int iCell, CellInfo *pInfo) |
| |
| static u16 | cellSizePtr (MemPage *pPage, u8 *pCell) |
| |
| static void | ptrmapPutOvflPtr (MemPage *pPage, u8 *pCell, int *pRC) |
| |
| static int | defragmentPage (MemPage *pPage) |
| |
| static int | allocateSpace (MemPage *pPage, int nByte, int *pIdx) |
| |
| static int | freeSpace (MemPage *pPage, int start, int size) |
| |
| static int | decodeFlags (MemPage *pPage, int flagByte) |
| |
| static int | btreeInitPage (MemPage *pPage) |
| |
| static void | zeroPage (MemPage *pPage, int flags) |
| |
| static MemPage * | btreePageFromDbPage (DbPage *pDbPage, Pgno pgno, BtShared *pBt) |
| |
| static int | btreeGetPage (BtShared *pBt, Pgno pgno, MemPage **ppPage, int noContent, int bReadonly) |
| |
| static MemPage * | btreePageLookup (BtShared *pBt, Pgno pgno) |
| |
| static Pgno | btreePagecount (BtShared *pBt) |
| |
| static int | getAndInitPage (BtShared *pBt, Pgno pgno, MemPage **ppPage, int bReadonly) |
| |
| static void | pageReinit (DbPage *pData) |
| |
| static int | btreeInvokeBusyHandler (void *pArg) |
| |
| static int | removeFromSharingList (BtShared *pBt) |
| |
| static void | allocateTempSpace (BtShared *pBt) |
| |
| static void | freeTempSpace (BtShared *pBt) |
| |
| static int | lockBtree (BtShared *pBt) |
| |
| static void | unlockBtreeIfUnused (BtShared *pBt) |
| |
| static int | newDatabase (BtShared *pBt) |
| |
| static int | setChildPtrmaps (MemPage *pPage) |
| |
| static int | modifyPagePointer (MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType) |
| |
| static int | relocatePage (BtShared *pBt, MemPage *pDbPage, u8 eType, Pgno iPtrPage, Pgno iFreePage, int isCommit) |
| |
| static int | allocateBtreePage (BtShared *, MemPage **, Pgno *, Pgno, u8) |
| |
| static int | incrVacuumStep (BtShared *pBt, Pgno nFin, Pgno iLastPg, int bCommit) |
| |
| static Pgno | finalDbSize (BtShared *pBt, Pgno nOrig, Pgno nFree) |
| |
| static int | autoVacuumCommit (BtShared *pBt) |
| |
| static void | btreeEndTransaction (Btree *p) |
| |
| static int | btreeCursor (Btree *p, int iTable, int wrFlag, struct KeyInfo *pKeyInfo, BtCursor *pCur) |
| |
| static int | getOverflowPage (BtShared *pBt, Pgno ovfl, MemPage **ppPage, Pgno *pPgnoNext) |
| |
| static int | copyPayload (void *pPayload, void *pBuf, int nByte, int eOp, DbPage *pDbPage) |
| |
| static int | accessPayload (BtCursor *pCur, u32 offset, u32 amt, unsigned char *pBuf, int eOp) |
| |
| static const unsigned char * | fetchPayload (BtCursor *pCur, int *pAmt, int skipKey) |
| |
| static int | moveToChild (BtCursor *pCur, u32 newPgno) |
| |
| static void | moveToParent (BtCursor *pCur) |
| |
| static int | moveToRoot (BtCursor *pCur) |
| |
| static int | moveToLeftmost (BtCursor *pCur) |
| |
| static int | moveToRightmost (BtCursor *pCur) |
| |
| static int | freePage2 (BtShared *pBt, MemPage *pMemPage, Pgno iPage) |
| |
| static void | freePage (MemPage *pPage, int *pRC) |
| |
| static int | clearCell (MemPage *pPage, unsigned char *pCell) |
| |
| static int | fillInCell (MemPage *pPage, unsigned char *pCell, const void *pKey, i64 nKey, const void *pData, int nData, int nZero, int *pnSize) |
| |
| static void | dropCell (MemPage *pPage, int idx, int sz, int *pRC) |
| |
| static void | insertCell (MemPage *pPage, int i, u8 *pCell, int sz, u8 *pTemp, Pgno iChild, int *pRC) |
| |
| static void | assemblePage (MemPage *pPage, int nCell, u8 **apCell, u16 *aSize) |
| |
| static int | balance_quick (MemPage *pParent, MemPage *pPage, u8 *pSpace) |
| |
| static void | copyNodeContent (MemPage *pFrom, MemPage *pTo, int *pRC) |
| |
| static int | balance_nonroot (MemPage *pParent, int iParentIdx, u8 *aOvflSpace, int isRoot, int bBulk) |
| |
| static int | balance_deeper (MemPage *pRoot, MemPage **ppChild) |
| |
| static int | balance (BtCursor *pCur) |
| |
| static int | btreeCreateTable (Btree *p, int *piTable, int createTabFlags) |
| |
| static int | clearDatabasePage (BtShared *pBt, Pgno pgno, int freePageFlag, int *pnChange) |
| |
| static int | btreeDropTable (Btree *p, Pgno iTable, int *piMoved) |
| |
| static void | checkAppendMsg (IntegrityCk *pCheck, char *zMsg1, const char *zFormat,...) |
| |
| static int | getPageReferenced (IntegrityCk *pCheck, Pgno iPg) |
| |
| static void | setPageReferenced (IntegrityCk *pCheck, Pgno iPg) |
| |
| static int | checkRef (IntegrityCk *pCheck, Pgno iPage, char *zContext) |
| |
| static void | checkPtrmap (IntegrityCk *pCheck, Pgno iChild, u8 eType, Pgno iParent, char *zContext) |
| |
| static void | checkList (IntegrityCk *pCheck, int isFreeList, int iPage, int N, char *zContext) |
| |
| static int | checkTreePage (IntegrityCk *pCheck, int iPage, char *zParentContext, i64 *pnParentMinKey, i64 *pnParentMaxKey) |
| |
| static Btree * | findBtree (sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb) |
| |
| static int | setDestPgsz (sqlite3_backup *p) |
| |
| static int | isFatalError (int rc) |
| |
| static int | backupOnePage (sqlite3_backup *p, Pgno iSrcPg, const u8 *zSrcData, int bUpdate) |
| |
| static int | backupTruncateFile (sqlite3_file *pFile, i64 iSize) |
| |
| static void | attachBackupObject (sqlite3_backup *p) |
| |
| static i64 | doubleToInt64 (double r) |
| |
| static int | growOpArray (Vdbe *p) |
| |
| static void | resolveP2Values (Vdbe *p, int *pMaxFuncArgs) |
| |
| static void | freeEphemeralFunction (sqlite3 *db, FuncDef *pDef) |
| |
| static void | vdbeFreeOpArray (sqlite3 *, Op *, int) |
| |
| static void | freeP4 (sqlite3 *db, int p4type, void *p4) |
| |
| static char * | displayP4 (Op *pOp, char *zTemp, int nTemp) |
| |
| static void | releaseMemArray (Mem *p, int N) |
| |
| static void * | allocSpace (void *pBuf, int nByte, u8 **ppFrom, u8 *pEnd, int *pnByte) |
| |
| static void | closeAllCursors (Vdbe *p) |
| |
| static void | Cleanup (Vdbe *p) |
| |
| static int | vdbeCommit (sqlite3 *db, Vdbe *p) |
| |
| SQLITE_PRIVATE u32 | sqlite3VdbeSerialPut (u8 *buf, int nBuf, Mem *pMem, int file_format) |
| |
| static int | vdbeSafety (Vdbe *p) |
| |
| static int | vdbeSafetyNotNull (Vdbe *p) |
| |
| static void | setResultStrOrError (sqlite3_context *pCtx, const char *z, int n, u8 enc, void(*xDel)(void *)) |
| |
| static int | doWalCallbacks (sqlite3 *db) |
| |
| static int | sqlite3Step (Vdbe *p) |
| |
| static Mem * | columnMem (sqlite3_stmt *pStmt, int i) |
| |
| static void | columnMallocFailure (sqlite3_stmt *pStmt) |
| |
| static const void * | columnName (sqlite3_stmt *pStmt, int N, const void *(*xFunc)(Mem *), int useType) |
| |
| static int | vdbeUnbind (Vdbe *p, int i) |
| |
| static int | bindText (sqlite3_stmt *pStmt, int i, const void *zData, int nData, void(*xDel)(void *), u8 encoding) |
| |
| static int | findNextHostParameter (const char *zSql, int *pnToken) |
| |
| static VdbeCursor * | allocateCursor (Vdbe *p, int iCur, int nField, int iDb, int isBtreeCursor) |
| |
| static void | applyNumericAffinity (Mem *pRec) |
| |
| static void | applyAffinity (Mem *pRec, char affinity, u8 enc) |
| |
| static void | importVtabErrMsg (Vdbe *p, sqlite3_vtab *pVtab) |
| |
| static int | blobSeekToRow (Incrblob *p, sqlite3_int64 iRow, char **pzErr) |
| |
| static int | blobReadWrite (sqlite3_blob *pBlob, void *z, int n, int iOffset, int(*xCall)(BtCursor *, u32, u32, void *)) |
| |
| static void | vdbeSorterIterZero (sqlite3 *db, VdbeSorterIter *pIter) |
| |
| static int | vdbeSorterIterRead (sqlite3 *db, VdbeSorterIter *p, int nByte, u8 **ppOut) |
| |
| static int | vdbeSorterIterVarint (sqlite3 *db, VdbeSorterIter *p, u64 *pnOut) |
| |
| static int | vdbeSorterIterNext (sqlite3 *db, VdbeSorterIter *pIter) |
| |
| static int | vdbeSorterIterInit (sqlite3 *db, const VdbeSorter *pSorter, i64 iStart, VdbeSorterIter *pIter, i64 *pnByte) |
| |
| static void | vdbeSorterCompare (const VdbeCursor *pCsr, int bOmitRowid, const void *pKey1, int nKey1, const void *pKey2, int nKey2, int *pRes) |
| |
| static int | vdbeSorterDoCompare (const VdbeCursor *pCsr, int iOut) |
| |
| static void | vdbeSorterRecordFree (sqlite3 *db, SorterRecord *pRecord) |
| |
| static int | vdbeSorterOpenTempFile (sqlite3 *db, sqlite3_file **ppFile) |
| |
| static void | vdbeSorterMerge (const VdbeCursor *pCsr, SorterRecord *p1, SorterRecord *p2, SorterRecord **ppOut) |
| |
| static int | vdbeSorterSort (const VdbeCursor *pCsr) |
| |
| static void | fileWriterInit (sqlite3 *db, sqlite3_file *pFile, FileWriter *p, i64 iStart) |
| |
| static void | fileWriterWrite (FileWriter *p, u8 *pData, int nData) |
| |
| static int | fileWriterFinish (sqlite3 *db, FileWriter *p, i64 *piEof) |
| |
| static void | fileWriterWriteVarint (FileWriter *p, u64 iVal) |
| |
| static int | vdbeSorterListToPMA (sqlite3 *db, const VdbeCursor *pCsr) |
| |
| static int | vdbeSorterInitMerge (sqlite3 *db, const VdbeCursor *pCsr, i64 *pnByte) |
| |
| static void * | vdbeSorterRowkey (const VdbeSorter *pSorter, int *pnKey) |
| |
| static int | memjrnlRead (sqlite3_file *pJfd, void *zBuf, int iAmt, sqlite_int64 iOfst) |
| |
| static int | memjrnlWrite (sqlite3_file *pJfd, const void *zBuf, int iAmt, sqlite_int64 iOfst) |
| |
| static int | memjrnlTruncate (sqlite3_file *pJfd, sqlite_int64 size) |
| |
| static int | memjrnlClose (sqlite3_file *pJfd) |
| |
| static int | memjrnlSync (sqlite3_file *NotUsed, int NotUsed2) |
| |
| static int | memjrnlFileSize (sqlite3_file *pJfd, sqlite_int64 *pSize) |
| |
| static int | incrAggDepth (Walker *pWalker, Expr *pExpr) |
| |
| static void | incrAggFunctionDepth (Expr *pExpr, int N) |
| |
| static void | resolveAlias (Parse *pParse, ExprList *pEList, int iCol, Expr *pExpr, const char *zType, int nSubquery) |
| |
| static int | nameInUsingClause (IdList *pUsing, const char *zCol) |
| |
| static int | lookupName (Parse *pParse, const char *zDb, const char *zTab, const char *zCol, NameContext *pNC, Expr *pExpr) |
| |
| static int | resolveExprStep (Walker *pWalker, Expr *pExpr) |
| |
| static int | resolveAsName (Parse *pParse, ExprList *pEList, Expr *pE) |
| |
| static int | resolveOrderByTermToExprList (Parse *pParse, Select *pSelect, Expr *pE) |
| |
| static void | resolveOutOfRangeError (Parse *pParse, const char *zType, int i, int mx) |
| |
| static int | resolveCompoundOrderBy (Parse *pParse, Select *pSelect) |
| |
| static int | resolveOrderGroupBy (NameContext *pNC, Select *pSelect, ExprList *pOrderBy, const char *zType) |
| |
| static int | resolveSelectStep (Walker *pWalker, Select *p) |
| |
| static char | comparisonAffinity (Expr *pExpr) |
| |
| static u8 | binaryCompareP5 (Expr *pExpr1, Expr *pExpr2, int jumpIfNull) |
| |
| static int | codeCompare (Parse *pParse, Expr *pLeft, Expr *pRight, int opcode, int in1, int in2, int dest, int jumpIfNull) |
| |
| static void | heightOfExpr (Expr *p, int *pnHeight) |
| |
| static void | heightOfExprList (ExprList *p, int *pnHeight) |
| |
| static void | heightOfSelect (Select *p, int *pnHeight) |
| |
| static void | exprSetHeight (Expr *p) |
| |
| static int | exprAlwaysFalse (Expr *p) |
| |
| static int | exprStructSize (Expr *p) |
| |
| static int | dupedExprStructSize (Expr *p, int flags) |
| |
| static int | dupedExprNodeSize (Expr *p, int flags) |
| |
| static int | dupedExprSize (Expr *p, int flags) |
| |
| static Expr * | exprDup (sqlite3 *db, Expr *p, int flags, u8 **pzBuffer) |
| |
| static int | exprNodeIsConstant (Walker *pWalker, Expr *pExpr) |
| |
| static int | selectNodeIsConstant (Walker *pWalker, Select *NotUsed) |
| |
| static int | exprIsConst (Expr *p, int initFlag) |
| |
| static int | isCandidateForInOpt (Select *p) |
| |
| static void | sqlite3ExprCodeIN (Parse *pParse, Expr *pExpr, int destIfFalse, int destIfNull) |
| |
| static char * | dup8bytes (Vdbe *v, const char *in) |
| |
| static void | codeReal (Vdbe *v, const char *z, int negateFlag, int iMem) |
| |
| static void | codeInteger (Parse *pParse, Expr *pExpr, int negFlag, int iMem) |
| |
| static void | cacheEntryClear (Parse *pParse, struct yColCache *p) |
| |
| static void | sqlite3ExprCachePinRegister (Parse *pParse, int iReg) |
| |
| static int | isAppropriateForFactoring (Expr *p) |
| |
| static int | evalConstExpr (Walker *pWalker, Expr *pExpr) |
| |
| static void | exprCodeBetween (Parse *pParse, Expr *pExpr, int dest, int jumpIfTrue, int jumpIfNull) |
| |
| static int | exprSrcCount (Walker *pWalker, Expr *pExpr) |
| |
| static int | addAggInfoColumn (sqlite3 *db, AggInfo *pInfo) |
| |
| static int | addAggInfoFunc (sqlite3 *db, AggInfo *pInfo) |
| |
| static int | analyzeAggregate (Walker *pWalker, Expr *pExpr) |
| |
| static int | analyzeAggregatesInSelect (Walker *pWalker, Select *pSelect) |
| |
| static void | renameTableFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | renameParentFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | renameTriggerFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static char * | whereOrName (sqlite3 *db, char *zWhere, char *zConstant) |
| |
| static char * | whereForeignKeys (Parse *pParse, Table *pTab) |
| |
| static char * | whereTempTriggers (Parse *pParse, Table *pTab) |
| |
| static void | reloadTableSchema (Parse *pParse, Table *pTab, const char *zName) |
| |
| static int | isSystemTable (Parse *pParse, const char *zName) |
| |
| static void | openStatTable (Parse *pParse, int iDb, int iStatCur, const char *zWhere, const char *zWhereType) |
| |
| static void | analyzeOneTable (Parse *pParse, Table *pTab, Index *pOnlyIdx, int iStatCur, int iMem) |
| |
| static void | loadAnalysis (Parse *pParse, int iDb) |
| |
| static void | analyzeDatabase (Parse *pParse, int iDb) |
| |
| static void | analyzeTable (Parse *pParse, Table *pTab, Index *pOnlyIdx) |
| |
| static int | analysisLoader (void *pData, int argc, char **argv, char **NotUsed) |
| |
| static int | resolveAttachExpr (NameContext *pName, Expr *pExpr) |
| |
| static void | attachFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | detachFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | codeAttach (Parse *pParse, int type, FuncDef const *pFunc, Expr *pAuthArg, Expr *pFilename, Expr *pDbname, Expr *pKey) |
| |
| static void | sqliteAuthBadReturnCode (Parse *pParse) |
| |
| static void | codeTableLocks (Parse *pParse) |
| |
| static void | freeIndex (sqlite3 *db, Index *p) |
| |
| static void | sqliteDeleteColumnNames (sqlite3 *db, Table *pTable) |
| |
| static int | identLength (const char *z) |
| |
| static void | identPut (char *z, int *pIdx, char *zSignedIdent) |
| |
| static char * | createTableStmt (sqlite3 *db, Table *p) |
| |
| static void | sqliteViewResetAll (sqlite3 *db, int idx) |
| |
| static void | destroyRootPage (Parse *pParse, int iTable, int iDb) |
| |
| static void | destroyTable (Parse *pParse, Table *pTab) |
| |
| static void | sqlite3ClearStatTables (Parse *pParse, int iDb, const char *zType, const char *zName) |
| |
| static void | sqlite3RefillIndex (Parse *pParse, Index *pIndex, int memRootPage) |
| |
| static int | collationMatch (const char *zColl, Index *pIndex) |
| |
| static void | reindexTable (Parse *pParse, Table *pTab, char const *zColl) |
| |
| static void | reindexDatabases (Parse *pParse, char const *zColl) |
| |
| static void | callCollNeeded (sqlite3 *db, int enc, const char *zName) |
| |
| static int | synthCollSeq (sqlite3 *db, CollSeq *pColl) |
| |
| static CollSeq * | findCollSeqEntry (sqlite3 *db, const char *zName, int create) |
| |
| static int | matchQuality (FuncDef *p, int nArg, u8 enc) |
| |
| static FuncDef * | functionSearch (FuncDefHash *pHash, int h, const char *zFunc, int nFunc) |
| |
| static CollSeq * | sqlite3GetFuncCollSeq (sqlite3_context *context) |
| |
| static void | sqlite3SkipAccumulatorLoad (sqlite3_context *context) |
| |
| static void | minmaxFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | typeofFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | lengthFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | absFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | instrFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | substrFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | roundFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void * | contextMalloc (sqlite3_context *context, i64 nByte) |
| |
| static void | upperFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | lowerFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | randomFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | randomBlob (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | last_insert_rowid (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | changes (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | total_changes (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static int | patternCompare (const u8 *zPattern, const u8 *zString, const struct compareInfo *pInfo, u32 esc) |
| |
| static void | likeFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | nullifFunc (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | versionFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | sourceidFunc (sqlite3_context *context, int NotUsed, sqlite3_value **NotUsed2) |
| |
| static void | errlogFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | compileoptionusedFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | compileoptiongetFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | quoteFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | unicodeFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | charFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | hexFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | zeroblobFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | replaceFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | trimFunc (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | loadExt (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | sumStep (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | sumFinalize (sqlite3_context *context) |
| |
| static void | avgFinalize (sqlite3_context *context) |
| |
| static void | totalFinalize (sqlite3_context *context) |
| |
| static void | countStep (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | countFinalize (sqlite3_context *context) |
| |
| static void | minmaxStep (sqlite3_context *context, int NotUsed, sqlite3_value **argv) |
| |
| static void | minMaxFinalize (sqlite3_context *context) |
| |
| static void | groupConcatStep (sqlite3_context *context, int argc, sqlite3_value **argv) |
| |
| static void | groupConcatFinalize (sqlite3_context *context) |
| |
| static void | setLikeOptFlag (sqlite3 *db, const char *zName, u8 flagVal) |
| |
| static void | fkLookupParent (Parse *pParse, int iDb, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr, int isIgnore) |
| |
| static void | fkScanChildren (Parse *pParse, SrcList *pSrc, Table *pTab, Index *pIdx, FKey *pFKey, int *aiCol, int regData, int nIncr) |
| |
| static void | fkTriggerDelete (sqlite3 *dbMem, Trigger *p) |
| |
| static Trigger * | fkActionTrigger (Parse *pParse, Table *pTab, FKey *pFKey, ExprList *pChanges) |
| |
| static int | readsTable (Parse *p, int iStartAddr, int iDb, Table *pTab) |
| |
| static int | autoIncBegin (Parse *pParse, int iDb, Table *pTab) |
| |
| static void | autoIncStep (Parse *pParse, int memId, int regRowid) |
| |
| static int | xferOptimization (Parse *pParse, Table *pDest, Select *pSelect, int onError, int iDbDest) |
| |
| static int | xferCompatibleCollation (const char *z1, const char *z2) |
| |
| static int | xferCompatibleIndex (Index *pDest, Index *pSrc) |
| |
| static int | sqlite3LoadExtension (sqlite3 *db, const char *zFile, const char *zProc, char **pzErrMsg) |
| |
| static u8 | getSafetyLevel (const char *z, int omitFull, int dflt) |
| |
| static int | getLockingMode (const char *z) |
| |
| static int | getAutoVacuum (const char *z) |
| |
| static int | getTempStore (const char *z) |
| |
| static int | invalidateTempStorage (Parse *pParse) |
| |
| static int | changeTempStorage (Parse *pParse, const char *zStorageType) |
| |
| static void | returnSingleInt (Parse *pParse, const char *zLabel, i64 value) |
| |
| static int | flagPragma (Parse *pParse, const char *zLeft, const char *zRight) |
| |
| static const char * | actionName (u8 action) |
| |
| static void | corruptSchema (InitData *pData, const char *zObj, const char *zExtra) |
| |
| static int | sqlite3InitOne (sqlite3 *db, int iDb, char **pzErrMsg) |
| |
| static void | schemaIsValid (Parse *pParse) |
| |
| static int | sqlite3Prepare (sqlite3 *db, const char *zSql, int nBytes, int saveSqlFlag, Vdbe *pReprepare, sqlite3_stmt **ppStmt, const char **pzTail) |
| |
| static int | sqlite3LockAndPrepare (sqlite3 *db, const char *zSql, int nBytes, int saveSqlFlag, Vdbe *pOld, sqlite3_stmt **ppStmt, const char **pzTail) |
| |
| static int | sqlite3Prepare16 (sqlite3 *db, const void *zSql, int nBytes, int saveSqlFlag, sqlite3_stmt **ppStmt, const void **pzTail) |
| |
| static void | clearSelect (sqlite3 *db, Select *p) |
| |
| static int | columnIndex (Table *pTab, const char *zCol) |
| |
| static int | tableAndColumnIndex (SrcList *pSrc, int N, const char *zCol, int *piTab, int *piCol) |
| |
| static void | addWhereTerm (Parse *pParse, SrcList *pSrc, int iLeft, int iColLeft, int iRight, int iColRight, int isOuterJoin, Expr **ppWhere) |
| |
| static void | setJoinExpr (Expr *p, int iTable) |
| |
| static int | sqliteProcessJoin (Parse *pParse, Select *p) |
| |
| static void | pushOntoSorter (Parse *pParse, ExprList *pOrderBy, Select *pSelect, int regData) |
| |
| static void | codeOffset (Vdbe *v, Select *p, int iContinue) |
| |
| static void | codeDistinct (Parse *pParse, int iTab, int addrRepeat, int N, int iMem) |
| |
| static int | checkForMultiColumnSelectError (Parse *pParse, SelectDest *pDest, int nExpr) |
| |
| static void | selectInnerLoop (Parse *pParse, Select *p, ExprList *pEList, int srcTab, int nColumn, ExprList *pOrderBy, DistinctCtx *pDistinct, SelectDest *pDest, int iContinue, int iBreak) |
| |
| static KeyInfo * | keyInfoFromExprList (Parse *pParse, ExprList *pList) |
| |
| static const char * | selectOpName (int id) |
| |
| static void | explainTempTable (Parse *pParse, const char *zUsage) |
| |
| static void | explainComposite (Parse *pParse, int op, int iSub1, int iSub2, int bUseTmp) |
| |
| static void | generateSortTail (Parse *pParse, Select *p, Vdbe *v, int nColumn, SelectDest *pDest) |
| |
| static const char * | columnType (NameContext *pNC, Expr *pExpr, const char **pzOriginDb, const char **pzOriginTab, const char **pzOriginCol) |
| |
| static void | generateColumnTypes (Parse *pParse, SrcList *pTabList, ExprList *pEList) |
| |
| static void | generateColumnNames (Parse *pParse, SrcList *pTabList, ExprList *pEList) |
| |
| static int | selectColumnsFromExprList (Parse *pParse, ExprList *pEList, i16 *pnCol, Column **paCol) |
| |
| static void | selectAddColumnTypeAndCollation (Parse *pParse, int nCol, Column *aCol, Select *pSelect) |
| |
| static void | computeLimitRegisters (Parse *pParse, Select *p, int iBreak) |
| |
| static CollSeq * | multiSelectCollSeq (Parse *pParse, Select *p, int iCol) |
| |
| static int | multiSelectOrderBy (Parse *pParse, Select *p, SelectDest *pDest) |
| |
| static int | multiSelect (Parse *pParse, Select *p, SelectDest *pDest) |
| |
| static int | generateOutputSubroutine (Parse *pParse, Select *p, SelectDest *pIn, SelectDest *pDest, int regReturn, int regPrev, KeyInfo *pKeyInfo, int p4type, int iBreak) |
| |
| static void | substExprList (sqlite3 *, ExprList *, int, ExprList *) |
| |
| static void | substSelect (sqlite3 *, Select *, int, ExprList *) |
| |
| static Expr * | substExpr (sqlite3 *db, Expr *pExpr, int iTable, ExprList *pEList) |
| |
| static int | flattenSubquery (Parse *pParse, Select *p, int iFrom, int isAgg, int subqueryIsAgg) |
| |
| static u8 | minMaxQuery (AggInfo *pAggInfo, ExprList **ppMinMax) |
| |
| static Table * | isSimpleCount (Select *p, AggInfo *pAggInfo) |
| |
| static int | convertCompoundSelectToSubquery (Walker *pWalker, Select *p) |
| |
| static int | selectExpander (Walker *pWalker, Select *p) |
| |
| static int | exprWalkNoop (Walker *NotUsed, Expr *NotUsed2) |
| |
| static void | sqlite3SelectExpand (Parse *pParse, Select *pSelect) |
| |
| static int | selectAddSubqueryTypeInfo (Walker *pWalker, Select *p) |
| |
| static void | sqlite3SelectAddTypeInfo (Parse *pParse, Select *pSelect) |
| |
| static void | resetAccumulator (Parse *pParse, AggInfo *pAggInfo) |
| |
| static void | finalizeAggFunctions (Parse *pParse, AggInfo *pAggInfo) |
| |
| static void | updateAccumulator (Parse *pParse, AggInfo *pAggInfo) |
| |
| static void | explainSimpleCount (Parse *pParse, Table *pTab, Index *pIdx) |
| |
| static int | sqlite3_get_table_cb (void *pArg, int nCol, char **argv, char **colv) |
| |
| static TriggerStep * | triggerStepAllocate (sqlite3 *db, u8 op, Token *pName) |
| |
| static Table * | tableOfTrigger (Trigger *pTrigger) |
| |
| static int | checkColumnOverlap (IdList *pIdList, ExprList *pEList) |
| |
| static SrcList * | targetSrcList (Parse *pParse, TriggerStep *pStep) |
| |
| static int | codeTriggerProgram (Parse *pParse, TriggerStep *pStepList, int orconf) |
| |
| static void | transferParseError (Parse *pTo, Parse *pFrom) |
| |
| static TriggerPrg * | codeRowTrigger (Parse *pParse, Trigger *pTrigger, Table *pTab, int orconf) |
| |
| static TriggerPrg * | getRowTrigger (Parse *pParse, Trigger *pTrigger, Table *pTab, int orconf) |
| |
| static void | updateVirtualTable (Parse *pParse, SrcList *pSrc, Table *pTab, ExprList *pChanges, Expr *pRowidExpr, int *aXRef, Expr *pWhere, int onError) |
| |
| static int | vacuumFinalize (sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg) |
| |
| static int | execSql (sqlite3 *db, char **pzErrMsg, const char *zSql) |
| |
| static int | execExecSql (sqlite3 *db, char **pzErrMsg, const char *zSql) |
| |
| static int | createModule (sqlite3 *db, const char *zName, const sqlite3_module *pModule, void *pAux, void(*xDestroy)(void *)) |
| |
| static VTable * | vtabDisconnectAll (sqlite3 *db, Table *p) |
| |
| static void | addModuleArgument (sqlite3 *db, Table *pTable, char *zArg) |
| |
| static void | addArgumentToVtab (Parse *pParse) |
| |
| static int | vtabCallConstructor (sqlite3 *db, Table *pTab, Module *pMod, int(*xConstruct)(sqlite3 *, void *, int, const char *const *, sqlite3_vtab **, char **), char **pzErr) |
| |
| static int | growVTrans (sqlite3 *db) |
| |
| static void | addToVTrans (sqlite3 *db, VTable *pVTab) |
| |
| static void | callFinaliser (sqlite3 *db, int offset) |
| |
| static int | compareCost (const WhereCost *pProbe, const WhereCost *pBaseline) |
| |
| static void | whereClauseInit (WhereClause *pWC, Parse *pParse, WhereMaskSet *pMaskSet, u16 wctrlFlags) |
| |
| static void | whereClauseClear (WhereClause *) |
| |
| static void | whereOrInfoDelete (sqlite3 *db, WhereOrInfo *p) |
| |
| static void | whereAndInfoDelete (sqlite3 *db, WhereAndInfo *p) |
| |
| static int | whereClauseInsert (WhereClause *pWC, Expr *p, u8 wtFlags) |
| |
| static void | whereSplit (WhereClause *pWC, Expr *pExpr, int op) |
| |
| static Bitmask | getMask (WhereMaskSet *pMaskSet, int iCursor) |
| |
| static void | createMask (WhereMaskSet *pMaskSet, int iCursor) |
| |
| static Bitmask | exprListTableUsage (WhereMaskSet *, ExprList *) |
| |
| static Bitmask | exprSelectTableUsage (WhereMaskSet *, Select *) |
| |
| static Bitmask | exprTableUsage (WhereMaskSet *pMaskSet, Expr *p) |
| |
| static int | allowedOp (int op) |
| |
| static void | exprCommute (Parse *pParse, Expr *pExpr) |
| |
| static u16 | operatorMask (int op) |
| |
| static WhereTerm * | findTerm (WhereClause *pWC, int iCur, int iColumn, Bitmask notReady, u32 op, Index *pIdx) |
| |
| static void | exprAnalyze (SrcList *, WhereClause *, int) |
| |
| static void | exprAnalyzeAll (SrcList *pTabList, WhereClause *pWC) |
| |
| static int | isLikeOrGlob (Parse *pParse, Expr *pExpr, Expr **ppPrefix, int *pisComplete, int *pnoCase) |
| |
| static int | isMatchOfColumn (Expr *pExpr) |
| |
| static void | transferJoinMarkings (Expr *pDerived, Expr *pBase) |
| |
| static void | exprAnalyzeOrTerm (SrcList *pSrc, WhereClause *pWC, int idxTerm) |
| |
| static int | findIndexCol (Parse *pParse, ExprList *pList, int iBase, Index *pIdx, int iCol) |
| |
| static int | isDistinctIndex (Parse *pParse, WhereClause *pWC, Index *pIdx, int base, ExprList *pDistinct, int nEqCol) |
| |
| static int | isDistinctRedundant (Parse *pParse, SrcList *pTabList, WhereClause *pWC, ExprList *pDistinct) |
| |
| static double | estLog (double N) |
| |
| static void | bestIndex (WhereBestIdx *) |
| |
| static void | bestOrClauseIndex (WhereBestIdx *p) |
| |
| static int | termCanDriveIndex (WhereTerm *pTerm, struct SrcList_item *pSrc, Bitmask notReady) |
| |
| static void | bestAutomaticIndex (WhereBestIdx *p) |
| |
| static void | constructAutomaticIndex (Parse *pParse, WhereClause *pWC, struct SrcList_item *pSrc, Bitmask notReady, WhereLevel *pLevel) |
| |
| static sqlite3_index_info * | allocateIndexInfo (WhereBestIdx *p) |
| |
| static int | vtabBestIndex (Parse *pParse, Table *pTab, sqlite3_index_info *p) |
| |
| static void | bestVirtualIndex (WhereBestIdx *p) |
| |
| static int | whereRangeScanEst (Parse *pParse, Index *p, int nEq, WhereTerm *pLower, WhereTerm *pUpper, double *pRangeDiv) |
| |
| static int | isOrderedColumn (WhereBestIdx *p, int iTab, int iCol) |
| |
| static int | isSortingIndex (WhereBestIdx *p, Index *pIdx, int base, int *pbRev, int *pbObUnique) |
| |
| static void | bestBtreeIndex (WhereBestIdx *p) |
| |
| static void | disableTerm (WhereLevel *pLevel, WhereTerm *pTerm) |
| |
| static void | codeApplyAffinity (Parse *pParse, int base, int n, char *zAff) |
| |
| static int | codeEqualityTerm (Parse *pParse, WhereTerm *pTerm, WhereLevel *pLevel, int iEq, int iTarget) |
| |
| static int | codeAllEqualityTerms (Parse *pParse, WhereLevel *pLevel, WhereClause *pWC, Bitmask notReady, int nExtraReg, char **pzAff) |
| |
| static void | explainAppendTerm (StrAccum *pStr, int iTerm, const char *zColumn, const char *zOp) |
| |
| static char * | explainIndexRange (sqlite3 *db, WhereLevel *pLevel, Table *pTab) |
| |
| static void | explainOneScan (Parse *pParse, SrcList *pTabList, WhereLevel *pLevel, int iLevel, int iFrom, u16 wctrlFlags) |
| |
| static Bitmask | codeOneLoopStart (WhereInfo *pWInfo, int iLevel, u16 wctrlFlags, Bitmask notReady) |
| |
| static void | whereInfoFree (sqlite3 *db, WhereInfo *pWInfo) |
| |
| static void | spanSet (ExprSpan *pOut, Token *pStart, Token *pEnd) |
| |
| static void | spanExpr (ExprSpan *pOut, Parse *pParse, int op, Token *pValue) |
| |
| static void | spanBinaryExpr (ExprSpan *pOut, Parse *pParse, int op, ExprSpan *pLeft, ExprSpan *pRight) |
| |
| static void | spanUnaryPostfix (ExprSpan *pOut, Parse *pParse, int op, ExprSpan *pOperand, Token *pPostOp) |
| |
| static void | binaryToUnaryIfNull (Parse *pParse, Expr *pY, Expr *pA, int op) |
| |
| static void | spanUnaryPrefix (ExprSpan *pOut, Parse *pParse, int op, ExprSpan *pOperand, Token *pPreOp) |
| |
| SQLITE_PRIVATE void * | sqlite3ParserAlloc (void *(*mallocProc)(size_t)) |
| |
| static void | yy_destructor (yyParser *yypParser, YYCODETYPE yymajor, YYMINORTYPE *yypminor) |
| |
| static int | yy_pop_parser_stack (yyParser *pParser) |
| |
| static int | yy_find_shift_action (yyParser *pParser, YYCODETYPE iLookAhead) |
| |
| static int | yy_find_reduce_action (int stateno, YYCODETYPE iLookAhead) |
| |
| static void | yyStackOverflow (yyParser *yypParser, YYMINORTYPE *yypMinor) |
| |
| static void | yy_shift (yyParser *yypParser, int yyNewState, int yyMajor, YYMINORTYPE *yypMinor) |
| |
| static void | yy_accept (yyParser *) |
| |
| static void | yy_reduce (yyParser *yypParser, int yyruleno) |
| |
| static void | yy_syntax_error (yyParser *yypParser, int yymajor, YYMINORTYPE yyminor) |
| |
| SQLITE_PRIVATE void | sqlite3Parser (void *yyp, int yymajor, sqlite3ParserTOKENTYPE yyminor sqlite3ParserARG_PDECL) |
| |
| static int | keywordCode (const char *z, int n) |
| |
| static int | setupLookaside (sqlite3 *db, void *pBuf, int sz, int cnt) |
| |
| static int | allSpaces (const char *z, int n) |
| |
| static int | binCollFunc (void *padFlag, int nKey1, const void *pKey1, int nKey2, const void *pKey2) |
| |
| static int | nocaseCollatingFunc (void *NotUsed, int nKey1, const void *pKey1, int nKey2, const void *pKey2) |
| |
| static void | functionDestroy (sqlite3 *db, FuncDef *p) |
| |
| static void | disconnectAllVtab (sqlite3 *db) |
| |
| static int | connectionIsBusy (sqlite3 *db) |
| |
| static int | sqlite3Close (sqlite3 *db, int forceZombie) |
| |
| static int | sqliteDefaultBusyCallback (void *ptr, int count) |
| |
| static int | createCollation (sqlite3 *db, const char *zName, u8 enc, void *pCtx, int(*xCompare)(void *, int, const void *, int, const void *), void(*xDel)(void *)) |
| |
| static int | openDatabase (const char *zFilename, sqlite3 **ppDb, unsigned int flags, const char *zVfs) |
| |