1 /* automatically generated by rust-bindgen 0.69.4 */ 2 3 extern "C" { sqlite3_auto_extension( xEntryPoint: ::std::option::Option< unsafe extern "C" fn( db: *mut sqlite3, pzErrMsg: *mut *mut ::std::os::raw::c_char, _: *const sqlite3_api_routines, ) -> ::std::os::raw::c_int, >, ) -> ::std::os::raw::c_int4 pub fn sqlite3_auto_extension( 5 xEntryPoint: ::std::option::Option< 6 unsafe extern "C" fn( 7 db: *mut sqlite3, 8 pzErrMsg: *mut *mut ::std::os::raw::c_char, 9 _: *const sqlite3_api_routines, 10 ) -> ::std::os::raw::c_int, 11 >, 12 ) -> ::std::os::raw::c_int; 13 } 14 extern "C" { sqlite3_cancel_auto_extension( xEntryPoint: ::std::option::Option< unsafe extern "C" fn( db: *mut sqlite3, pzErrMsg: *mut *mut ::std::os::raw::c_char, _: *const sqlite3_api_routines, ) -> ::std::os::raw::c_int, >, ) -> ::std::os::raw::c_int15 pub fn sqlite3_cancel_auto_extension( 16 xEntryPoint: ::std::option::Option< 17 unsafe extern "C" fn( 18 db: *mut sqlite3, 19 pzErrMsg: *mut *mut ::std::os::raw::c_char, 20 _: *const sqlite3_api_routines, 21 ) -> ::std::os::raw::c_int, 22 >, 23 ) -> ::std::os::raw::c_int; 24 } 25 26 pub const SQLITE_VERSION: &[u8; 7] = b"3.14.0\0"; 27 pub const SQLITE_VERSION_NUMBER: i32 = 3014000; 28 pub const SQLITE_SOURCE_ID: &[u8; 61] = 29 b"2016-08-08 13:40:27 d5e98057028abcf7217d0d2b2e29bbbcdf09d6de\0"; 30 pub const SQLITE_OK: i32 = 0; 31 pub const SQLITE_ERROR: i32 = 1; 32 pub const SQLITE_INTERNAL: i32 = 2; 33 pub const SQLITE_PERM: i32 = 3; 34 pub const SQLITE_ABORT: i32 = 4; 35 pub const SQLITE_BUSY: i32 = 5; 36 pub const SQLITE_LOCKED: i32 = 6; 37 pub const SQLITE_NOMEM: i32 = 7; 38 pub const SQLITE_READONLY: i32 = 8; 39 pub const SQLITE_INTERRUPT: i32 = 9; 40 pub const SQLITE_IOERR: i32 = 10; 41 pub const SQLITE_CORRUPT: i32 = 11; 42 pub const SQLITE_NOTFOUND: i32 = 12; 43 pub const SQLITE_FULL: i32 = 13; 44 pub const SQLITE_CANTOPEN: i32 = 14; 45 pub const SQLITE_PROTOCOL: i32 = 15; 46 pub const SQLITE_EMPTY: i32 = 16; 47 pub const SQLITE_SCHEMA: i32 = 17; 48 pub const SQLITE_TOOBIG: i32 = 18; 49 pub const SQLITE_CONSTRAINT: i32 = 19; 50 pub const SQLITE_MISMATCH: i32 = 20; 51 pub const SQLITE_MISUSE: i32 = 21; 52 pub const SQLITE_NOLFS: i32 = 22; 53 pub const SQLITE_AUTH: i32 = 23; 54 pub const SQLITE_FORMAT: i32 = 24; 55 pub const SQLITE_RANGE: i32 = 25; 56 pub const SQLITE_NOTADB: i32 = 26; 57 pub const SQLITE_NOTICE: i32 = 27; 58 pub const SQLITE_WARNING: i32 = 28; 59 pub const SQLITE_ROW: i32 = 100; 60 pub const SQLITE_DONE: i32 = 101; 61 pub const SQLITE_IOERR_READ: i32 = 266; 62 pub const SQLITE_IOERR_SHORT_READ: i32 = 522; 63 pub const SQLITE_IOERR_WRITE: i32 = 778; 64 pub const SQLITE_IOERR_FSYNC: i32 = 1034; 65 pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290; 66 pub const SQLITE_IOERR_TRUNCATE: i32 = 1546; 67 pub const SQLITE_IOERR_FSTAT: i32 = 1802; 68 pub const SQLITE_IOERR_UNLOCK: i32 = 2058; 69 pub const SQLITE_IOERR_RDLOCK: i32 = 2314; 70 pub const SQLITE_IOERR_DELETE: i32 = 2570; 71 pub const SQLITE_IOERR_BLOCKED: i32 = 2826; 72 pub const SQLITE_IOERR_NOMEM: i32 = 3082; 73 pub const SQLITE_IOERR_ACCESS: i32 = 3338; 74 pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594; 75 pub const SQLITE_IOERR_LOCK: i32 = 3850; 76 pub const SQLITE_IOERR_CLOSE: i32 = 4106; 77 pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362; 78 pub const SQLITE_IOERR_SHMOPEN: i32 = 4618; 79 pub const SQLITE_IOERR_SHMSIZE: i32 = 4874; 80 pub const SQLITE_IOERR_SHMLOCK: i32 = 5130; 81 pub const SQLITE_IOERR_SHMMAP: i32 = 5386; 82 pub const SQLITE_IOERR_SEEK: i32 = 5642; 83 pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898; 84 pub const SQLITE_IOERR_MMAP: i32 = 6154; 85 pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410; 86 pub const SQLITE_IOERR_CONVPATH: i32 = 6666; 87 pub const SQLITE_IOERR_VNODE: i32 = 6922; 88 pub const SQLITE_IOERR_AUTH: i32 = 7178; 89 pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262; 90 pub const SQLITE_BUSY_RECOVERY: i32 = 261; 91 pub const SQLITE_BUSY_SNAPSHOT: i32 = 517; 92 pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270; 93 pub const SQLITE_CANTOPEN_ISDIR: i32 = 526; 94 pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782; 95 pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038; 96 pub const SQLITE_CORRUPT_VTAB: i32 = 267; 97 pub const SQLITE_READONLY_RECOVERY: i32 = 264; 98 pub const SQLITE_READONLY_CANTLOCK: i32 = 520; 99 pub const SQLITE_READONLY_ROLLBACK: i32 = 776; 100 pub const SQLITE_READONLY_DBMOVED: i32 = 1032; 101 pub const SQLITE_ABORT_ROLLBACK: i32 = 516; 102 pub const SQLITE_CONSTRAINT_CHECK: i32 = 275; 103 pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531; 104 pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; 105 pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043; 106 pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299; 107 pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555; 108 pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811; 109 pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067; 110 pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323; 111 pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579; 112 pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283; 113 pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539; 114 pub const SQLITE_WARNING_AUTOINDEX: i32 = 284; 115 pub const SQLITE_AUTH_USER: i32 = 279; 116 pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256; 117 pub const SQLITE_OPEN_READONLY: i32 = 1; 118 pub const SQLITE_OPEN_READWRITE: i32 = 2; 119 pub const SQLITE_OPEN_CREATE: i32 = 4; 120 pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8; 121 pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16; 122 pub const SQLITE_OPEN_AUTOPROXY: i32 = 32; 123 pub const SQLITE_OPEN_URI: i32 = 64; 124 pub const SQLITE_OPEN_MEMORY: i32 = 128; 125 pub const SQLITE_OPEN_MAIN_DB: i32 = 256; 126 pub const SQLITE_OPEN_TEMP_DB: i32 = 512; 127 pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024; 128 pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048; 129 pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096; 130 pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192; 131 pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384; 132 pub const SQLITE_OPEN_NOMUTEX: i32 = 32768; 133 pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536; 134 pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072; 135 pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144; 136 pub const SQLITE_OPEN_WAL: i32 = 524288; 137 pub const SQLITE_IOCAP_ATOMIC: i32 = 1; 138 pub const SQLITE_IOCAP_ATOMIC512: i32 = 2; 139 pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4; 140 pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8; 141 pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16; 142 pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32; 143 pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64; 144 pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128; 145 pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256; 146 pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512; 147 pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024; 148 pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048; 149 pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096; 150 pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192; 151 pub const SQLITE_LOCK_NONE: i32 = 0; 152 pub const SQLITE_LOCK_SHARED: i32 = 1; 153 pub const SQLITE_LOCK_RESERVED: i32 = 2; 154 pub const SQLITE_LOCK_PENDING: i32 = 3; 155 pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4; 156 pub const SQLITE_SYNC_NORMAL: i32 = 2; 157 pub const SQLITE_SYNC_FULL: i32 = 3; 158 pub const SQLITE_SYNC_DATAONLY: i32 = 16; 159 pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1; 160 pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2; 161 pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3; 162 pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4; 163 pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5; 164 pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6; 165 pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7; 166 pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8; 167 pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9; 168 pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10; 169 pub const SQLITE_FCNTL_OVERWRITE: i32 = 11; 170 pub const SQLITE_FCNTL_VFSNAME: i32 = 12; 171 pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13; 172 pub const SQLITE_FCNTL_PRAGMA: i32 = 14; 173 pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15; 174 pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16; 175 pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18; 176 pub const SQLITE_FCNTL_TRACE: i32 = 19; 177 pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20; 178 pub const SQLITE_FCNTL_SYNC: i32 = 21; 179 pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22; 180 pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23; 181 pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24; 182 pub const SQLITE_FCNTL_ZIPVFS: i32 = 25; 183 pub const SQLITE_FCNTL_RBU: i32 = 26; 184 pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27; 185 pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28; 186 pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; 187 pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; 188 pub const SQLITE_LAST_ERRNO: i32 = 4; 189 pub const SQLITE_ACCESS_EXISTS: i32 = 0; 190 pub const SQLITE_ACCESS_READWRITE: i32 = 1; 191 pub const SQLITE_ACCESS_READ: i32 = 2; 192 pub const SQLITE_SHM_UNLOCK: i32 = 1; 193 pub const SQLITE_SHM_LOCK: i32 = 2; 194 pub const SQLITE_SHM_SHARED: i32 = 4; 195 pub const SQLITE_SHM_EXCLUSIVE: i32 = 8; 196 pub const SQLITE_SHM_NLOCK: i32 = 8; 197 pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1; 198 pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2; 199 pub const SQLITE_CONFIG_SERIALIZED: i32 = 3; 200 pub const SQLITE_CONFIG_MALLOC: i32 = 4; 201 pub const SQLITE_CONFIG_GETMALLOC: i32 = 5; 202 pub const SQLITE_CONFIG_SCRATCH: i32 = 6; 203 pub const SQLITE_CONFIG_PAGECACHE: i32 = 7; 204 pub const SQLITE_CONFIG_HEAP: i32 = 8; 205 pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9; 206 pub const SQLITE_CONFIG_MUTEX: i32 = 10; 207 pub const SQLITE_CONFIG_GETMUTEX: i32 = 11; 208 pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13; 209 pub const SQLITE_CONFIG_PCACHE: i32 = 14; 210 pub const SQLITE_CONFIG_GETPCACHE: i32 = 15; 211 pub const SQLITE_CONFIG_LOG: i32 = 16; 212 pub const SQLITE_CONFIG_URI: i32 = 17; 213 pub const SQLITE_CONFIG_PCACHE2: i32 = 18; 214 pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19; 215 pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20; 216 pub const SQLITE_CONFIG_SQLLOG: i32 = 21; 217 pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22; 218 pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23; 219 pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24; 220 pub const SQLITE_CONFIG_PMASZ: i32 = 25; 221 pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26; 222 pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001; 223 pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002; 224 pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003; 225 pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004; 226 pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005; 227 pub const SQLITE_DENY: i32 = 1; 228 pub const SQLITE_IGNORE: i32 = 2; 229 pub const SQLITE_CREATE_INDEX: i32 = 1; 230 pub const SQLITE_CREATE_TABLE: i32 = 2; 231 pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3; 232 pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4; 233 pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5; 234 pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6; 235 pub const SQLITE_CREATE_TRIGGER: i32 = 7; 236 pub const SQLITE_CREATE_VIEW: i32 = 8; 237 pub const SQLITE_DELETE: i32 = 9; 238 pub const SQLITE_DROP_INDEX: i32 = 10; 239 pub const SQLITE_DROP_TABLE: i32 = 11; 240 pub const SQLITE_DROP_TEMP_INDEX: i32 = 12; 241 pub const SQLITE_DROP_TEMP_TABLE: i32 = 13; 242 pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14; 243 pub const SQLITE_DROP_TEMP_VIEW: i32 = 15; 244 pub const SQLITE_DROP_TRIGGER: i32 = 16; 245 pub const SQLITE_DROP_VIEW: i32 = 17; 246 pub const SQLITE_INSERT: i32 = 18; 247 pub const SQLITE_PRAGMA: i32 = 19; 248 pub const SQLITE_READ: i32 = 20; 249 pub const SQLITE_SELECT: i32 = 21; 250 pub const SQLITE_TRANSACTION: i32 = 22; 251 pub const SQLITE_UPDATE: i32 = 23; 252 pub const SQLITE_ATTACH: i32 = 24; 253 pub const SQLITE_DETACH: i32 = 25; 254 pub const SQLITE_ALTER_TABLE: i32 = 26; 255 pub const SQLITE_REINDEX: i32 = 27; 256 pub const SQLITE_ANALYZE: i32 = 28; 257 pub const SQLITE_CREATE_VTABLE: i32 = 29; 258 pub const SQLITE_DROP_VTABLE: i32 = 30; 259 pub const SQLITE_FUNCTION: i32 = 31; 260 pub const SQLITE_SAVEPOINT: i32 = 32; 261 pub const SQLITE_COPY: i32 = 0; 262 pub const SQLITE_RECURSIVE: i32 = 33; 263 pub const SQLITE_TRACE_STMT: i32 = 1; 264 pub const SQLITE_TRACE_PROFILE: i32 = 2; 265 pub const SQLITE_TRACE_ROW: i32 = 4; 266 pub const SQLITE_TRACE_CLOSE: i32 = 8; 267 pub const SQLITE_LIMIT_LENGTH: i32 = 0; 268 pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1; 269 pub const SQLITE_LIMIT_COLUMN: i32 = 2; 270 pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3; 271 pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4; 272 pub const SQLITE_LIMIT_VDBE_OP: i32 = 5; 273 pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6; 274 pub const SQLITE_LIMIT_ATTACHED: i32 = 7; 275 pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8; 276 pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9; 277 pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10; 278 pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11; 279 pub const SQLITE_INTEGER: i32 = 1; 280 pub const SQLITE_FLOAT: i32 = 2; 281 pub const SQLITE_BLOB: i32 = 4; 282 pub const SQLITE_NULL: i32 = 5; 283 pub const SQLITE_TEXT: i32 = 3; 284 pub const SQLITE3_TEXT: i32 = 3; 285 pub const SQLITE_UTF8: i32 = 1; 286 pub const SQLITE_UTF16LE: i32 = 2; 287 pub const SQLITE_UTF16BE: i32 = 3; 288 pub const SQLITE_UTF16: i32 = 4; 289 pub const SQLITE_ANY: i32 = 5; 290 pub const SQLITE_UTF16_ALIGNED: i32 = 8; 291 pub const SQLITE_DETERMINISTIC: i32 = 2048; 292 pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1; 293 pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2; 294 pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4; 295 pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8; 296 pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16; 297 pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32; 298 pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64; 299 pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65; 300 pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66; 301 pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67; 302 pub const SQLITE_MUTEX_FAST: i32 = 0; 303 pub const SQLITE_MUTEX_RECURSIVE: i32 = 1; 304 pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2; 305 pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3; 306 pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4; 307 pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4; 308 pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5; 309 pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6; 310 pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7; 311 pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7; 312 pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8; 313 pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9; 314 pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10; 315 pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11; 316 pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12; 317 pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13; 318 pub const SQLITE_TESTCTRL_FIRST: i32 = 5; 319 pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5; 320 pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6; 321 pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7; 322 pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8; 323 pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9; 324 pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10; 325 pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11; 326 pub const SQLITE_TESTCTRL_ASSERT: i32 = 12; 327 pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13; 328 pub const SQLITE_TESTCTRL_RESERVE: i32 = 14; 329 pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15; 330 pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16; 331 pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17; 332 pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18; 333 pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19; 334 pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20; 335 pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21; 336 pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22; 337 pub const SQLITE_TESTCTRL_ISINIT: i32 = 23; 338 pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24; 339 pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25; 340 pub const SQLITE_TESTCTRL_LAST: i32 = 25; 341 pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; 342 pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; 343 pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; 344 pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3; 345 pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4; 346 pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5; 347 pub const SQLITE_STATUS_PARSER_STACK: i32 = 6; 348 pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7; 349 pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8; 350 pub const SQLITE_STATUS_MALLOC_COUNT: i32 = 9; 351 pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0; 352 pub const SQLITE_DBSTATUS_CACHE_USED: i32 = 1; 353 pub const SQLITE_DBSTATUS_SCHEMA_USED: i32 = 2; 354 pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3; 355 pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4; 356 pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5; 357 pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6; 358 pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7; 359 pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8; 360 pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9; 361 pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10; 362 pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11; 363 pub const SQLITE_DBSTATUS_MAX: i32 = 11; 364 pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1; 365 pub const SQLITE_STMTSTATUS_SORT: i32 = 2; 366 pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3; 367 pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4; 368 pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0; 369 pub const SQLITE_CHECKPOINT_FULL: i32 = 1; 370 pub const SQLITE_CHECKPOINT_RESTART: i32 = 2; 371 pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3; 372 pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1; 373 pub const SQLITE_ROLLBACK: i32 = 1; 374 pub const SQLITE_FAIL: i32 = 3; 375 pub const SQLITE_REPLACE: i32 = 5; 376 pub const SQLITE_SCANSTAT_NLOOP: i32 = 0; 377 pub const SQLITE_SCANSTAT_NVISIT: i32 = 1; 378 pub const SQLITE_SCANSTAT_EST: i32 = 2; 379 pub const SQLITE_SCANSTAT_NAME: i32 = 3; 380 pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4; 381 pub const SQLITE_SCANSTAT_SELECTID: i32 = 5; 382 pub const NOT_WITHIN: i32 = 0; 383 pub const PARTLY_WITHIN: i32 = 1; 384 pub const FULLY_WITHIN: i32 = 2; 385 pub const SQLITE_CHANGESET_DATA: i32 = 1; 386 pub const SQLITE_CHANGESET_NOTFOUND: i32 = 2; 387 pub const SQLITE_CHANGESET_CONFLICT: i32 = 3; 388 pub const SQLITE_CHANGESET_CONSTRAINT: i32 = 4; 389 pub const SQLITE_CHANGESET_FOREIGN_KEY: i32 = 5; 390 pub const SQLITE_CHANGESET_OMIT: i32 = 0; 391 pub const SQLITE_CHANGESET_REPLACE: i32 = 1; 392 pub const SQLITE_CHANGESET_ABORT: i32 = 2; 393 pub const FTS5_TOKENIZE_QUERY: i32 = 1; 394 pub const FTS5_TOKENIZE_PREFIX: i32 = 2; 395 pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; 396 pub const FTS5_TOKENIZE_AUX: i32 = 8; 397 pub const FTS5_TOKEN_COLOCATED: i32 = 1; 398 extern "C" { 399 pub static sqlite3_version: [::std::os::raw::c_char; 0usize]; 400 } 401 extern "C" { sqlite3_libversion() -> *const ::std::os::raw::c_char402 pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char; 403 } 404 extern "C" { sqlite3_sourceid() -> *const ::std::os::raw::c_char405 pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char; 406 } 407 extern "C" { sqlite3_libversion_number() -> ::std::os::raw::c_int408 pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int; 409 } 410 extern "C" { sqlite3_compileoption_used( zOptName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int411 pub fn sqlite3_compileoption_used( 412 zOptName: *const ::std::os::raw::c_char, 413 ) -> ::std::os::raw::c_int; 414 } 415 extern "C" { sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char416 pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; 417 } 418 extern "C" { sqlite3_threadsafe() -> ::std::os::raw::c_int419 pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int; 420 } 421 #[repr(C)] 422 #[derive(Debug, Copy, Clone)] 423 pub struct sqlite3 { 424 _unused: [u8; 0], 425 } 426 pub type sqlite_int64 = ::std::os::raw::c_longlong; 427 pub type sqlite_uint64 = ::std::os::raw::c_ulonglong; 428 pub type sqlite3_int64 = sqlite_int64; 429 pub type sqlite3_uint64 = sqlite_uint64; 430 extern "C" { sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int431 pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 432 } 433 pub type sqlite3_callback = ::std::option::Option< 434 unsafe extern "C" fn( 435 arg1: *mut ::std::os::raw::c_void, 436 arg2: ::std::os::raw::c_int, 437 arg3: *mut *mut ::std::os::raw::c_char, 438 arg4: *mut *mut ::std::os::raw::c_char, 439 ) -> ::std::os::raw::c_int, 440 >; 441 extern "C" { sqlite3_exec( arg1: *mut sqlite3, sql: *const ::std::os::raw::c_char, callback: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *mut *mut ::std::os::raw::c_char, arg4: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >, arg2: *mut ::std::os::raw::c_void, errmsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int442 pub fn sqlite3_exec( 443 arg1: *mut sqlite3, 444 sql: *const ::std::os::raw::c_char, 445 callback: ::std::option::Option< 446 unsafe extern "C" fn( 447 arg1: *mut ::std::os::raw::c_void, 448 arg2: ::std::os::raw::c_int, 449 arg3: *mut *mut ::std::os::raw::c_char, 450 arg4: *mut *mut ::std::os::raw::c_char, 451 ) -> ::std::os::raw::c_int, 452 >, 453 arg2: *mut ::std::os::raw::c_void, 454 errmsg: *mut *mut ::std::os::raw::c_char, 455 ) -> ::std::os::raw::c_int; 456 } 457 #[repr(C)] 458 #[derive(Debug, Copy, Clone)] 459 pub struct sqlite3_file { 460 pub pMethods: *const sqlite3_io_methods, 461 } 462 #[repr(C)] 463 #[derive(Debug, Copy, Clone)] 464 pub struct sqlite3_io_methods { 465 pub iVersion: ::std::os::raw::c_int, 466 pub xClose: ::std::option::Option< 467 unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, 468 >, 469 pub xRead: ::std::option::Option< 470 unsafe extern "C" fn( 471 arg1: *mut sqlite3_file, 472 arg2: *mut ::std::os::raw::c_void, 473 iAmt: ::std::os::raw::c_int, 474 iOfst: sqlite3_int64, 475 ) -> ::std::os::raw::c_int, 476 >, 477 pub xWrite: ::std::option::Option< 478 unsafe extern "C" fn( 479 arg1: *mut sqlite3_file, 480 arg2: *const ::std::os::raw::c_void, 481 iAmt: ::std::os::raw::c_int, 482 iOfst: sqlite3_int64, 483 ) -> ::std::os::raw::c_int, 484 >, 485 pub xTruncate: ::std::option::Option< 486 unsafe extern "C" fn(arg1: *mut sqlite3_file, size: sqlite3_int64) -> ::std::os::raw::c_int, 487 >, 488 pub xSync: ::std::option::Option< 489 unsafe extern "C" fn( 490 arg1: *mut sqlite3_file, 491 flags: ::std::os::raw::c_int, 492 ) -> ::std::os::raw::c_int, 493 >, 494 pub xFileSize: ::std::option::Option< 495 unsafe extern "C" fn( 496 arg1: *mut sqlite3_file, 497 pSize: *mut sqlite3_int64, 498 ) -> ::std::os::raw::c_int, 499 >, 500 pub xLock: ::std::option::Option< 501 unsafe extern "C" fn( 502 arg1: *mut sqlite3_file, 503 arg2: ::std::os::raw::c_int, 504 ) -> ::std::os::raw::c_int, 505 >, 506 pub xUnlock: ::std::option::Option< 507 unsafe extern "C" fn( 508 arg1: *mut sqlite3_file, 509 arg2: ::std::os::raw::c_int, 510 ) -> ::std::os::raw::c_int, 511 >, 512 pub xCheckReservedLock: ::std::option::Option< 513 unsafe extern "C" fn( 514 arg1: *mut sqlite3_file, 515 pResOut: *mut ::std::os::raw::c_int, 516 ) -> ::std::os::raw::c_int, 517 >, 518 pub xFileControl: ::std::option::Option< 519 unsafe extern "C" fn( 520 arg1: *mut sqlite3_file, 521 op: ::std::os::raw::c_int, 522 pArg: *mut ::std::os::raw::c_void, 523 ) -> ::std::os::raw::c_int, 524 >, 525 pub xSectorSize: ::std::option::Option< 526 unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, 527 >, 528 pub xDeviceCharacteristics: ::std::option::Option< 529 unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, 530 >, 531 pub xShmMap: ::std::option::Option< 532 unsafe extern "C" fn( 533 arg1: *mut sqlite3_file, 534 iPg: ::std::os::raw::c_int, 535 pgsz: ::std::os::raw::c_int, 536 arg2: ::std::os::raw::c_int, 537 arg3: *mut *mut ::std::os::raw::c_void, 538 ) -> ::std::os::raw::c_int, 539 >, 540 pub xShmLock: ::std::option::Option< 541 unsafe extern "C" fn( 542 arg1: *mut sqlite3_file, 543 offset: ::std::os::raw::c_int, 544 n: ::std::os::raw::c_int, 545 flags: ::std::os::raw::c_int, 546 ) -> ::std::os::raw::c_int, 547 >, 548 pub xShmBarrier: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_file)>, 549 pub xShmUnmap: ::std::option::Option< 550 unsafe extern "C" fn( 551 arg1: *mut sqlite3_file, 552 deleteFlag: ::std::os::raw::c_int, 553 ) -> ::std::os::raw::c_int, 554 >, 555 pub xFetch: ::std::option::Option< 556 unsafe extern "C" fn( 557 arg1: *mut sqlite3_file, 558 iOfst: sqlite3_int64, 559 iAmt: ::std::os::raw::c_int, 560 pp: *mut *mut ::std::os::raw::c_void, 561 ) -> ::std::os::raw::c_int, 562 >, 563 pub xUnfetch: ::std::option::Option< 564 unsafe extern "C" fn( 565 arg1: *mut sqlite3_file, 566 iOfst: sqlite3_int64, 567 p: *mut ::std::os::raw::c_void, 568 ) -> ::std::os::raw::c_int, 569 >, 570 } 571 #[repr(C)] 572 #[derive(Debug, Copy, Clone)] 573 pub struct sqlite3_mutex { 574 _unused: [u8; 0], 575 } 576 #[repr(C)] 577 #[derive(Debug, Copy, Clone)] 578 pub struct sqlite3_api_routines { 579 _unused: [u8; 0], 580 } 581 pub type sqlite3_syscall_ptr = ::std::option::Option<unsafe extern "C" fn()>; 582 #[repr(C)] 583 #[derive(Debug, Copy, Clone)] 584 pub struct sqlite3_vfs { 585 pub iVersion: ::std::os::raw::c_int, 586 pub szOsFile: ::std::os::raw::c_int, 587 pub mxPathname: ::std::os::raw::c_int, 588 pub pNext: *mut sqlite3_vfs, 589 pub zName: *const ::std::os::raw::c_char, 590 pub pAppData: *mut ::std::os::raw::c_void, 591 pub xOpen: ::std::option::Option< 592 unsafe extern "C" fn( 593 arg1: *mut sqlite3_vfs, 594 zName: *const ::std::os::raw::c_char, 595 arg2: *mut sqlite3_file, 596 flags: ::std::os::raw::c_int, 597 pOutFlags: *mut ::std::os::raw::c_int, 598 ) -> ::std::os::raw::c_int, 599 >, 600 pub xDelete: ::std::option::Option< 601 unsafe extern "C" fn( 602 arg1: *mut sqlite3_vfs, 603 zName: *const ::std::os::raw::c_char, 604 syncDir: ::std::os::raw::c_int, 605 ) -> ::std::os::raw::c_int, 606 >, 607 pub xAccess: ::std::option::Option< 608 unsafe extern "C" fn( 609 arg1: *mut sqlite3_vfs, 610 zName: *const ::std::os::raw::c_char, 611 flags: ::std::os::raw::c_int, 612 pResOut: *mut ::std::os::raw::c_int, 613 ) -> ::std::os::raw::c_int, 614 >, 615 pub xFullPathname: ::std::option::Option< 616 unsafe extern "C" fn( 617 arg1: *mut sqlite3_vfs, 618 zName: *const ::std::os::raw::c_char, 619 nOut: ::std::os::raw::c_int, 620 zOut: *mut ::std::os::raw::c_char, 621 ) -> ::std::os::raw::c_int, 622 >, 623 pub xDlOpen: ::std::option::Option< 624 unsafe extern "C" fn( 625 arg1: *mut sqlite3_vfs, 626 zFilename: *const ::std::os::raw::c_char, 627 ) -> *mut ::std::os::raw::c_void, 628 >, 629 pub xDlError: ::std::option::Option< 630 unsafe extern "C" fn( 631 arg1: *mut sqlite3_vfs, 632 nByte: ::std::os::raw::c_int, 633 zErrMsg: *mut ::std::os::raw::c_char, 634 ), 635 >, 636 pub xDlSym: ::std::option::Option< 637 unsafe extern "C" fn( 638 arg1: *mut sqlite3_vfs, 639 arg2: *mut ::std::os::raw::c_void, 640 zSymbol: *const ::std::os::raw::c_char, 641 ) -> ::std::option::Option< 642 unsafe extern "C" fn( 643 arg1: *mut sqlite3_vfs, 644 arg2: *mut ::std::os::raw::c_void, 645 zSymbol: *const ::std::os::raw::c_char, 646 ), 647 >, 648 >, 649 pub xDlClose: ::std::option::Option< 650 unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut ::std::os::raw::c_void), 651 >, 652 pub xRandomness: ::std::option::Option< 653 unsafe extern "C" fn( 654 arg1: *mut sqlite3_vfs, 655 nByte: ::std::os::raw::c_int, 656 zOut: *mut ::std::os::raw::c_char, 657 ) -> ::std::os::raw::c_int, 658 >, 659 pub xSleep: ::std::option::Option< 660 unsafe extern "C" fn( 661 arg1: *mut sqlite3_vfs, 662 microseconds: ::std::os::raw::c_int, 663 ) -> ::std::os::raw::c_int, 664 >, 665 pub xCurrentTime: ::std::option::Option< 666 unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut f64) -> ::std::os::raw::c_int, 667 >, 668 pub xGetLastError: ::std::option::Option< 669 unsafe extern "C" fn( 670 arg1: *mut sqlite3_vfs, 671 arg2: ::std::os::raw::c_int, 672 arg3: *mut ::std::os::raw::c_char, 673 ) -> ::std::os::raw::c_int, 674 >, 675 pub xCurrentTimeInt64: ::std::option::Option< 676 unsafe extern "C" fn( 677 arg1: *mut sqlite3_vfs, 678 arg2: *mut sqlite3_int64, 679 ) -> ::std::os::raw::c_int, 680 >, 681 pub xSetSystemCall: ::std::option::Option< 682 unsafe extern "C" fn( 683 arg1: *mut sqlite3_vfs, 684 zName: *const ::std::os::raw::c_char, 685 arg2: sqlite3_syscall_ptr, 686 ) -> ::std::os::raw::c_int, 687 >, 688 pub xGetSystemCall: ::std::option::Option< 689 unsafe extern "C" fn( 690 arg1: *mut sqlite3_vfs, 691 zName: *const ::std::os::raw::c_char, 692 ) -> sqlite3_syscall_ptr, 693 >, 694 pub xNextSystemCall: ::std::option::Option< 695 unsafe extern "C" fn( 696 arg1: *mut sqlite3_vfs, 697 zName: *const ::std::os::raw::c_char, 698 ) -> *const ::std::os::raw::c_char, 699 >, 700 } 701 extern "C" { sqlite3_initialize() -> ::std::os::raw::c_int702 pub fn sqlite3_initialize() -> ::std::os::raw::c_int; 703 } 704 extern "C" { sqlite3_shutdown() -> ::std::os::raw::c_int705 pub fn sqlite3_shutdown() -> ::std::os::raw::c_int; 706 } 707 extern "C" { sqlite3_os_init() -> ::std::os::raw::c_int708 pub fn sqlite3_os_init() -> ::std::os::raw::c_int; 709 } 710 extern "C" { sqlite3_os_end() -> ::std::os::raw::c_int711 pub fn sqlite3_os_end() -> ::std::os::raw::c_int; 712 } 713 extern "C" { sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int714 pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; 715 } 716 extern "C" { sqlite3_db_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, ... ) -> ::std::os::raw::c_int717 pub fn sqlite3_db_config( 718 arg1: *mut sqlite3, 719 op: ::std::os::raw::c_int, 720 ... 721 ) -> ::std::os::raw::c_int; 722 } 723 #[repr(C)] 724 #[derive(Debug, Copy, Clone)] 725 pub struct sqlite3_mem_methods { 726 pub xMalloc: ::std::option::Option< 727 unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void, 728 >, 729 pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 730 pub xRealloc: ::std::option::Option< 731 unsafe extern "C" fn( 732 arg1: *mut ::std::os::raw::c_void, 733 arg2: ::std::os::raw::c_int, 734 ) -> *mut ::std::os::raw::c_void, 735 >, 736 pub xSize: ::std::option::Option< 737 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 738 >, 739 pub xRoundup: ::std::option::Option< 740 unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int, 741 >, 742 pub xInit: ::std::option::Option< 743 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 744 >, 745 pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 746 pub pAppData: *mut ::std::os::raw::c_void, 747 } 748 extern "C" { sqlite3_extended_result_codes( arg1: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int749 pub fn sqlite3_extended_result_codes( 750 arg1: *mut sqlite3, 751 onoff: ::std::os::raw::c_int, 752 ) -> ::std::os::raw::c_int; 753 } 754 extern "C" { sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64755 pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64; 756 } 757 extern "C" { sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int758 pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 759 } 760 extern "C" { sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int761 pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 762 } 763 extern "C" { sqlite3_interrupt(arg1: *mut sqlite3)764 pub fn sqlite3_interrupt(arg1: *mut sqlite3); 765 } 766 extern "C" { sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int767 pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; 768 } 769 extern "C" { sqlite3_busy_handler( arg1: *mut sqlite3, arg2: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, arg3: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int770 pub fn sqlite3_busy_handler( 771 arg1: *mut sqlite3, 772 arg2: ::std::option::Option< 773 unsafe extern "C" fn( 774 arg1: *mut ::std::os::raw::c_void, 775 arg2: ::std::os::raw::c_int, 776 ) -> ::std::os::raw::c_int, 777 >, 778 arg3: *mut ::std::os::raw::c_void, 779 ) -> ::std::os::raw::c_int; 780 } 781 extern "C" { sqlite3_busy_timeout( arg1: *mut sqlite3, ms: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int782 pub fn sqlite3_busy_timeout( 783 arg1: *mut sqlite3, 784 ms: ::std::os::raw::c_int, 785 ) -> ::std::os::raw::c_int; 786 } 787 extern "C" { sqlite3_get_table( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, pazResult: *mut *mut *mut ::std::os::raw::c_char, pnRow: *mut ::std::os::raw::c_int, pnColumn: *mut ::std::os::raw::c_int, pzErrmsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int788 pub fn sqlite3_get_table( 789 db: *mut sqlite3, 790 zSql: *const ::std::os::raw::c_char, 791 pazResult: *mut *mut *mut ::std::os::raw::c_char, 792 pnRow: *mut ::std::os::raw::c_int, 793 pnColumn: *mut ::std::os::raw::c_int, 794 pzErrmsg: *mut *mut ::std::os::raw::c_char, 795 ) -> ::std::os::raw::c_int; 796 } 797 extern "C" { sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char)798 pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char); 799 } 800 extern "C" { sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char801 pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) 802 -> *mut ::std::os::raw::c_char; 803 } 804 extern "C" { sqlite3_snprintf( arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_char, arg3: *const ::std::os::raw::c_char, ... ) -> *mut ::std::os::raw::c_char805 pub fn sqlite3_snprintf( 806 arg1: ::std::os::raw::c_int, 807 arg2: *mut ::std::os::raw::c_char, 808 arg3: *const ::std::os::raw::c_char, 809 ... 810 ) -> *mut ::std::os::raw::c_char; 811 } 812 extern "C" { sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void813 pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; 814 } 815 extern "C" { sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void816 pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void; 817 } 818 extern "C" { sqlite3_realloc( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void819 pub fn sqlite3_realloc( 820 arg1: *mut ::std::os::raw::c_void, 821 arg2: ::std::os::raw::c_int, 822 ) -> *mut ::std::os::raw::c_void; 823 } 824 extern "C" { sqlite3_realloc64( arg1: *mut ::std::os::raw::c_void, arg2: sqlite3_uint64, ) -> *mut ::std::os::raw::c_void825 pub fn sqlite3_realloc64( 826 arg1: *mut ::std::os::raw::c_void, 827 arg2: sqlite3_uint64, 828 ) -> *mut ::std::os::raw::c_void; 829 } 830 extern "C" { sqlite3_free(arg1: *mut ::std::os::raw::c_void)831 pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); 832 } 833 extern "C" { sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64834 pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; 835 } 836 extern "C" { sqlite3_memory_used() -> sqlite3_int64837 pub fn sqlite3_memory_used() -> sqlite3_int64; 838 } 839 extern "C" { sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64840 pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64; 841 } 842 extern "C" { sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void)843 pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void); 844 } 845 extern "C" { sqlite3_set_authorizer( arg1: *mut sqlite3, xAuth: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: *const ::std::os::raw::c_char, arg5: *const ::std::os::raw::c_char, arg6: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >, pUserData: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int846 pub fn sqlite3_set_authorizer( 847 arg1: *mut sqlite3, 848 xAuth: ::std::option::Option< 849 unsafe extern "C" fn( 850 arg1: *mut ::std::os::raw::c_void, 851 arg2: ::std::os::raw::c_int, 852 arg3: *const ::std::os::raw::c_char, 853 arg4: *const ::std::os::raw::c_char, 854 arg5: *const ::std::os::raw::c_char, 855 arg6: *const ::std::os::raw::c_char, 856 ) -> ::std::os::raw::c_int, 857 >, 858 pUserData: *mut ::std::os::raw::c_void, 859 ) -> ::std::os::raw::c_int; 860 } 861 extern "C" { sqlite3_trace( arg1: *mut sqlite3, xTrace: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_char, ), >, arg2: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void862 pub fn sqlite3_trace( 863 arg1: *mut sqlite3, 864 xTrace: ::std::option::Option< 865 unsafe extern "C" fn( 866 arg1: *mut ::std::os::raw::c_void, 867 arg2: *const ::std::os::raw::c_char, 868 ), 869 >, 870 arg2: *mut ::std::os::raw::c_void, 871 ) -> *mut ::std::os::raw::c_void; 872 } 873 extern "C" { sqlite3_profile( arg1: *mut sqlite3, xProfile: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_uint64, ), >, arg2: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void874 pub fn sqlite3_profile( 875 arg1: *mut sqlite3, 876 xProfile: ::std::option::Option< 877 unsafe extern "C" fn( 878 arg1: *mut ::std::os::raw::c_void, 879 arg2: *const ::std::os::raw::c_char, 880 arg3: sqlite3_uint64, 881 ), 882 >, 883 arg2: *mut ::std::os::raw::c_void, 884 ) -> *mut ::std::os::raw::c_void; 885 } 886 extern "C" { sqlite3_trace_v2( arg1: *mut sqlite3, uMask: ::std::os::raw::c_uint, xCallback: ::std::option::Option< unsafe extern "C" fn( arg1: ::std::os::raw::c_uint, arg2: *mut ::std::os::raw::c_void, arg3: *mut ::std::os::raw::c_void, arg4: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >, pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int887 pub fn sqlite3_trace_v2( 888 arg1: *mut sqlite3, 889 uMask: ::std::os::raw::c_uint, 890 xCallback: ::std::option::Option< 891 unsafe extern "C" fn( 892 arg1: ::std::os::raw::c_uint, 893 arg2: *mut ::std::os::raw::c_void, 894 arg3: *mut ::std::os::raw::c_void, 895 arg4: *mut ::std::os::raw::c_void, 896 ) -> ::std::os::raw::c_int, 897 >, 898 pCtx: *mut ::std::os::raw::c_void, 899 ) -> ::std::os::raw::c_int; 900 } 901 extern "C" { sqlite3_progress_handler( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: ::std::option::Option< unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, >, arg4: *mut ::std::os::raw::c_void, )902 pub fn sqlite3_progress_handler( 903 arg1: *mut sqlite3, 904 arg2: ::std::os::raw::c_int, 905 arg3: ::std::option::Option< 906 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 907 >, 908 arg4: *mut ::std::os::raw::c_void, 909 ); 910 } 911 extern "C" { sqlite3_open( filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, ) -> ::std::os::raw::c_int912 pub fn sqlite3_open( 913 filename: *const ::std::os::raw::c_char, 914 ppDb: *mut *mut sqlite3, 915 ) -> ::std::os::raw::c_int; 916 } 917 extern "C" { sqlite3_open_v2( filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, flags: ::std::os::raw::c_int, zVfs: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int918 pub fn sqlite3_open_v2( 919 filename: *const ::std::os::raw::c_char, 920 ppDb: *mut *mut sqlite3, 921 flags: ::std::os::raw::c_int, 922 zVfs: *const ::std::os::raw::c_char, 923 ) -> ::std::os::raw::c_int; 924 } 925 extern "C" { sqlite3_uri_parameter( zFilename: *const ::std::os::raw::c_char, zParam: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char926 pub fn sqlite3_uri_parameter( 927 zFilename: *const ::std::os::raw::c_char, 928 zParam: *const ::std::os::raw::c_char, 929 ) -> *const ::std::os::raw::c_char; 930 } 931 extern "C" { sqlite3_uri_boolean( zFile: *const ::std::os::raw::c_char, zParam: *const ::std::os::raw::c_char, bDefault: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int932 pub fn sqlite3_uri_boolean( 933 zFile: *const ::std::os::raw::c_char, 934 zParam: *const ::std::os::raw::c_char, 935 bDefault: ::std::os::raw::c_int, 936 ) -> ::std::os::raw::c_int; 937 } 938 extern "C" { sqlite3_uri_int64( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_int64, ) -> sqlite3_int64939 pub fn sqlite3_uri_int64( 940 arg1: *const ::std::os::raw::c_char, 941 arg2: *const ::std::os::raw::c_char, 942 arg3: sqlite3_int64, 943 ) -> sqlite3_int64; 944 } 945 extern "C" { sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int946 pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; 947 } 948 extern "C" { sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int949 pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; 950 } 951 extern "C" { sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char952 pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char; 953 } 954 extern "C" { sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char955 pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; 956 } 957 #[repr(C)] 958 #[derive(Debug, Copy, Clone)] 959 pub struct sqlite3_stmt { 960 _unused: [u8; 0], 961 } 962 extern "C" { sqlite3_limit( arg1: *mut sqlite3, id: ::std::os::raw::c_int, newVal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int963 pub fn sqlite3_limit( 964 arg1: *mut sqlite3, 965 id: ::std::os::raw::c_int, 966 newVal: ::std::os::raw::c_int, 967 ) -> ::std::os::raw::c_int; 968 } 969 extern "C" { sqlite3_prepare_v2( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, nByte: ::std::os::raw::c_int, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int970 pub fn sqlite3_prepare_v2( 971 db: *mut sqlite3, 972 zSql: *const ::std::os::raw::c_char, 973 nByte: ::std::os::raw::c_int, 974 ppStmt: *mut *mut sqlite3_stmt, 975 pzTail: *mut *const ::std::os::raw::c_char, 976 ) -> ::std::os::raw::c_int; 977 } 978 extern "C" { sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char979 pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; 980 } 981 extern "C" { sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char982 pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char; 983 } 984 extern "C" { sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int985 pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 986 } 987 extern "C" { sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int988 pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 989 } 990 #[repr(C)] 991 #[derive(Debug, Copy, Clone)] 992 pub struct Mem { 993 _unused: [u8; 0], 994 } 995 pub type sqlite3_value = Mem; 996 #[repr(C)] 997 #[derive(Debug, Copy, Clone)] 998 pub struct sqlite3_context { 999 _unused: [u8; 0], 1000 } 1001 extern "C" { sqlite3_bind_blob( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1002 pub fn sqlite3_bind_blob( 1003 arg1: *mut sqlite3_stmt, 1004 arg2: ::std::os::raw::c_int, 1005 arg3: *const ::std::os::raw::c_void, 1006 n: ::std::os::raw::c_int, 1007 arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1008 ) -> ::std::os::raw::c_int; 1009 } 1010 extern "C" { sqlite3_bind_blob64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: sqlite3_uint64, arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1011 pub fn sqlite3_bind_blob64( 1012 arg1: *mut sqlite3_stmt, 1013 arg2: ::std::os::raw::c_int, 1014 arg3: *const ::std::os::raw::c_void, 1015 arg4: sqlite3_uint64, 1016 arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1017 ) -> ::std::os::raw::c_int; 1018 } 1019 extern "C" { sqlite3_bind_double( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64, ) -> ::std::os::raw::c_int1020 pub fn sqlite3_bind_double( 1021 arg1: *mut sqlite3_stmt, 1022 arg2: ::std::os::raw::c_int, 1023 arg3: f64, 1024 ) -> ::std::os::raw::c_int; 1025 } 1026 extern "C" { sqlite3_bind_int( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1027 pub fn sqlite3_bind_int( 1028 arg1: *mut sqlite3_stmt, 1029 arg2: ::std::os::raw::c_int, 1030 arg3: ::std::os::raw::c_int, 1031 ) -> ::std::os::raw::c_int; 1032 } 1033 extern "C" { sqlite3_bind_int64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_int64, ) -> ::std::os::raw::c_int1034 pub fn sqlite3_bind_int64( 1035 arg1: *mut sqlite3_stmt, 1036 arg2: ::std::os::raw::c_int, 1037 arg3: sqlite3_int64, 1038 ) -> ::std::os::raw::c_int; 1039 } 1040 extern "C" { sqlite3_bind_null( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1041 pub fn sqlite3_bind_null( 1042 arg1: *mut sqlite3_stmt, 1043 arg2: ::std::os::raw::c_int, 1044 ) -> ::std::os::raw::c_int; 1045 } 1046 extern "C" { sqlite3_bind_text( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: ::std::os::raw::c_int, arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1047 pub fn sqlite3_bind_text( 1048 arg1: *mut sqlite3_stmt, 1049 arg2: ::std::os::raw::c_int, 1050 arg3: *const ::std::os::raw::c_char, 1051 arg4: ::std::os::raw::c_int, 1052 arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1053 ) -> ::std::os::raw::c_int; 1054 } 1055 extern "C" { sqlite3_bind_text64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: sqlite3_uint64, arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, encoding: ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int1056 pub fn sqlite3_bind_text64( 1057 arg1: *mut sqlite3_stmt, 1058 arg2: ::std::os::raw::c_int, 1059 arg3: *const ::std::os::raw::c_char, 1060 arg4: sqlite3_uint64, 1061 arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1062 encoding: ::std::os::raw::c_uchar, 1063 ) -> ::std::os::raw::c_int; 1064 } 1065 extern "C" { sqlite3_bind_value( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const sqlite3_value, ) -> ::std::os::raw::c_int1066 pub fn sqlite3_bind_value( 1067 arg1: *mut sqlite3_stmt, 1068 arg2: ::std::os::raw::c_int, 1069 arg3: *const sqlite3_value, 1070 ) -> ::std::os::raw::c_int; 1071 } 1072 extern "C" { sqlite3_bind_zeroblob( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1073 pub fn sqlite3_bind_zeroblob( 1074 arg1: *mut sqlite3_stmt, 1075 arg2: ::std::os::raw::c_int, 1076 n: ::std::os::raw::c_int, 1077 ) -> ::std::os::raw::c_int; 1078 } 1079 extern "C" { sqlite3_bind_zeroblob64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_uint64, ) -> ::std::os::raw::c_int1080 pub fn sqlite3_bind_zeroblob64( 1081 arg1: *mut sqlite3_stmt, 1082 arg2: ::std::os::raw::c_int, 1083 arg3: sqlite3_uint64, 1084 ) -> ::std::os::raw::c_int; 1085 } 1086 extern "C" { sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1087 pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1088 } 1089 extern "C" { sqlite3_bind_parameter_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1090 pub fn sqlite3_bind_parameter_name( 1091 arg1: *mut sqlite3_stmt, 1092 arg2: ::std::os::raw::c_int, 1093 ) -> *const ::std::os::raw::c_char; 1094 } 1095 extern "C" { sqlite3_bind_parameter_index( arg1: *mut sqlite3_stmt, zName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1096 pub fn sqlite3_bind_parameter_index( 1097 arg1: *mut sqlite3_stmt, 1098 zName: *const ::std::os::raw::c_char, 1099 ) -> ::std::os::raw::c_int; 1100 } 1101 extern "C" { sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1102 pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1103 } 1104 extern "C" { sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1105 pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1106 } 1107 extern "C" { sqlite3_column_name( arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1108 pub fn sqlite3_column_name( 1109 arg1: *mut sqlite3_stmt, 1110 N: ::std::os::raw::c_int, 1111 ) -> *const ::std::os::raw::c_char; 1112 } 1113 extern "C" { sqlite3_column_database_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1114 pub fn sqlite3_column_database_name( 1115 arg1: *mut sqlite3_stmt, 1116 arg2: ::std::os::raw::c_int, 1117 ) -> *const ::std::os::raw::c_char; 1118 } 1119 extern "C" { sqlite3_column_table_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1120 pub fn sqlite3_column_table_name( 1121 arg1: *mut sqlite3_stmt, 1122 arg2: ::std::os::raw::c_int, 1123 ) -> *const ::std::os::raw::c_char; 1124 } 1125 extern "C" { sqlite3_column_origin_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1126 pub fn sqlite3_column_origin_name( 1127 arg1: *mut sqlite3_stmt, 1128 arg2: ::std::os::raw::c_int, 1129 ) -> *const ::std::os::raw::c_char; 1130 } 1131 extern "C" { sqlite3_column_decltype( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1132 pub fn sqlite3_column_decltype( 1133 arg1: *mut sqlite3_stmt, 1134 arg2: ::std::os::raw::c_int, 1135 ) -> *const ::std::os::raw::c_char; 1136 } 1137 extern "C" { sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1138 pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1139 } 1140 extern "C" { sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1141 pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1142 } 1143 extern "C" { sqlite3_column_blob( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_void1144 pub fn sqlite3_column_blob( 1145 arg1: *mut sqlite3_stmt, 1146 iCol: ::std::os::raw::c_int, 1147 ) -> *const ::std::os::raw::c_void; 1148 } 1149 extern "C" { sqlite3_column_bytes( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1150 pub fn sqlite3_column_bytes( 1151 arg1: *mut sqlite3_stmt, 1152 iCol: ::std::os::raw::c_int, 1153 ) -> ::std::os::raw::c_int; 1154 } 1155 extern "C" { sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f641156 pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64; 1157 } 1158 extern "C" { sqlite3_column_int( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1159 pub fn sqlite3_column_int( 1160 arg1: *mut sqlite3_stmt, 1161 iCol: ::std::os::raw::c_int, 1162 ) -> ::std::os::raw::c_int; 1163 } 1164 extern "C" { sqlite3_column_int64( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> sqlite3_int641165 pub fn sqlite3_column_int64( 1166 arg1: *mut sqlite3_stmt, 1167 iCol: ::std::os::raw::c_int, 1168 ) -> sqlite3_int64; 1169 } 1170 extern "C" { sqlite3_column_text( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_uchar1171 pub fn sqlite3_column_text( 1172 arg1: *mut sqlite3_stmt, 1173 iCol: ::std::os::raw::c_int, 1174 ) -> *const ::std::os::raw::c_uchar; 1175 } 1176 extern "C" { sqlite3_column_type( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1177 pub fn sqlite3_column_type( 1178 arg1: *mut sqlite3_stmt, 1179 iCol: ::std::os::raw::c_int, 1180 ) -> ::std::os::raw::c_int; 1181 } 1182 extern "C" { sqlite3_column_value( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *mut sqlite3_value1183 pub fn sqlite3_column_value( 1184 arg1: *mut sqlite3_stmt, 1185 iCol: ::std::os::raw::c_int, 1186 ) -> *mut sqlite3_value; 1187 } 1188 extern "C" { sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1189 pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1190 } 1191 extern "C" { sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1192 pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1193 } 1194 extern "C" { sqlite3_create_function_v2( db: *mut sqlite3, zFunctionName: *const ::std::os::raw::c_char, nArg: ::std::os::raw::c_int, eTextRep: ::std::os::raw::c_int, pApp: *mut ::std::os::raw::c_void, xFunc: ::std::option::Option< unsafe extern "C" fn( arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ), >, xStep: ::std::option::Option< unsafe extern "C" fn( arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ), >, xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1195 pub fn sqlite3_create_function_v2( 1196 db: *mut sqlite3, 1197 zFunctionName: *const ::std::os::raw::c_char, 1198 nArg: ::std::os::raw::c_int, 1199 eTextRep: ::std::os::raw::c_int, 1200 pApp: *mut ::std::os::raw::c_void, 1201 xFunc: ::std::option::Option< 1202 unsafe extern "C" fn( 1203 arg1: *mut sqlite3_context, 1204 arg2: ::std::os::raw::c_int, 1205 arg3: *mut *mut sqlite3_value, 1206 ), 1207 >, 1208 xStep: ::std::option::Option< 1209 unsafe extern "C" fn( 1210 arg1: *mut sqlite3_context, 1211 arg2: ::std::os::raw::c_int, 1212 arg3: *mut *mut sqlite3_value, 1213 ), 1214 >, 1215 xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, 1216 xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1217 ) -> ::std::os::raw::c_int; 1218 } 1219 extern "C" { sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int1220 pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; 1221 } 1222 extern "C" { sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1223 pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; 1224 } 1225 extern "C" { sqlite3_transfer_bindings( arg1: *mut sqlite3_stmt, arg2: *mut sqlite3_stmt, ) -> ::std::os::raw::c_int1226 pub fn sqlite3_transfer_bindings( 1227 arg1: *mut sqlite3_stmt, 1228 arg2: *mut sqlite3_stmt, 1229 ) -> ::std::os::raw::c_int; 1230 } 1231 extern "C" { sqlite3_global_recover() -> ::std::os::raw::c_int1232 pub fn sqlite3_global_recover() -> ::std::os::raw::c_int; 1233 } 1234 extern "C" { sqlite3_thread_cleanup()1235 pub fn sqlite3_thread_cleanup(); 1236 } 1237 extern "C" { sqlite3_memory_alarm( arg1: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: sqlite3_int64, arg3: ::std::os::raw::c_int, ), >, arg2: *mut ::std::os::raw::c_void, arg3: sqlite3_int64, ) -> ::std::os::raw::c_int1238 pub fn sqlite3_memory_alarm( 1239 arg1: ::std::option::Option< 1240 unsafe extern "C" fn( 1241 arg1: *mut ::std::os::raw::c_void, 1242 arg2: sqlite3_int64, 1243 arg3: ::std::os::raw::c_int, 1244 ), 1245 >, 1246 arg2: *mut ::std::os::raw::c_void, 1247 arg3: sqlite3_int64, 1248 ) -> ::std::os::raw::c_int; 1249 } 1250 extern "C" { sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1251 pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; 1252 } 1253 extern "C" { sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1254 pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; 1255 } 1256 extern "C" { sqlite3_value_double(arg1: *mut sqlite3_value) -> f641257 pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64; 1258 } 1259 extern "C" { sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1260 pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; 1261 } 1262 extern "C" { sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int641263 pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64; 1264 } 1265 extern "C" { sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar1266 pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar; 1267 } 1268 extern "C" { sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1269 pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; 1270 } 1271 extern "C" { sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1272 pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; 1273 } 1274 extern "C" { sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint1275 pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint; 1276 } 1277 extern "C" { sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value1278 pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value; 1279 } 1280 extern "C" { sqlite3_value_free(arg1: *mut sqlite3_value)1281 pub fn sqlite3_value_free(arg1: *mut sqlite3_value); 1282 } 1283 extern "C" { sqlite3_aggregate_context( arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void1284 pub fn sqlite3_aggregate_context( 1285 arg1: *mut sqlite3_context, 1286 nBytes: ::std::os::raw::c_int, 1287 ) -> *mut ::std::os::raw::c_void; 1288 } 1289 extern "C" { sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void1290 pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void; 1291 } 1292 extern "C" { sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite31293 pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3; 1294 } 1295 extern "C" { sqlite3_get_auxdata( arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void1296 pub fn sqlite3_get_auxdata( 1297 arg1: *mut sqlite3_context, 1298 N: ::std::os::raw::c_int, 1299 ) -> *mut ::std::os::raw::c_void; 1300 } 1301 extern "C" { sqlite3_set_auxdata( arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, )1302 pub fn sqlite3_set_auxdata( 1303 arg1: *mut sqlite3_context, 1304 N: ::std::os::raw::c_int, 1305 arg2: *mut ::std::os::raw::c_void, 1306 arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1307 ); 1308 } 1309 pub type sqlite3_destructor_type = 1310 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>; 1311 extern "C" { sqlite3_result_blob( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, )1312 pub fn sqlite3_result_blob( 1313 arg1: *mut sqlite3_context, 1314 arg2: *const ::std::os::raw::c_void, 1315 arg3: ::std::os::raw::c_int, 1316 arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1317 ); 1318 } 1319 extern "C" { sqlite3_result_blob64( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, arg3: sqlite3_uint64, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, )1320 pub fn sqlite3_result_blob64( 1321 arg1: *mut sqlite3_context, 1322 arg2: *const ::std::os::raw::c_void, 1323 arg3: sqlite3_uint64, 1324 arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1325 ); 1326 } 1327 extern "C" { sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64)1328 pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); 1329 } 1330 extern "C" { sqlite3_result_error( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, )1331 pub fn sqlite3_result_error( 1332 arg1: *mut sqlite3_context, 1333 arg2: *const ::std::os::raw::c_char, 1334 arg3: ::std::os::raw::c_int, 1335 ); 1336 } 1337 extern "C" { sqlite3_result_error_toobig(arg1: *mut sqlite3_context)1338 pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context); 1339 } 1340 extern "C" { sqlite3_result_error_nomem(arg1: *mut sqlite3_context)1341 pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context); 1342 } 1343 extern "C" { sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1344 pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); 1345 } 1346 extern "C" { sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1347 pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); 1348 } 1349 extern "C" { sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64)1350 pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64); 1351 } 1352 extern "C" { sqlite3_result_null(arg1: *mut sqlite3_context)1353 pub fn sqlite3_result_null(arg1: *mut sqlite3_context); 1354 } 1355 extern "C" { sqlite3_result_text( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, )1356 pub fn sqlite3_result_text( 1357 arg1: *mut sqlite3_context, 1358 arg2: *const ::std::os::raw::c_char, 1359 arg3: ::std::os::raw::c_int, 1360 arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1361 ); 1362 } 1363 extern "C" { sqlite3_result_text64( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_uint64, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, encoding: ::std::os::raw::c_uchar, )1364 pub fn sqlite3_result_text64( 1365 arg1: *mut sqlite3_context, 1366 arg2: *const ::std::os::raw::c_char, 1367 arg3: sqlite3_uint64, 1368 arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1369 encoding: ::std::os::raw::c_uchar, 1370 ); 1371 } 1372 extern "C" { sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value)1373 pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value); 1374 } 1375 extern "C" { sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int)1376 pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); 1377 } 1378 extern "C" { sqlite3_result_zeroblob64( arg1: *mut sqlite3_context, n: sqlite3_uint64, ) -> ::std::os::raw::c_int1379 pub fn sqlite3_result_zeroblob64( 1380 arg1: *mut sqlite3_context, 1381 n: sqlite3_uint64, 1382 ) -> ::std::os::raw::c_int; 1383 } 1384 extern "C" { sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint)1385 pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint); 1386 } 1387 extern "C" { sqlite3_create_collation_v2( arg1: *mut sqlite3, zName: *const ::std::os::raw::c_char, eTextRep: ::std::os::raw::c_int, pArg: *mut ::std::os::raw::c_void, xCompare: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_void, arg4: ::std::os::raw::c_int, arg5: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1388 pub fn sqlite3_create_collation_v2( 1389 arg1: *mut sqlite3, 1390 zName: *const ::std::os::raw::c_char, 1391 eTextRep: ::std::os::raw::c_int, 1392 pArg: *mut ::std::os::raw::c_void, 1393 xCompare: ::std::option::Option< 1394 unsafe extern "C" fn( 1395 arg1: *mut ::std::os::raw::c_void, 1396 arg2: ::std::os::raw::c_int, 1397 arg3: *const ::std::os::raw::c_void, 1398 arg4: ::std::os::raw::c_int, 1399 arg5: *const ::std::os::raw::c_void, 1400 ) -> ::std::os::raw::c_int, 1401 >, 1402 xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1403 ) -> ::std::os::raw::c_int; 1404 } 1405 extern "C" { sqlite3_collation_needed( arg1: *mut sqlite3, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: *mut sqlite3, eTextRep: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, ), >, ) -> ::std::os::raw::c_int1406 pub fn sqlite3_collation_needed( 1407 arg1: *mut sqlite3, 1408 arg2: *mut ::std::os::raw::c_void, 1409 arg3: ::std::option::Option< 1410 unsafe extern "C" fn( 1411 arg1: *mut ::std::os::raw::c_void, 1412 arg2: *mut sqlite3, 1413 eTextRep: ::std::os::raw::c_int, 1414 arg3: *const ::std::os::raw::c_char, 1415 ), 1416 >, 1417 ) -> ::std::os::raw::c_int; 1418 } 1419 extern "C" { sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1420 pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; 1421 } 1422 extern "C" { 1423 pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; 1424 } 1425 extern "C" { 1426 pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; 1427 } 1428 extern "C" { sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int1429 pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 1430 } 1431 extern "C" { sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite31432 pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; 1433 } 1434 extern "C" { sqlite3_db_filename( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char1435 pub fn sqlite3_db_filename( 1436 db: *mut sqlite3, 1437 zDbName: *const ::std::os::raw::c_char, 1438 ) -> *const ::std::os::raw::c_char; 1439 } 1440 extern "C" { sqlite3_db_readonly( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1441 pub fn sqlite3_db_readonly( 1442 db: *mut sqlite3, 1443 zDbName: *const ::std::os::raw::c_char, 1444 ) -> ::std::os::raw::c_int; 1445 } 1446 extern "C" { sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt1447 pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; 1448 } 1449 extern "C" { sqlite3_commit_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, >, arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void1450 pub fn sqlite3_commit_hook( 1451 arg1: *mut sqlite3, 1452 arg2: ::std::option::Option< 1453 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 1454 >, 1455 arg3: *mut ::std::os::raw::c_void, 1456 ) -> *mut ::std::os::raw::c_void; 1457 } 1458 extern "C" { sqlite3_rollback_hook( arg1: *mut sqlite3, arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void1459 pub fn sqlite3_rollback_hook( 1460 arg1: *mut sqlite3, 1461 arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1462 arg3: *mut ::std::os::raw::c_void, 1463 ) -> *mut ::std::os::raw::c_void; 1464 } 1465 extern "C" { sqlite3_update_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, arg3: *const ::std::os::raw::c_char, arg4: *const ::std::os::raw::c_char, arg5: sqlite3_int64, ), >, arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void1466 pub fn sqlite3_update_hook( 1467 arg1: *mut sqlite3, 1468 arg2: ::std::option::Option< 1469 unsafe extern "C" fn( 1470 arg1: *mut ::std::os::raw::c_void, 1471 arg2: ::std::os::raw::c_int, 1472 arg3: *const ::std::os::raw::c_char, 1473 arg4: *const ::std::os::raw::c_char, 1474 arg5: sqlite3_int64, 1475 ), 1476 >, 1477 arg3: *mut ::std::os::raw::c_void, 1478 ) -> *mut ::std::os::raw::c_void; 1479 } 1480 extern "C" { sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1481 pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; 1482 } 1483 extern "C" { sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1484 pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; 1485 } 1486 extern "C" { sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int1487 pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 1488 } 1489 extern "C" { sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int641490 pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; 1491 } 1492 extern "C" { sqlite3_soft_heap_limit(N: ::std::os::raw::c_int)1493 pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int); 1494 } 1495 extern "C" { sqlite3_table_column_metadata( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, zTableName: *const ::std::os::raw::c_char, zColumnName: *const ::std::os::raw::c_char, pzDataType: *mut *const ::std::os::raw::c_char, pzCollSeq: *mut *const ::std::os::raw::c_char, pNotNull: *mut ::std::os::raw::c_int, pPrimaryKey: *mut ::std::os::raw::c_int, pAutoinc: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1496 pub fn sqlite3_table_column_metadata( 1497 db: *mut sqlite3, 1498 zDbName: *const ::std::os::raw::c_char, 1499 zTableName: *const ::std::os::raw::c_char, 1500 zColumnName: *const ::std::os::raw::c_char, 1501 pzDataType: *mut *const ::std::os::raw::c_char, 1502 pzCollSeq: *mut *const ::std::os::raw::c_char, 1503 pNotNull: *mut ::std::os::raw::c_int, 1504 pPrimaryKey: *mut ::std::os::raw::c_int, 1505 pAutoinc: *mut ::std::os::raw::c_int, 1506 ) -> ::std::os::raw::c_int; 1507 } 1508 extern "C" { sqlite3_load_extension( db: *mut sqlite3, zFile: *const ::std::os::raw::c_char, zProc: *const ::std::os::raw::c_char, pzErrMsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1509 pub fn sqlite3_load_extension( 1510 db: *mut sqlite3, 1511 zFile: *const ::std::os::raw::c_char, 1512 zProc: *const ::std::os::raw::c_char, 1513 pzErrMsg: *mut *mut ::std::os::raw::c_char, 1514 ) -> ::std::os::raw::c_int; 1515 } 1516 extern "C" { sqlite3_enable_load_extension( db: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1517 pub fn sqlite3_enable_load_extension( 1518 db: *mut sqlite3, 1519 onoff: ::std::os::raw::c_int, 1520 ) -> ::std::os::raw::c_int; 1521 } 1522 extern "C" { sqlite3_reset_auto_extension()1523 pub fn sqlite3_reset_auto_extension(); 1524 } 1525 #[repr(C)] 1526 #[derive(Debug, Copy, Clone)] 1527 pub struct sqlite3_module { 1528 pub iVersion: ::std::os::raw::c_int, 1529 pub xCreate: ::std::option::Option< 1530 unsafe extern "C" fn( 1531 arg1: *mut sqlite3, 1532 pAux: *mut ::std::os::raw::c_void, 1533 argc: ::std::os::raw::c_int, 1534 argv: *const *const ::std::os::raw::c_char, 1535 ppVTab: *mut *mut sqlite3_vtab, 1536 arg2: *mut *mut ::std::os::raw::c_char, 1537 ) -> ::std::os::raw::c_int, 1538 >, 1539 pub xConnect: ::std::option::Option< 1540 unsafe extern "C" fn( 1541 arg1: *mut sqlite3, 1542 pAux: *mut ::std::os::raw::c_void, 1543 argc: ::std::os::raw::c_int, 1544 argv: *const *const ::std::os::raw::c_char, 1545 ppVTab: *mut *mut sqlite3_vtab, 1546 arg2: *mut *mut ::std::os::raw::c_char, 1547 ) -> ::std::os::raw::c_int, 1548 >, 1549 pub xBestIndex: ::std::option::Option< 1550 unsafe extern "C" fn( 1551 pVTab: *mut sqlite3_vtab, 1552 arg1: *mut sqlite3_index_info, 1553 ) -> ::std::os::raw::c_int, 1554 >, 1555 pub xDisconnect: ::std::option::Option< 1556 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1557 >, 1558 pub xDestroy: ::std::option::Option< 1559 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1560 >, 1561 pub xOpen: ::std::option::Option< 1562 unsafe extern "C" fn( 1563 pVTab: *mut sqlite3_vtab, 1564 ppCursor: *mut *mut sqlite3_vtab_cursor, 1565 ) -> ::std::os::raw::c_int, 1566 >, 1567 pub xClose: ::std::option::Option< 1568 unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, 1569 >, 1570 pub xFilter: ::std::option::Option< 1571 unsafe extern "C" fn( 1572 arg1: *mut sqlite3_vtab_cursor, 1573 idxNum: ::std::os::raw::c_int, 1574 idxStr: *const ::std::os::raw::c_char, 1575 argc: ::std::os::raw::c_int, 1576 argv: *mut *mut sqlite3_value, 1577 ) -> ::std::os::raw::c_int, 1578 >, 1579 pub xNext: ::std::option::Option< 1580 unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, 1581 >, 1582 pub xEof: ::std::option::Option< 1583 unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, 1584 >, 1585 pub xColumn: ::std::option::Option< 1586 unsafe extern "C" fn( 1587 arg1: *mut sqlite3_vtab_cursor, 1588 arg2: *mut sqlite3_context, 1589 arg3: ::std::os::raw::c_int, 1590 ) -> ::std::os::raw::c_int, 1591 >, 1592 pub xRowid: ::std::option::Option< 1593 unsafe extern "C" fn( 1594 arg1: *mut sqlite3_vtab_cursor, 1595 pRowid: *mut sqlite3_int64, 1596 ) -> ::std::os::raw::c_int, 1597 >, 1598 pub xUpdate: ::std::option::Option< 1599 unsafe extern "C" fn( 1600 arg1: *mut sqlite3_vtab, 1601 arg2: ::std::os::raw::c_int, 1602 arg3: *mut *mut sqlite3_value, 1603 arg4: *mut sqlite3_int64, 1604 ) -> ::std::os::raw::c_int, 1605 >, 1606 pub xBegin: ::std::option::Option< 1607 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1608 >, 1609 pub xSync: ::std::option::Option< 1610 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1611 >, 1612 pub xCommit: ::std::option::Option< 1613 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1614 >, 1615 pub xRollback: ::std::option::Option< 1616 unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, 1617 >, 1618 pub xFindFunction: ::std::option::Option< 1619 unsafe extern "C" fn( 1620 pVtab: *mut sqlite3_vtab, 1621 nArg: ::std::os::raw::c_int, 1622 zName: *const ::std::os::raw::c_char, 1623 pxFunc: *mut ::std::option::Option< 1624 unsafe extern "C" fn( 1625 arg1: *mut sqlite3_context, 1626 arg2: ::std::os::raw::c_int, 1627 arg3: *mut *mut sqlite3_value, 1628 ), 1629 >, 1630 ppArg: *mut *mut ::std::os::raw::c_void, 1631 ) -> ::std::os::raw::c_int, 1632 >, 1633 pub xRename: ::std::option::Option< 1634 unsafe extern "C" fn( 1635 pVtab: *mut sqlite3_vtab, 1636 zNew: *const ::std::os::raw::c_char, 1637 ) -> ::std::os::raw::c_int, 1638 >, 1639 pub xSavepoint: ::std::option::Option< 1640 unsafe extern "C" fn( 1641 pVTab: *mut sqlite3_vtab, 1642 arg1: ::std::os::raw::c_int, 1643 ) -> ::std::os::raw::c_int, 1644 >, 1645 pub xRelease: ::std::option::Option< 1646 unsafe extern "C" fn( 1647 pVTab: *mut sqlite3_vtab, 1648 arg1: ::std::os::raw::c_int, 1649 ) -> ::std::os::raw::c_int, 1650 >, 1651 pub xRollbackTo: ::std::option::Option< 1652 unsafe extern "C" fn( 1653 pVTab: *mut sqlite3_vtab, 1654 arg1: ::std::os::raw::c_int, 1655 ) -> ::std::os::raw::c_int, 1656 >, 1657 } 1658 #[repr(C)] 1659 #[derive(Debug, Copy, Clone)] 1660 pub struct sqlite3_index_info { 1661 pub nConstraint: ::std::os::raw::c_int, 1662 pub aConstraint: *mut sqlite3_index_constraint, 1663 pub nOrderBy: ::std::os::raw::c_int, 1664 pub aOrderBy: *mut sqlite3_index_orderby, 1665 pub aConstraintUsage: *mut sqlite3_index_constraint_usage, 1666 pub idxNum: ::std::os::raw::c_int, 1667 pub idxStr: *mut ::std::os::raw::c_char, 1668 pub needToFreeIdxStr: ::std::os::raw::c_int, 1669 pub orderByConsumed: ::std::os::raw::c_int, 1670 pub estimatedCost: f64, 1671 pub estimatedRows: sqlite3_int64, 1672 pub idxFlags: ::std::os::raw::c_int, 1673 pub colUsed: sqlite3_uint64, 1674 } 1675 #[repr(C)] 1676 #[derive(Debug, Copy, Clone)] 1677 pub struct sqlite3_index_constraint { 1678 pub iColumn: ::std::os::raw::c_int, 1679 pub op: ::std::os::raw::c_uchar, 1680 pub usable: ::std::os::raw::c_uchar, 1681 pub iTermOffset: ::std::os::raw::c_int, 1682 } 1683 #[repr(C)] 1684 #[derive(Debug, Copy, Clone)] 1685 pub struct sqlite3_index_orderby { 1686 pub iColumn: ::std::os::raw::c_int, 1687 pub desc: ::std::os::raw::c_uchar, 1688 } 1689 #[repr(C)] 1690 #[derive(Debug, Copy, Clone)] 1691 pub struct sqlite3_index_constraint_usage { 1692 pub argvIndex: ::std::os::raw::c_int, 1693 pub omit: ::std::os::raw::c_uchar, 1694 } 1695 extern "C" { sqlite3_create_module_v2( db: *mut sqlite3, zName: *const ::std::os::raw::c_char, p: *const sqlite3_module, pClientData: *mut ::std::os::raw::c_void, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1696 pub fn sqlite3_create_module_v2( 1697 db: *mut sqlite3, 1698 zName: *const ::std::os::raw::c_char, 1699 p: *const sqlite3_module, 1700 pClientData: *mut ::std::os::raw::c_void, 1701 xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1702 ) -> ::std::os::raw::c_int; 1703 } 1704 #[repr(C)] 1705 #[derive(Debug, Copy, Clone)] 1706 pub struct sqlite3_vtab { 1707 pub pModule: *const sqlite3_module, 1708 pub nRef: ::std::os::raw::c_int, 1709 pub zErrMsg: *mut ::std::os::raw::c_char, 1710 } 1711 #[repr(C)] 1712 #[derive(Debug, Copy, Clone)] 1713 pub struct sqlite3_vtab_cursor { 1714 pub pVtab: *mut sqlite3_vtab, 1715 } 1716 extern "C" { sqlite3_declare_vtab( arg1: *mut sqlite3, zSQL: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1717 pub fn sqlite3_declare_vtab( 1718 arg1: *mut sqlite3, 1719 zSQL: *const ::std::os::raw::c_char, 1720 ) -> ::std::os::raw::c_int; 1721 } 1722 extern "C" { sqlite3_overload_function( arg1: *mut sqlite3, zFuncName: *const ::std::os::raw::c_char, nArg: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1723 pub fn sqlite3_overload_function( 1724 arg1: *mut sqlite3, 1725 zFuncName: *const ::std::os::raw::c_char, 1726 nArg: ::std::os::raw::c_int, 1727 ) -> ::std::os::raw::c_int; 1728 } 1729 #[repr(C)] 1730 #[derive(Debug, Copy, Clone)] 1731 pub struct sqlite3_blob { 1732 _unused: [u8; 0], 1733 } 1734 extern "C" { sqlite3_blob_open( arg1: *mut sqlite3, zDb: *const ::std::os::raw::c_char, zTable: *const ::std::os::raw::c_char, zColumn: *const ::std::os::raw::c_char, iRow: sqlite3_int64, flags: ::std::os::raw::c_int, ppBlob: *mut *mut sqlite3_blob, ) -> ::std::os::raw::c_int1735 pub fn sqlite3_blob_open( 1736 arg1: *mut sqlite3, 1737 zDb: *const ::std::os::raw::c_char, 1738 zTable: *const ::std::os::raw::c_char, 1739 zColumn: *const ::std::os::raw::c_char, 1740 iRow: sqlite3_int64, 1741 flags: ::std::os::raw::c_int, 1742 ppBlob: *mut *mut sqlite3_blob, 1743 ) -> ::std::os::raw::c_int; 1744 } 1745 extern "C" { sqlite3_blob_reopen( arg1: *mut sqlite3_blob, arg2: sqlite3_int64, ) -> ::std::os::raw::c_int1746 pub fn sqlite3_blob_reopen( 1747 arg1: *mut sqlite3_blob, 1748 arg2: sqlite3_int64, 1749 ) -> ::std::os::raw::c_int; 1750 } 1751 extern "C" { sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1752 pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; 1753 } 1754 extern "C" { sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int1755 pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; 1756 } 1757 extern "C" { sqlite3_blob_read( arg1: *mut sqlite3_blob, Z: *mut ::std::os::raw::c_void, N: ::std::os::raw::c_int, iOffset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1758 pub fn sqlite3_blob_read( 1759 arg1: *mut sqlite3_blob, 1760 Z: *mut ::std::os::raw::c_void, 1761 N: ::std::os::raw::c_int, 1762 iOffset: ::std::os::raw::c_int, 1763 ) -> ::std::os::raw::c_int; 1764 } 1765 extern "C" { sqlite3_blob_write( arg1: *mut sqlite3_blob, z: *const ::std::os::raw::c_void, n: ::std::os::raw::c_int, iOffset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1766 pub fn sqlite3_blob_write( 1767 arg1: *mut sqlite3_blob, 1768 z: *const ::std::os::raw::c_void, 1769 n: ::std::os::raw::c_int, 1770 iOffset: ::std::os::raw::c_int, 1771 ) -> ::std::os::raw::c_int; 1772 } 1773 extern "C" { sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs1774 pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs; 1775 } 1776 extern "C" { sqlite3_vfs_register( arg1: *mut sqlite3_vfs, makeDflt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1777 pub fn sqlite3_vfs_register( 1778 arg1: *mut sqlite3_vfs, 1779 makeDflt: ::std::os::raw::c_int, 1780 ) -> ::std::os::raw::c_int; 1781 } 1782 extern "C" { sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int1783 pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int; 1784 } 1785 extern "C" { sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex1786 pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex; 1787 } 1788 extern "C" { sqlite3_mutex_free(arg1: *mut sqlite3_mutex)1789 pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex); 1790 } 1791 extern "C" { sqlite3_mutex_enter(arg1: *mut sqlite3_mutex)1792 pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex); 1793 } 1794 extern "C" { sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1795 pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; 1796 } 1797 extern "C" { sqlite3_mutex_leave(arg1: *mut sqlite3_mutex)1798 pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex); 1799 } 1800 #[repr(C)] 1801 #[derive(Debug, Copy, Clone)] 1802 pub struct sqlite3_mutex_methods { 1803 pub xMutexInit: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, 1804 pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, 1805 pub xMutexAlloc: ::std::option::Option< 1806 unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex, 1807 >, 1808 pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, 1809 pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, 1810 pub xMutexTry: ::std::option::Option< 1811 unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, 1812 >, 1813 pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, 1814 pub xMutexHeld: ::std::option::Option< 1815 unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, 1816 >, 1817 pub xMutexNotheld: ::std::option::Option< 1818 unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, 1819 >, 1820 } 1821 extern "C" { sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1822 pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; 1823 } 1824 extern "C" { sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int1825 pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; 1826 } 1827 extern "C" { sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex1828 pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex; 1829 } 1830 extern "C" { sqlite3_file_control( arg1: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, op: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int1831 pub fn sqlite3_file_control( 1832 arg1: *mut sqlite3, 1833 zDbName: *const ::std::os::raw::c_char, 1834 op: ::std::os::raw::c_int, 1835 arg2: *mut ::std::os::raw::c_void, 1836 ) -> ::std::os::raw::c_int; 1837 } 1838 extern "C" { sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int1839 pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; 1840 } 1841 extern "C" { sqlite3_status( op: ::std::os::raw::c_int, pCurrent: *mut ::std::os::raw::c_int, pHighwater: *mut ::std::os::raw::c_int, resetFlag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1842 pub fn sqlite3_status( 1843 op: ::std::os::raw::c_int, 1844 pCurrent: *mut ::std::os::raw::c_int, 1845 pHighwater: *mut ::std::os::raw::c_int, 1846 resetFlag: ::std::os::raw::c_int, 1847 ) -> ::std::os::raw::c_int; 1848 } 1849 extern "C" { sqlite3_status64( op: ::std::os::raw::c_int, pCurrent: *mut sqlite3_int64, pHighwater: *mut sqlite3_int64, resetFlag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1850 pub fn sqlite3_status64( 1851 op: ::std::os::raw::c_int, 1852 pCurrent: *mut sqlite3_int64, 1853 pHighwater: *mut sqlite3_int64, 1854 resetFlag: ::std::os::raw::c_int, 1855 ) -> ::std::os::raw::c_int; 1856 } 1857 extern "C" { sqlite3_db_status( arg1: *mut sqlite3, op: ::std::os::raw::c_int, pCur: *mut ::std::os::raw::c_int, pHiwtr: *mut ::std::os::raw::c_int, resetFlg: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1858 pub fn sqlite3_db_status( 1859 arg1: *mut sqlite3, 1860 op: ::std::os::raw::c_int, 1861 pCur: *mut ::std::os::raw::c_int, 1862 pHiwtr: *mut ::std::os::raw::c_int, 1863 resetFlg: ::std::os::raw::c_int, 1864 ) -> ::std::os::raw::c_int; 1865 } 1866 extern "C" { sqlite3_stmt_status( arg1: *mut sqlite3_stmt, op: ::std::os::raw::c_int, resetFlg: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1867 pub fn sqlite3_stmt_status( 1868 arg1: *mut sqlite3_stmt, 1869 op: ::std::os::raw::c_int, 1870 resetFlg: ::std::os::raw::c_int, 1871 ) -> ::std::os::raw::c_int; 1872 } 1873 #[repr(C)] 1874 #[derive(Debug, Copy, Clone)] 1875 pub struct sqlite3_pcache { 1876 _unused: [u8; 0], 1877 } 1878 #[repr(C)] 1879 #[derive(Debug, Copy, Clone)] 1880 pub struct sqlite3_pcache_page { 1881 pub pBuf: *mut ::std::os::raw::c_void, 1882 pub pExtra: *mut ::std::os::raw::c_void, 1883 } 1884 #[repr(C)] 1885 #[derive(Debug, Copy, Clone)] 1886 pub struct sqlite3_pcache_methods2 { 1887 pub iVersion: ::std::os::raw::c_int, 1888 pub pArg: *mut ::std::os::raw::c_void, 1889 pub xInit: ::std::option::Option< 1890 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 1891 >, 1892 pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1893 pub xCreate: ::std::option::Option< 1894 unsafe extern "C" fn( 1895 szPage: ::std::os::raw::c_int, 1896 szExtra: ::std::os::raw::c_int, 1897 bPurgeable: ::std::os::raw::c_int, 1898 ) -> *mut sqlite3_pcache, 1899 >, 1900 pub xCachesize: ::std::option::Option< 1901 unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), 1902 >, 1903 pub xPagecount: ::std::option::Option< 1904 unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, 1905 >, 1906 pub xFetch: ::std::option::Option< 1907 unsafe extern "C" fn( 1908 arg1: *mut sqlite3_pcache, 1909 key: ::std::os::raw::c_uint, 1910 createFlag: ::std::os::raw::c_int, 1911 ) -> *mut sqlite3_pcache_page, 1912 >, 1913 pub xUnpin: ::std::option::Option< 1914 unsafe extern "C" fn( 1915 arg1: *mut sqlite3_pcache, 1916 arg2: *mut sqlite3_pcache_page, 1917 discard: ::std::os::raw::c_int, 1918 ), 1919 >, 1920 pub xRekey: ::std::option::Option< 1921 unsafe extern "C" fn( 1922 arg1: *mut sqlite3_pcache, 1923 arg2: *mut sqlite3_pcache_page, 1924 oldKey: ::std::os::raw::c_uint, 1925 newKey: ::std::os::raw::c_uint, 1926 ), 1927 >, 1928 pub xTruncate: ::std::option::Option< 1929 unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), 1930 >, 1931 pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, 1932 pub xShrink: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, 1933 } 1934 #[repr(C)] 1935 #[derive(Debug, Copy, Clone)] 1936 pub struct sqlite3_pcache_methods { 1937 pub pArg: *mut ::std::os::raw::c_void, 1938 pub xInit: ::std::option::Option< 1939 unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, 1940 >, 1941 pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 1942 pub xCreate: ::std::option::Option< 1943 unsafe extern "C" fn( 1944 szPage: ::std::os::raw::c_int, 1945 bPurgeable: ::std::os::raw::c_int, 1946 ) -> *mut sqlite3_pcache, 1947 >, 1948 pub xCachesize: ::std::option::Option< 1949 unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), 1950 >, 1951 pub xPagecount: ::std::option::Option< 1952 unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, 1953 >, 1954 pub xFetch: ::std::option::Option< 1955 unsafe extern "C" fn( 1956 arg1: *mut sqlite3_pcache, 1957 key: ::std::os::raw::c_uint, 1958 createFlag: ::std::os::raw::c_int, 1959 ) -> *mut ::std::os::raw::c_void, 1960 >, 1961 pub xUnpin: ::std::option::Option< 1962 unsafe extern "C" fn( 1963 arg1: *mut sqlite3_pcache, 1964 arg2: *mut ::std::os::raw::c_void, 1965 discard: ::std::os::raw::c_int, 1966 ), 1967 >, 1968 pub xRekey: ::std::option::Option< 1969 unsafe extern "C" fn( 1970 arg1: *mut sqlite3_pcache, 1971 arg2: *mut ::std::os::raw::c_void, 1972 oldKey: ::std::os::raw::c_uint, 1973 newKey: ::std::os::raw::c_uint, 1974 ), 1975 >, 1976 pub xTruncate: ::std::option::Option< 1977 unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), 1978 >, 1979 pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, 1980 } 1981 #[repr(C)] 1982 #[derive(Debug, Copy, Clone)] 1983 pub struct sqlite3_backup { 1984 _unused: [u8; 0], 1985 } 1986 extern "C" { sqlite3_backup_init( pDest: *mut sqlite3, zDestName: *const ::std::os::raw::c_char, pSource: *mut sqlite3, zSourceName: *const ::std::os::raw::c_char, ) -> *mut sqlite3_backup1987 pub fn sqlite3_backup_init( 1988 pDest: *mut sqlite3, 1989 zDestName: *const ::std::os::raw::c_char, 1990 pSource: *mut sqlite3, 1991 zSourceName: *const ::std::os::raw::c_char, 1992 ) -> *mut sqlite3_backup; 1993 } 1994 extern "C" { sqlite3_backup_step( p: *mut sqlite3_backup, nPage: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1995 pub fn sqlite3_backup_step( 1996 p: *mut sqlite3_backup, 1997 nPage: ::std::os::raw::c_int, 1998 ) -> ::std::os::raw::c_int; 1999 } 2000 extern "C" { sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2001 pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; 2002 } 2003 extern "C" { sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2004 pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; 2005 } 2006 extern "C" { sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2007 pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; 2008 } 2009 extern "C" { sqlite3_unlock_notify( pBlocked: *mut sqlite3, xNotify: ::std::option::Option< unsafe extern "C" fn( apArg: *mut *mut ::std::os::raw::c_void, nArg: ::std::os::raw::c_int, ), >, pNotifyArg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2010 pub fn sqlite3_unlock_notify( 2011 pBlocked: *mut sqlite3, 2012 xNotify: ::std::option::Option< 2013 unsafe extern "C" fn( 2014 apArg: *mut *mut ::std::os::raw::c_void, 2015 nArg: ::std::os::raw::c_int, 2016 ), 2017 >, 2018 pNotifyArg: *mut ::std::os::raw::c_void, 2019 ) -> ::std::os::raw::c_int; 2020 } 2021 extern "C" { sqlite3_stricmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2022 pub fn sqlite3_stricmp( 2023 arg1: *const ::std::os::raw::c_char, 2024 arg2: *const ::std::os::raw::c_char, 2025 ) -> ::std::os::raw::c_int; 2026 } 2027 extern "C" { sqlite3_strnicmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2028 pub fn sqlite3_strnicmp( 2029 arg1: *const ::std::os::raw::c_char, 2030 arg2: *const ::std::os::raw::c_char, 2031 arg3: ::std::os::raw::c_int, 2032 ) -> ::std::os::raw::c_int; 2033 } 2034 extern "C" { sqlite3_strglob( zGlob: *const ::std::os::raw::c_char, zStr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2035 pub fn sqlite3_strglob( 2036 zGlob: *const ::std::os::raw::c_char, 2037 zStr: *const ::std::os::raw::c_char, 2038 ) -> ::std::os::raw::c_int; 2039 } 2040 extern "C" { sqlite3_strlike( zGlob: *const ::std::os::raw::c_char, zStr: *const ::std::os::raw::c_char, cEsc: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int2041 pub fn sqlite3_strlike( 2042 zGlob: *const ::std::os::raw::c_char, 2043 zStr: *const ::std::os::raw::c_char, 2044 cEsc: ::std::os::raw::c_uint, 2045 ) -> ::std::os::raw::c_int; 2046 } 2047 extern "C" { sqlite3_log( iErrCode: ::std::os::raw::c_int, zFormat: *const ::std::os::raw::c_char, ... )2048 pub fn sqlite3_log( 2049 iErrCode: ::std::os::raw::c_int, 2050 zFormat: *const ::std::os::raw::c_char, 2051 ... 2052 ); 2053 } 2054 extern "C" { sqlite3_wal_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: *mut sqlite3, arg3: *const ::std::os::raw::c_char, arg4: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void2055 pub fn sqlite3_wal_hook( 2056 arg1: *mut sqlite3, 2057 arg2: ::std::option::Option< 2058 unsafe extern "C" fn( 2059 arg1: *mut ::std::os::raw::c_void, 2060 arg2: *mut sqlite3, 2061 arg3: *const ::std::os::raw::c_char, 2062 arg4: ::std::os::raw::c_int, 2063 ) -> ::std::os::raw::c_int, 2064 >, 2065 arg3: *mut ::std::os::raw::c_void, 2066 ) -> *mut ::std::os::raw::c_void; 2067 } 2068 extern "C" { sqlite3_wal_autocheckpoint( db: *mut sqlite3, N: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2069 pub fn sqlite3_wal_autocheckpoint( 2070 db: *mut sqlite3, 2071 N: ::std::os::raw::c_int, 2072 ) -> ::std::os::raw::c_int; 2073 } 2074 extern "C" { sqlite3_wal_checkpoint( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2075 pub fn sqlite3_wal_checkpoint( 2076 db: *mut sqlite3, 2077 zDb: *const ::std::os::raw::c_char, 2078 ) -> ::std::os::raw::c_int; 2079 } 2080 extern "C" { sqlite3_wal_checkpoint_v2( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, eMode: ::std::os::raw::c_int, pnLog: *mut ::std::os::raw::c_int, pnCkpt: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2081 pub fn sqlite3_wal_checkpoint_v2( 2082 db: *mut sqlite3, 2083 zDb: *const ::std::os::raw::c_char, 2084 eMode: ::std::os::raw::c_int, 2085 pnLog: *mut ::std::os::raw::c_int, 2086 pnCkpt: *mut ::std::os::raw::c_int, 2087 ) -> ::std::os::raw::c_int; 2088 } 2089 extern "C" { sqlite3_vtab_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, ... ) -> ::std::os::raw::c_int2090 pub fn sqlite3_vtab_config( 2091 arg1: *mut sqlite3, 2092 op: ::std::os::raw::c_int, 2093 ... 2094 ) -> ::std::os::raw::c_int; 2095 } 2096 extern "C" { sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int2097 pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 2098 } 2099 extern "C" { sqlite3_stmt_scanstatus( pStmt: *mut sqlite3_stmt, idx: ::std::os::raw::c_int, iScanStatusOp: ::std::os::raw::c_int, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2100 pub fn sqlite3_stmt_scanstatus( 2101 pStmt: *mut sqlite3_stmt, 2102 idx: ::std::os::raw::c_int, 2103 iScanStatusOp: ::std::os::raw::c_int, 2104 pOut: *mut ::std::os::raw::c_void, 2105 ) -> ::std::os::raw::c_int; 2106 } 2107 extern "C" { sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt)2108 pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); 2109 } 2110 extern "C" { sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int2111 pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 2112 } 2113 extern "C" { sqlite3_preupdate_hook( db: *mut sqlite3, xPreUpdate: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, db: *mut sqlite3, op: ::std::os::raw::c_int, zDb: *const ::std::os::raw::c_char, zName: *const ::std::os::raw::c_char, iKey1: sqlite3_int64, iKey2: sqlite3_int64, ), >, arg1: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void2114 pub fn sqlite3_preupdate_hook( 2115 db: *mut sqlite3, 2116 xPreUpdate: ::std::option::Option< 2117 unsafe extern "C" fn( 2118 pCtx: *mut ::std::os::raw::c_void, 2119 db: *mut sqlite3, 2120 op: ::std::os::raw::c_int, 2121 zDb: *const ::std::os::raw::c_char, 2122 zName: *const ::std::os::raw::c_char, 2123 iKey1: sqlite3_int64, 2124 iKey2: sqlite3_int64, 2125 ), 2126 >, 2127 arg1: *mut ::std::os::raw::c_void, 2128 ) -> *mut ::std::os::raw::c_void; 2129 } 2130 extern "C" { sqlite3_preupdate_old( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2131 pub fn sqlite3_preupdate_old( 2132 arg1: *mut sqlite3, 2133 arg2: ::std::os::raw::c_int, 2134 arg3: *mut *mut sqlite3_value, 2135 ) -> ::std::os::raw::c_int; 2136 } 2137 extern "C" { sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int2138 pub fn sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 2139 } 2140 extern "C" { sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int2141 pub fn sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 2142 } 2143 extern "C" { sqlite3_preupdate_new( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2144 pub fn sqlite3_preupdate_new( 2145 arg1: *mut sqlite3, 2146 arg2: ::std::os::raw::c_int, 2147 arg3: *mut *mut sqlite3_value, 2148 ) -> ::std::os::raw::c_int; 2149 } 2150 extern "C" { sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int2151 pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; 2152 } 2153 #[repr(C)] 2154 #[derive(Debug, Copy, Clone)] 2155 pub struct sqlite3_snapshot { 2156 _unused: [u8; 0], 2157 } 2158 extern "C" { sqlite3_snapshot_get( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, ppSnapshot: *mut *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2159 pub fn sqlite3_snapshot_get( 2160 db: *mut sqlite3, 2161 zSchema: *const ::std::os::raw::c_char, 2162 ppSnapshot: *mut *mut sqlite3_snapshot, 2163 ) -> ::std::os::raw::c_int; 2164 } 2165 extern "C" { sqlite3_snapshot_open( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, pSnapshot: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2166 pub fn sqlite3_snapshot_open( 2167 db: *mut sqlite3, 2168 zSchema: *const ::std::os::raw::c_char, 2169 pSnapshot: *mut sqlite3_snapshot, 2170 ) -> ::std::os::raw::c_int; 2171 } 2172 extern "C" { sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot)2173 pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot); 2174 } 2175 extern "C" { sqlite3_snapshot_cmp( p1: *mut sqlite3_snapshot, p2: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2176 pub fn sqlite3_snapshot_cmp( 2177 p1: *mut sqlite3_snapshot, 2178 p2: *mut sqlite3_snapshot, 2179 ) -> ::std::os::raw::c_int; 2180 } 2181 pub type sqlite3_rtree_dbl = f64; 2182 extern "C" { sqlite3_rtree_geometry_callback( db: *mut sqlite3, zGeom: *const ::std::os::raw::c_char, xGeom: ::std::option::Option< unsafe extern "C" fn( arg1: *mut sqlite3_rtree_geometry, arg2: ::std::os::raw::c_int, arg3: *mut sqlite3_rtree_dbl, arg4: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pContext: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2183 pub fn sqlite3_rtree_geometry_callback( 2184 db: *mut sqlite3, 2185 zGeom: *const ::std::os::raw::c_char, 2186 xGeom: ::std::option::Option< 2187 unsafe extern "C" fn( 2188 arg1: *mut sqlite3_rtree_geometry, 2189 arg2: ::std::os::raw::c_int, 2190 arg3: *mut sqlite3_rtree_dbl, 2191 arg4: *mut ::std::os::raw::c_int, 2192 ) -> ::std::os::raw::c_int, 2193 >, 2194 pContext: *mut ::std::os::raw::c_void, 2195 ) -> ::std::os::raw::c_int; 2196 } 2197 #[repr(C)] 2198 #[derive(Debug, Copy, Clone)] 2199 pub struct sqlite3_rtree_geometry { 2200 pub pContext: *mut ::std::os::raw::c_void, 2201 pub nParam: ::std::os::raw::c_int, 2202 pub aParam: *mut sqlite3_rtree_dbl, 2203 pub pUser: *mut ::std::os::raw::c_void, 2204 pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2205 } 2206 extern "C" { sqlite3_rtree_query_callback( db: *mut sqlite3, zQueryFunc: *const ::std::os::raw::c_char, xQueryFunc: ::std::option::Option< unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int, >, pContext: *mut ::std::os::raw::c_void, xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int2207 pub fn sqlite3_rtree_query_callback( 2208 db: *mut sqlite3, 2209 zQueryFunc: *const ::std::os::raw::c_char, 2210 xQueryFunc: ::std::option::Option< 2211 unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int, 2212 >, 2213 pContext: *mut ::std::os::raw::c_void, 2214 xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2215 ) -> ::std::os::raw::c_int; 2216 } 2217 #[repr(C)] 2218 #[derive(Debug, Copy, Clone)] 2219 pub struct sqlite3_rtree_query_info { 2220 pub pContext: *mut ::std::os::raw::c_void, 2221 pub nParam: ::std::os::raw::c_int, 2222 pub aParam: *mut sqlite3_rtree_dbl, 2223 pub pUser: *mut ::std::os::raw::c_void, 2224 pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2225 pub aCoord: *mut sqlite3_rtree_dbl, 2226 pub anQueue: *mut ::std::os::raw::c_uint, 2227 pub nCoord: ::std::os::raw::c_int, 2228 pub iLevel: ::std::os::raw::c_int, 2229 pub mxLevel: ::std::os::raw::c_int, 2230 pub iRowid: sqlite3_int64, 2231 pub rParentScore: sqlite3_rtree_dbl, 2232 pub eParentWithin: ::std::os::raw::c_int, 2233 pub eWithin: ::std::os::raw::c_int, 2234 pub rScore: sqlite3_rtree_dbl, 2235 pub apSqlParam: *mut *mut sqlite3_value, 2236 } 2237 #[repr(C)] 2238 #[derive(Debug, Copy, Clone)] 2239 pub struct sqlite3_session { 2240 _unused: [u8; 0], 2241 } 2242 #[repr(C)] 2243 #[derive(Debug, Copy, Clone)] 2244 pub struct sqlite3_changeset_iter { 2245 _unused: [u8; 0], 2246 } 2247 extern "C" { sqlite3session_create( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ppSession: *mut *mut sqlite3_session, ) -> ::std::os::raw::c_int2248 pub fn sqlite3session_create( 2249 db: *mut sqlite3, 2250 zDb: *const ::std::os::raw::c_char, 2251 ppSession: *mut *mut sqlite3_session, 2252 ) -> ::std::os::raw::c_int; 2253 } 2254 extern "C" { sqlite3session_delete(pSession: *mut sqlite3_session)2255 pub fn sqlite3session_delete(pSession: *mut sqlite3_session); 2256 } 2257 extern "C" { sqlite3session_enable( pSession: *mut sqlite3_session, bEnable: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2258 pub fn sqlite3session_enable( 2259 pSession: *mut sqlite3_session, 2260 bEnable: ::std::os::raw::c_int, 2261 ) -> ::std::os::raw::c_int; 2262 } 2263 extern "C" { sqlite3session_indirect( pSession: *mut sqlite3_session, bIndirect: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2264 pub fn sqlite3session_indirect( 2265 pSession: *mut sqlite3_session, 2266 bIndirect: ::std::os::raw::c_int, 2267 ) -> ::std::os::raw::c_int; 2268 } 2269 extern "C" { sqlite3session_attach( pSession: *mut sqlite3_session, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2270 pub fn sqlite3session_attach( 2271 pSession: *mut sqlite3_session, 2272 zTab: *const ::std::os::raw::c_char, 2273 ) -> ::std::os::raw::c_int; 2274 } 2275 extern "C" { sqlite3session_table_filter( pSession: *mut sqlite3_session, xFilter: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >, pCtx: *mut ::std::os::raw::c_void, )2276 pub fn sqlite3session_table_filter( 2277 pSession: *mut sqlite3_session, 2278 xFilter: ::std::option::Option< 2279 unsafe extern "C" fn( 2280 pCtx: *mut ::std::os::raw::c_void, 2281 zTab: *const ::std::os::raw::c_char, 2282 ) -> ::std::os::raw::c_int, 2283 >, 2284 pCtx: *mut ::std::os::raw::c_void, 2285 ); 2286 } 2287 extern "C" { sqlite3session_changeset( pSession: *mut sqlite3_session, pnChangeset: *mut ::std::os::raw::c_int, ppChangeset: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2288 pub fn sqlite3session_changeset( 2289 pSession: *mut sqlite3_session, 2290 pnChangeset: *mut ::std::os::raw::c_int, 2291 ppChangeset: *mut *mut ::std::os::raw::c_void, 2292 ) -> ::std::os::raw::c_int; 2293 } 2294 extern "C" { sqlite3session_diff( pSession: *mut sqlite3_session, zFromDb: *const ::std::os::raw::c_char, zTbl: *const ::std::os::raw::c_char, pzErrMsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2295 pub fn sqlite3session_diff( 2296 pSession: *mut sqlite3_session, 2297 zFromDb: *const ::std::os::raw::c_char, 2298 zTbl: *const ::std::os::raw::c_char, 2299 pzErrMsg: *mut *mut ::std::os::raw::c_char, 2300 ) -> ::std::os::raw::c_int; 2301 } 2302 extern "C" { sqlite3session_patchset( pSession: *mut sqlite3_session, pnPatchset: *mut ::std::os::raw::c_int, ppPatchset: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2303 pub fn sqlite3session_patchset( 2304 pSession: *mut sqlite3_session, 2305 pnPatchset: *mut ::std::os::raw::c_int, 2306 ppPatchset: *mut *mut ::std::os::raw::c_void, 2307 ) -> ::std::os::raw::c_int; 2308 } 2309 extern "C" { sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int2310 pub fn sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int; 2311 } 2312 extern "C" { sqlite3changeset_start( pp: *mut *mut sqlite3_changeset_iter, nChangeset: ::std::os::raw::c_int, pChangeset: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2313 pub fn sqlite3changeset_start( 2314 pp: *mut *mut sqlite3_changeset_iter, 2315 nChangeset: ::std::os::raw::c_int, 2316 pChangeset: *mut ::std::os::raw::c_void, 2317 ) -> ::std::os::raw::c_int; 2318 } 2319 extern "C" { sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int2320 pub fn sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; 2321 } 2322 extern "C" { sqlite3changeset_op( pIter: *mut sqlite3_changeset_iter, pzTab: *mut *const ::std::os::raw::c_char, pnCol: *mut ::std::os::raw::c_int, pOp: *mut ::std::os::raw::c_int, pbIndirect: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2323 pub fn sqlite3changeset_op( 2324 pIter: *mut sqlite3_changeset_iter, 2325 pzTab: *mut *const ::std::os::raw::c_char, 2326 pnCol: *mut ::std::os::raw::c_int, 2327 pOp: *mut ::std::os::raw::c_int, 2328 pbIndirect: *mut ::std::os::raw::c_int, 2329 ) -> ::std::os::raw::c_int; 2330 } 2331 extern "C" { sqlite3changeset_pk( pIter: *mut sqlite3_changeset_iter, pabPK: *mut *mut ::std::os::raw::c_uchar, pnCol: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2332 pub fn sqlite3changeset_pk( 2333 pIter: *mut sqlite3_changeset_iter, 2334 pabPK: *mut *mut ::std::os::raw::c_uchar, 2335 pnCol: *mut ::std::os::raw::c_int, 2336 ) -> ::std::os::raw::c_int; 2337 } 2338 extern "C" { sqlite3changeset_old( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2339 pub fn sqlite3changeset_old( 2340 pIter: *mut sqlite3_changeset_iter, 2341 iVal: ::std::os::raw::c_int, 2342 ppValue: *mut *mut sqlite3_value, 2343 ) -> ::std::os::raw::c_int; 2344 } 2345 extern "C" { sqlite3changeset_new( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2346 pub fn sqlite3changeset_new( 2347 pIter: *mut sqlite3_changeset_iter, 2348 iVal: ::std::os::raw::c_int, 2349 ppValue: *mut *mut sqlite3_value, 2350 ) -> ::std::os::raw::c_int; 2351 } 2352 extern "C" { sqlite3changeset_conflict( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2353 pub fn sqlite3changeset_conflict( 2354 pIter: *mut sqlite3_changeset_iter, 2355 iVal: ::std::os::raw::c_int, 2356 ppValue: *mut *mut sqlite3_value, 2357 ) -> ::std::os::raw::c_int; 2358 } 2359 extern "C" { sqlite3changeset_fk_conflicts( pIter: *mut sqlite3_changeset_iter, pnOut: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2360 pub fn sqlite3changeset_fk_conflicts( 2361 pIter: *mut sqlite3_changeset_iter, 2362 pnOut: *mut ::std::os::raw::c_int, 2363 ) -> ::std::os::raw::c_int; 2364 } 2365 extern "C" { sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int2366 pub fn sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; 2367 } 2368 extern "C" { sqlite3changeset_invert( nIn: ::std::os::raw::c_int, pIn: *const ::std::os::raw::c_void, pnOut: *mut ::std::os::raw::c_int, ppOut: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2369 pub fn sqlite3changeset_invert( 2370 nIn: ::std::os::raw::c_int, 2371 pIn: *const ::std::os::raw::c_void, 2372 pnOut: *mut ::std::os::raw::c_int, 2373 ppOut: *mut *mut ::std::os::raw::c_void, 2374 ) -> ::std::os::raw::c_int; 2375 } 2376 extern "C" { sqlite3changeset_concat( nA: ::std::os::raw::c_int, pA: *mut ::std::os::raw::c_void, nB: ::std::os::raw::c_int, pB: *mut ::std::os::raw::c_void, pnOut: *mut ::std::os::raw::c_int, ppOut: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2377 pub fn sqlite3changeset_concat( 2378 nA: ::std::os::raw::c_int, 2379 pA: *mut ::std::os::raw::c_void, 2380 nB: ::std::os::raw::c_int, 2381 pB: *mut ::std::os::raw::c_void, 2382 pnOut: *mut ::std::os::raw::c_int, 2383 ppOut: *mut *mut ::std::os::raw::c_void, 2384 ) -> ::std::os::raw::c_int; 2385 } 2386 #[repr(C)] 2387 #[derive(Debug, Copy, Clone)] 2388 pub struct sqlite3_changegroup { 2389 _unused: [u8; 0], 2390 } 2391 extern "C" { sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int2392 pub fn sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int; 2393 } 2394 extern "C" { sqlite3changegroup_add( arg1: *mut sqlite3_changegroup, nData: ::std::os::raw::c_int, pData: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2395 pub fn sqlite3changegroup_add( 2396 arg1: *mut sqlite3_changegroup, 2397 nData: ::std::os::raw::c_int, 2398 pData: *mut ::std::os::raw::c_void, 2399 ) -> ::std::os::raw::c_int; 2400 } 2401 extern "C" { sqlite3changegroup_output( arg1: *mut sqlite3_changegroup, pnData: *mut ::std::os::raw::c_int, ppData: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2402 pub fn sqlite3changegroup_output( 2403 arg1: *mut sqlite3_changegroup, 2404 pnData: *mut ::std::os::raw::c_int, 2405 ppData: *mut *mut ::std::os::raw::c_void, 2406 ) -> ::std::os::raw::c_int; 2407 } 2408 extern "C" { sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup)2409 pub fn sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup); 2410 } 2411 extern "C" { sqlite3changeset_apply( db: *mut sqlite3, nChangeset: ::std::os::raw::c_int, pChangeset: *mut ::std::os::raw::c_void, xFilter: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >, xConflict: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, eConflict: ::std::os::raw::c_int, p: *mut sqlite3_changeset_iter, ) -> ::std::os::raw::c_int, >, pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2412 pub fn sqlite3changeset_apply( 2413 db: *mut sqlite3, 2414 nChangeset: ::std::os::raw::c_int, 2415 pChangeset: *mut ::std::os::raw::c_void, 2416 xFilter: ::std::option::Option< 2417 unsafe extern "C" fn( 2418 pCtx: *mut ::std::os::raw::c_void, 2419 zTab: *const ::std::os::raw::c_char, 2420 ) -> ::std::os::raw::c_int, 2421 >, 2422 xConflict: ::std::option::Option< 2423 unsafe extern "C" fn( 2424 pCtx: *mut ::std::os::raw::c_void, 2425 eConflict: ::std::os::raw::c_int, 2426 p: *mut sqlite3_changeset_iter, 2427 ) -> ::std::os::raw::c_int, 2428 >, 2429 pCtx: *mut ::std::os::raw::c_void, 2430 ) -> ::std::os::raw::c_int; 2431 } 2432 extern "C" { sqlite3changeset_apply_strm( db: *mut sqlite3, xInput: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pIn: *mut ::std::os::raw::c_void, xFilter: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >, xConflict: ::std::option::Option< unsafe extern "C" fn( pCtx: *mut ::std::os::raw::c_void, eConflict: ::std::os::raw::c_int, p: *mut sqlite3_changeset_iter, ) -> ::std::os::raw::c_int, >, pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2433 pub fn sqlite3changeset_apply_strm( 2434 db: *mut sqlite3, 2435 xInput: ::std::option::Option< 2436 unsafe extern "C" fn( 2437 pIn: *mut ::std::os::raw::c_void, 2438 pData: *mut ::std::os::raw::c_void, 2439 pnData: *mut ::std::os::raw::c_int, 2440 ) -> ::std::os::raw::c_int, 2441 >, 2442 pIn: *mut ::std::os::raw::c_void, 2443 xFilter: ::std::option::Option< 2444 unsafe extern "C" fn( 2445 pCtx: *mut ::std::os::raw::c_void, 2446 zTab: *const ::std::os::raw::c_char, 2447 ) -> ::std::os::raw::c_int, 2448 >, 2449 xConflict: ::std::option::Option< 2450 unsafe extern "C" fn( 2451 pCtx: *mut ::std::os::raw::c_void, 2452 eConflict: ::std::os::raw::c_int, 2453 p: *mut sqlite3_changeset_iter, 2454 ) -> ::std::os::raw::c_int, 2455 >, 2456 pCtx: *mut ::std::os::raw::c_void, 2457 ) -> ::std::os::raw::c_int; 2458 } 2459 extern "C" { sqlite3changeset_concat_strm( xInputA: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pInA: *mut ::std::os::raw::c_void, xInputB: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pInB: *mut ::std::os::raw::c_void, xOutput: ::std::option::Option< unsafe extern "C" fn( pOut: *mut ::std::os::raw::c_void, pData: *const ::std::os::raw::c_void, nData: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2460 pub fn sqlite3changeset_concat_strm( 2461 xInputA: ::std::option::Option< 2462 unsafe extern "C" fn( 2463 pIn: *mut ::std::os::raw::c_void, 2464 pData: *mut ::std::os::raw::c_void, 2465 pnData: *mut ::std::os::raw::c_int, 2466 ) -> ::std::os::raw::c_int, 2467 >, 2468 pInA: *mut ::std::os::raw::c_void, 2469 xInputB: ::std::option::Option< 2470 unsafe extern "C" fn( 2471 pIn: *mut ::std::os::raw::c_void, 2472 pData: *mut ::std::os::raw::c_void, 2473 pnData: *mut ::std::os::raw::c_int, 2474 ) -> ::std::os::raw::c_int, 2475 >, 2476 pInB: *mut ::std::os::raw::c_void, 2477 xOutput: ::std::option::Option< 2478 unsafe extern "C" fn( 2479 pOut: *mut ::std::os::raw::c_void, 2480 pData: *const ::std::os::raw::c_void, 2481 nData: ::std::os::raw::c_int, 2482 ) -> ::std::os::raw::c_int, 2483 >, 2484 pOut: *mut ::std::os::raw::c_void, 2485 ) -> ::std::os::raw::c_int; 2486 } 2487 extern "C" { sqlite3changeset_invert_strm( xInput: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pIn: *mut ::std::os::raw::c_void, xOutput: ::std::option::Option< unsafe extern "C" fn( pOut: *mut ::std::os::raw::c_void, pData: *const ::std::os::raw::c_void, nData: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2488 pub fn sqlite3changeset_invert_strm( 2489 xInput: ::std::option::Option< 2490 unsafe extern "C" fn( 2491 pIn: *mut ::std::os::raw::c_void, 2492 pData: *mut ::std::os::raw::c_void, 2493 pnData: *mut ::std::os::raw::c_int, 2494 ) -> ::std::os::raw::c_int, 2495 >, 2496 pIn: *mut ::std::os::raw::c_void, 2497 xOutput: ::std::option::Option< 2498 unsafe extern "C" fn( 2499 pOut: *mut ::std::os::raw::c_void, 2500 pData: *const ::std::os::raw::c_void, 2501 nData: ::std::os::raw::c_int, 2502 ) -> ::std::os::raw::c_int, 2503 >, 2504 pOut: *mut ::std::os::raw::c_void, 2505 ) -> ::std::os::raw::c_int; 2506 } 2507 extern "C" { sqlite3changeset_start_strm( pp: *mut *mut sqlite3_changeset_iter, xInput: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pIn: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2508 pub fn sqlite3changeset_start_strm( 2509 pp: *mut *mut sqlite3_changeset_iter, 2510 xInput: ::std::option::Option< 2511 unsafe extern "C" fn( 2512 pIn: *mut ::std::os::raw::c_void, 2513 pData: *mut ::std::os::raw::c_void, 2514 pnData: *mut ::std::os::raw::c_int, 2515 ) -> ::std::os::raw::c_int, 2516 >, 2517 pIn: *mut ::std::os::raw::c_void, 2518 ) -> ::std::os::raw::c_int; 2519 } 2520 extern "C" { sqlite3session_changeset_strm( pSession: *mut sqlite3_session, xOutput: ::std::option::Option< unsafe extern "C" fn( pOut: *mut ::std::os::raw::c_void, pData: *const ::std::os::raw::c_void, nData: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2521 pub fn sqlite3session_changeset_strm( 2522 pSession: *mut sqlite3_session, 2523 xOutput: ::std::option::Option< 2524 unsafe extern "C" fn( 2525 pOut: *mut ::std::os::raw::c_void, 2526 pData: *const ::std::os::raw::c_void, 2527 nData: ::std::os::raw::c_int, 2528 ) -> ::std::os::raw::c_int, 2529 >, 2530 pOut: *mut ::std::os::raw::c_void, 2531 ) -> ::std::os::raw::c_int; 2532 } 2533 extern "C" { sqlite3session_patchset_strm( pSession: *mut sqlite3_session, xOutput: ::std::option::Option< unsafe extern "C" fn( pOut: *mut ::std::os::raw::c_void, pData: *const ::std::os::raw::c_void, nData: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2534 pub fn sqlite3session_patchset_strm( 2535 pSession: *mut sqlite3_session, 2536 xOutput: ::std::option::Option< 2537 unsafe extern "C" fn( 2538 pOut: *mut ::std::os::raw::c_void, 2539 pData: *const ::std::os::raw::c_void, 2540 nData: ::std::os::raw::c_int, 2541 ) -> ::std::os::raw::c_int, 2542 >, 2543 pOut: *mut ::std::os::raw::c_void, 2544 ) -> ::std::os::raw::c_int; 2545 } 2546 extern "C" { sqlite3changegroup_add_strm( arg1: *mut sqlite3_changegroup, xInput: ::std::option::Option< unsafe extern "C" fn( pIn: *mut ::std::os::raw::c_void, pData: *mut ::std::os::raw::c_void, pnData: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pIn: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2547 pub fn sqlite3changegroup_add_strm( 2548 arg1: *mut sqlite3_changegroup, 2549 xInput: ::std::option::Option< 2550 unsafe extern "C" fn( 2551 pIn: *mut ::std::os::raw::c_void, 2552 pData: *mut ::std::os::raw::c_void, 2553 pnData: *mut ::std::os::raw::c_int, 2554 ) -> ::std::os::raw::c_int, 2555 >, 2556 pIn: *mut ::std::os::raw::c_void, 2557 ) -> ::std::os::raw::c_int; 2558 } 2559 extern "C" { sqlite3changegroup_output_strm( arg1: *mut sqlite3_changegroup, xOutput: ::std::option::Option< unsafe extern "C" fn( pOut: *mut ::std::os::raw::c_void, pData: *const ::std::os::raw::c_void, nData: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2560 pub fn sqlite3changegroup_output_strm( 2561 arg1: *mut sqlite3_changegroup, 2562 xOutput: ::std::option::Option< 2563 unsafe extern "C" fn( 2564 pOut: *mut ::std::os::raw::c_void, 2565 pData: *const ::std::os::raw::c_void, 2566 nData: ::std::os::raw::c_int, 2567 ) -> ::std::os::raw::c_int, 2568 >, 2569 pOut: *mut ::std::os::raw::c_void, 2570 ) -> ::std::os::raw::c_int; 2571 } 2572 #[repr(C)] 2573 #[derive(Debug, Copy, Clone)] 2574 pub struct Fts5Context { 2575 _unused: [u8; 0], 2576 } 2577 pub type fts5_extension_function = ::std::option::Option< 2578 unsafe extern "C" fn( 2579 pApi: *const Fts5ExtensionApi, 2580 pFts: *mut Fts5Context, 2581 pCtx: *mut sqlite3_context, 2582 nVal: ::std::os::raw::c_int, 2583 apVal: *mut *mut sqlite3_value, 2584 ), 2585 >; 2586 #[repr(C)] 2587 #[derive(Debug, Copy, Clone)] 2588 pub struct Fts5PhraseIter { 2589 pub a: *const ::std::os::raw::c_uchar, 2590 pub b: *const ::std::os::raw::c_uchar, 2591 } 2592 #[repr(C)] 2593 #[derive(Debug, Copy, Clone)] 2594 pub struct Fts5ExtensionApi { 2595 pub iVersion: ::std::os::raw::c_int, 2596 pub xUserData: ::std::option::Option< 2597 unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut ::std::os::raw::c_void, 2598 >, 2599 pub xColumnCount: ::std::option::Option< 2600 unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, 2601 >, 2602 pub xRowCount: ::std::option::Option< 2603 unsafe extern "C" fn( 2604 arg1: *mut Fts5Context, 2605 pnRow: *mut sqlite3_int64, 2606 ) -> ::std::os::raw::c_int, 2607 >, 2608 pub xColumnTotalSize: ::std::option::Option< 2609 unsafe extern "C" fn( 2610 arg1: *mut Fts5Context, 2611 iCol: ::std::os::raw::c_int, 2612 pnToken: *mut sqlite3_int64, 2613 ) -> ::std::os::raw::c_int, 2614 >, 2615 pub xTokenize: ::std::option::Option< 2616 unsafe extern "C" fn( 2617 arg1: *mut Fts5Context, 2618 pText: *const ::std::os::raw::c_char, 2619 nText: ::std::os::raw::c_int, 2620 pCtx: *mut ::std::os::raw::c_void, 2621 xToken: ::std::option::Option< 2622 unsafe extern "C" fn( 2623 arg1: *mut ::std::os::raw::c_void, 2624 arg2: ::std::os::raw::c_int, 2625 arg3: *const ::std::os::raw::c_char, 2626 arg4: ::std::os::raw::c_int, 2627 arg5: ::std::os::raw::c_int, 2628 arg6: ::std::os::raw::c_int, 2629 ) -> ::std::os::raw::c_int, 2630 >, 2631 ) -> ::std::os::raw::c_int, 2632 >, 2633 pub xPhraseCount: ::std::option::Option< 2634 unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, 2635 >, 2636 pub xPhraseSize: ::std::option::Option< 2637 unsafe extern "C" fn( 2638 arg1: *mut Fts5Context, 2639 iPhrase: ::std::os::raw::c_int, 2640 ) -> ::std::os::raw::c_int, 2641 >, 2642 pub xInstCount: ::std::option::Option< 2643 unsafe extern "C" fn( 2644 arg1: *mut Fts5Context, 2645 pnInst: *mut ::std::os::raw::c_int, 2646 ) -> ::std::os::raw::c_int, 2647 >, 2648 pub xInst: ::std::option::Option< 2649 unsafe extern "C" fn( 2650 arg1: *mut Fts5Context, 2651 iIdx: ::std::os::raw::c_int, 2652 piPhrase: *mut ::std::os::raw::c_int, 2653 piCol: *mut ::std::os::raw::c_int, 2654 piOff: *mut ::std::os::raw::c_int, 2655 ) -> ::std::os::raw::c_int, 2656 >, 2657 pub xRowid: 2658 ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>, 2659 pub xColumnText: ::std::option::Option< 2660 unsafe extern "C" fn( 2661 arg1: *mut Fts5Context, 2662 iCol: ::std::os::raw::c_int, 2663 pz: *mut *const ::std::os::raw::c_char, 2664 pn: *mut ::std::os::raw::c_int, 2665 ) -> ::std::os::raw::c_int, 2666 >, 2667 pub xColumnSize: ::std::option::Option< 2668 unsafe extern "C" fn( 2669 arg1: *mut Fts5Context, 2670 iCol: ::std::os::raw::c_int, 2671 pnToken: *mut ::std::os::raw::c_int, 2672 ) -> ::std::os::raw::c_int, 2673 >, 2674 pub xQueryPhrase: ::std::option::Option< 2675 unsafe extern "C" fn( 2676 arg1: *mut Fts5Context, 2677 iPhrase: ::std::os::raw::c_int, 2678 pUserData: *mut ::std::os::raw::c_void, 2679 arg2: ::std::option::Option< 2680 unsafe extern "C" fn( 2681 arg1: *const Fts5ExtensionApi, 2682 arg2: *mut Fts5Context, 2683 arg3: *mut ::std::os::raw::c_void, 2684 ) -> ::std::os::raw::c_int, 2685 >, 2686 ) -> ::std::os::raw::c_int, 2687 >, 2688 pub xSetAuxdata: ::std::option::Option< 2689 unsafe extern "C" fn( 2690 arg1: *mut Fts5Context, 2691 pAux: *mut ::std::os::raw::c_void, 2692 xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2693 ) -> ::std::os::raw::c_int, 2694 >, 2695 pub xGetAuxdata: ::std::option::Option< 2696 unsafe extern "C" fn( 2697 arg1: *mut Fts5Context, 2698 bClear: ::std::os::raw::c_int, 2699 ) -> *mut ::std::os::raw::c_void, 2700 >, 2701 pub xPhraseFirst: ::std::option::Option< 2702 unsafe extern "C" fn( 2703 arg1: *mut Fts5Context, 2704 iPhrase: ::std::os::raw::c_int, 2705 arg2: *mut Fts5PhraseIter, 2706 arg3: *mut ::std::os::raw::c_int, 2707 arg4: *mut ::std::os::raw::c_int, 2708 ) -> ::std::os::raw::c_int, 2709 >, 2710 pub xPhraseNext: ::std::option::Option< 2711 unsafe extern "C" fn( 2712 arg1: *mut Fts5Context, 2713 arg2: *mut Fts5PhraseIter, 2714 piCol: *mut ::std::os::raw::c_int, 2715 piOff: *mut ::std::os::raw::c_int, 2716 ), 2717 >, 2718 pub xPhraseFirstColumn: ::std::option::Option< 2719 unsafe extern "C" fn( 2720 arg1: *mut Fts5Context, 2721 iPhrase: ::std::os::raw::c_int, 2722 arg2: *mut Fts5PhraseIter, 2723 arg3: *mut ::std::os::raw::c_int, 2724 ) -> ::std::os::raw::c_int, 2725 >, 2726 pub xPhraseNextColumn: ::std::option::Option< 2727 unsafe extern "C" fn( 2728 arg1: *mut Fts5Context, 2729 arg2: *mut Fts5PhraseIter, 2730 piCol: *mut ::std::os::raw::c_int, 2731 ), 2732 >, 2733 } 2734 #[repr(C)] 2735 #[derive(Debug, Copy, Clone)] 2736 pub struct Fts5Tokenizer { 2737 _unused: [u8; 0], 2738 } 2739 #[repr(C)] 2740 #[derive(Debug, Copy, Clone)] 2741 pub struct fts5_tokenizer { 2742 pub xCreate: ::std::option::Option< 2743 unsafe extern "C" fn( 2744 arg1: *mut ::std::os::raw::c_void, 2745 azArg: *mut *const ::std::os::raw::c_char, 2746 nArg: ::std::os::raw::c_int, 2747 ppOut: *mut *mut Fts5Tokenizer, 2748 ) -> ::std::os::raw::c_int, 2749 >, 2750 pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Tokenizer)>, 2751 pub xTokenize: ::std::option::Option< 2752 unsafe extern "C" fn( 2753 arg1: *mut Fts5Tokenizer, 2754 pCtx: *mut ::std::os::raw::c_void, 2755 flags: ::std::os::raw::c_int, 2756 pText: *const ::std::os::raw::c_char, 2757 nText: ::std::os::raw::c_int, 2758 xToken: ::std::option::Option< 2759 unsafe extern "C" fn( 2760 pCtx: *mut ::std::os::raw::c_void, 2761 tflags: ::std::os::raw::c_int, 2762 pToken: *const ::std::os::raw::c_char, 2763 nToken: ::std::os::raw::c_int, 2764 iStart: ::std::os::raw::c_int, 2765 iEnd: ::std::os::raw::c_int, 2766 ) -> ::std::os::raw::c_int, 2767 >, 2768 ) -> ::std::os::raw::c_int, 2769 >, 2770 } 2771 #[repr(C)] 2772 #[derive(Debug, Copy, Clone)] 2773 pub struct fts5_api { 2774 pub iVersion: ::std::os::raw::c_int, 2775 pub xCreateTokenizer: ::std::option::Option< 2776 unsafe extern "C" fn( 2777 pApi: *mut fts5_api, 2778 zName: *const ::std::os::raw::c_char, 2779 pContext: *mut ::std::os::raw::c_void, 2780 pTokenizer: *mut fts5_tokenizer, 2781 xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2782 ) -> ::std::os::raw::c_int, 2783 >, 2784 pub xFindTokenizer: ::std::option::Option< 2785 unsafe extern "C" fn( 2786 pApi: *mut fts5_api, 2787 zName: *const ::std::os::raw::c_char, 2788 ppContext: *mut *mut ::std::os::raw::c_void, 2789 pTokenizer: *mut fts5_tokenizer, 2790 ) -> ::std::os::raw::c_int, 2791 >, 2792 pub xCreateFunction: ::std::option::Option< 2793 unsafe extern "C" fn( 2794 pApi: *mut fts5_api, 2795 zName: *const ::std::os::raw::c_char, 2796 pContext: *mut ::std::os::raw::c_void, 2797 xFunction: fts5_extension_function, 2798 xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, 2799 ) -> ::std::os::raw::c_int, 2800 >, 2801 } 2802