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.45.3\0";
27 pub const SQLITE_VERSION_NUMBER: i32 = 3045003;
28 pub const SQLITE_SOURCE_ID: &[u8; 85] =
29     b"2024-04-15 13:34:05 8653b758870e6ef0c98d46b3ace27849054af85da891eb121e9aaa537f1ealt1\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_ERROR_MISSING_COLLSEQ: i32 = 257;
62 pub const SQLITE_ERROR_RETRY: i32 = 513;
63 pub const SQLITE_ERROR_SNAPSHOT: i32 = 769;
64 pub const SQLITE_IOERR_READ: i32 = 266;
65 pub const SQLITE_IOERR_SHORT_READ: i32 = 522;
66 pub const SQLITE_IOERR_WRITE: i32 = 778;
67 pub const SQLITE_IOERR_FSYNC: i32 = 1034;
68 pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290;
69 pub const SQLITE_IOERR_TRUNCATE: i32 = 1546;
70 pub const SQLITE_IOERR_FSTAT: i32 = 1802;
71 pub const SQLITE_IOERR_UNLOCK: i32 = 2058;
72 pub const SQLITE_IOERR_RDLOCK: i32 = 2314;
73 pub const SQLITE_IOERR_DELETE: i32 = 2570;
74 pub const SQLITE_IOERR_BLOCKED: i32 = 2826;
75 pub const SQLITE_IOERR_NOMEM: i32 = 3082;
76 pub const SQLITE_IOERR_ACCESS: i32 = 3338;
77 pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594;
78 pub const SQLITE_IOERR_LOCK: i32 = 3850;
79 pub const SQLITE_IOERR_CLOSE: i32 = 4106;
80 pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362;
81 pub const SQLITE_IOERR_SHMOPEN: i32 = 4618;
82 pub const SQLITE_IOERR_SHMSIZE: i32 = 4874;
83 pub const SQLITE_IOERR_SHMLOCK: i32 = 5130;
84 pub const SQLITE_IOERR_SHMMAP: i32 = 5386;
85 pub const SQLITE_IOERR_SEEK: i32 = 5642;
86 pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898;
87 pub const SQLITE_IOERR_MMAP: i32 = 6154;
88 pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410;
89 pub const SQLITE_IOERR_CONVPATH: i32 = 6666;
90 pub const SQLITE_IOERR_VNODE: i32 = 6922;
91 pub const SQLITE_IOERR_AUTH: i32 = 7178;
92 pub const SQLITE_IOERR_BEGIN_ATOMIC: i32 = 7434;
93 pub const SQLITE_IOERR_COMMIT_ATOMIC: i32 = 7690;
94 pub const SQLITE_IOERR_ROLLBACK_ATOMIC: i32 = 7946;
95 pub const SQLITE_IOERR_DATA: i32 = 8202;
96 pub const SQLITE_IOERR_CORRUPTFS: i32 = 8458;
97 pub const SQLITE_IOERR_IN_PAGE: i32 = 8714;
98 pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262;
99 pub const SQLITE_LOCKED_VTAB: i32 = 518;
100 pub const SQLITE_BUSY_RECOVERY: i32 = 261;
101 pub const SQLITE_BUSY_SNAPSHOT: i32 = 517;
102 pub const SQLITE_BUSY_TIMEOUT: i32 = 773;
103 pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270;
104 pub const SQLITE_CANTOPEN_ISDIR: i32 = 526;
105 pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782;
106 pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038;
107 pub const SQLITE_CANTOPEN_DIRTYWAL: i32 = 1294;
108 pub const SQLITE_CANTOPEN_SYMLINK: i32 = 1550;
109 pub const SQLITE_CORRUPT_VTAB: i32 = 267;
110 pub const SQLITE_CORRUPT_SEQUENCE: i32 = 523;
111 pub const SQLITE_CORRUPT_INDEX: i32 = 779;
112 pub const SQLITE_READONLY_RECOVERY: i32 = 264;
113 pub const SQLITE_READONLY_CANTLOCK: i32 = 520;
114 pub const SQLITE_READONLY_ROLLBACK: i32 = 776;
115 pub const SQLITE_READONLY_DBMOVED: i32 = 1032;
116 pub const SQLITE_READONLY_CANTINIT: i32 = 1288;
117 pub const SQLITE_READONLY_DIRECTORY: i32 = 1544;
118 pub const SQLITE_ABORT_ROLLBACK: i32 = 516;
119 pub const SQLITE_CONSTRAINT_CHECK: i32 = 275;
120 pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531;
121 pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787;
122 pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043;
123 pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299;
124 pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555;
125 pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811;
126 pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067;
127 pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323;
128 pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579;
129 pub const SQLITE_CONSTRAINT_PINNED: i32 = 2835;
130 pub const SQLITE_CONSTRAINT_DATATYPE: i32 = 3091;
131 pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283;
132 pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539;
133 pub const SQLITE_NOTICE_RBU: i32 = 795;
134 pub const SQLITE_WARNING_AUTOINDEX: i32 = 284;
135 pub const SQLITE_AUTH_USER: i32 = 279;
136 pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256;
137 pub const SQLITE_OK_SYMLINK: i32 = 512;
138 pub const SQLITE_OPEN_READONLY: i32 = 1;
139 pub const SQLITE_OPEN_READWRITE: i32 = 2;
140 pub const SQLITE_OPEN_CREATE: i32 = 4;
141 pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8;
142 pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16;
143 pub const SQLITE_OPEN_AUTOPROXY: i32 = 32;
144 pub const SQLITE_OPEN_URI: i32 = 64;
145 pub const SQLITE_OPEN_MEMORY: i32 = 128;
146 pub const SQLITE_OPEN_MAIN_DB: i32 = 256;
147 pub const SQLITE_OPEN_TEMP_DB: i32 = 512;
148 pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024;
149 pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048;
150 pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096;
151 pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192;
152 pub const SQLITE_OPEN_SUPER_JOURNAL: i32 = 16384;
153 pub const SQLITE_OPEN_NOMUTEX: i32 = 32768;
154 pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536;
155 pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072;
156 pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144;
157 pub const SQLITE_OPEN_WAL: i32 = 524288;
158 pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216;
159 pub const SQLITE_OPEN_EXRESCODE: i32 = 33554432;
160 pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384;
161 pub const SQLITE_IOCAP_ATOMIC: i32 = 1;
162 pub const SQLITE_IOCAP_ATOMIC512: i32 = 2;
163 pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4;
164 pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8;
165 pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16;
166 pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32;
167 pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64;
168 pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128;
169 pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256;
170 pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512;
171 pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024;
172 pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048;
173 pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096;
174 pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192;
175 pub const SQLITE_IOCAP_BATCH_ATOMIC: i32 = 16384;
176 pub const SQLITE_LOCK_NONE: i32 = 0;
177 pub const SQLITE_LOCK_SHARED: i32 = 1;
178 pub const SQLITE_LOCK_RESERVED: i32 = 2;
179 pub const SQLITE_LOCK_PENDING: i32 = 3;
180 pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4;
181 pub const SQLITE_SYNC_NORMAL: i32 = 2;
182 pub const SQLITE_SYNC_FULL: i32 = 3;
183 pub const SQLITE_SYNC_DATAONLY: i32 = 16;
184 pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1;
185 pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2;
186 pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3;
187 pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4;
188 pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5;
189 pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6;
190 pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7;
191 pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8;
192 pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9;
193 pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10;
194 pub const SQLITE_FCNTL_OVERWRITE: i32 = 11;
195 pub const SQLITE_FCNTL_VFSNAME: i32 = 12;
196 pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13;
197 pub const SQLITE_FCNTL_PRAGMA: i32 = 14;
198 pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15;
199 pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16;
200 pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18;
201 pub const SQLITE_FCNTL_TRACE: i32 = 19;
202 pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20;
203 pub const SQLITE_FCNTL_SYNC: i32 = 21;
204 pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22;
205 pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23;
206 pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24;
207 pub const SQLITE_FCNTL_ZIPVFS: i32 = 25;
208 pub const SQLITE_FCNTL_RBU: i32 = 26;
209 pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27;
210 pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28;
211 pub const SQLITE_FCNTL_WIN32_GET_HANDLE: i32 = 29;
212 pub const SQLITE_FCNTL_PDB: i32 = 30;
213 pub const SQLITE_FCNTL_BEGIN_ATOMIC_WRITE: i32 = 31;
214 pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE: i32 = 32;
215 pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE: i32 = 33;
216 pub const SQLITE_FCNTL_LOCK_TIMEOUT: i32 = 34;
217 pub const SQLITE_FCNTL_DATA_VERSION: i32 = 35;
218 pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36;
219 pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37;
220 pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38;
221 pub const SQLITE_FCNTL_CKPT_START: i32 = 39;
222 pub const SQLITE_FCNTL_EXTERNAL_READER: i32 = 40;
223 pub const SQLITE_FCNTL_CKSM_FILE: i32 = 41;
224 pub const SQLITE_FCNTL_RESET_CACHE: i32 = 42;
225 pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
226 pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
227 pub const SQLITE_LAST_ERRNO: i32 = 4;
228 pub const SQLITE_ACCESS_EXISTS: i32 = 0;
229 pub const SQLITE_ACCESS_READWRITE: i32 = 1;
230 pub const SQLITE_ACCESS_READ: i32 = 2;
231 pub const SQLITE_SHM_UNLOCK: i32 = 1;
232 pub const SQLITE_SHM_LOCK: i32 = 2;
233 pub const SQLITE_SHM_SHARED: i32 = 4;
234 pub const SQLITE_SHM_EXCLUSIVE: i32 = 8;
235 pub const SQLITE_SHM_NLOCK: i32 = 8;
236 pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1;
237 pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2;
238 pub const SQLITE_CONFIG_SERIALIZED: i32 = 3;
239 pub const SQLITE_CONFIG_MALLOC: i32 = 4;
240 pub const SQLITE_CONFIG_GETMALLOC: i32 = 5;
241 pub const SQLITE_CONFIG_SCRATCH: i32 = 6;
242 pub const SQLITE_CONFIG_PAGECACHE: i32 = 7;
243 pub const SQLITE_CONFIG_HEAP: i32 = 8;
244 pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9;
245 pub const SQLITE_CONFIG_MUTEX: i32 = 10;
246 pub const SQLITE_CONFIG_GETMUTEX: i32 = 11;
247 pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13;
248 pub const SQLITE_CONFIG_PCACHE: i32 = 14;
249 pub const SQLITE_CONFIG_GETPCACHE: i32 = 15;
250 pub const SQLITE_CONFIG_LOG: i32 = 16;
251 pub const SQLITE_CONFIG_URI: i32 = 17;
252 pub const SQLITE_CONFIG_PCACHE2: i32 = 18;
253 pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19;
254 pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20;
255 pub const SQLITE_CONFIG_SQLLOG: i32 = 21;
256 pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22;
257 pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23;
258 pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24;
259 pub const SQLITE_CONFIG_PMASZ: i32 = 25;
260 pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26;
261 pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27;
262 pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28;
263 pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29;
264 pub const SQLITE_CONFIG_ROWID_IN_VIEW: i32 = 30;
265 pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000;
266 pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001;
267 pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002;
268 pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003;
269 pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004;
270 pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005;
271 pub const SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE: i32 = 1006;
272 pub const SQLITE_DBCONFIG_ENABLE_QPSG: i32 = 1007;
273 pub const SQLITE_DBCONFIG_TRIGGER_EQP: i32 = 1008;
274 pub const SQLITE_DBCONFIG_RESET_DATABASE: i32 = 1009;
275 pub const SQLITE_DBCONFIG_DEFENSIVE: i32 = 1010;
276 pub const SQLITE_DBCONFIG_WRITABLE_SCHEMA: i32 = 1011;
277 pub const SQLITE_DBCONFIG_LEGACY_ALTER_TABLE: i32 = 1012;
278 pub const SQLITE_DBCONFIG_DQS_DML: i32 = 1013;
279 pub const SQLITE_DBCONFIG_DQS_DDL: i32 = 1014;
280 pub const SQLITE_DBCONFIG_ENABLE_VIEW: i32 = 1015;
281 pub const SQLITE_DBCONFIG_LEGACY_FILE_FORMAT: i32 = 1016;
282 pub const SQLITE_DBCONFIG_TRUSTED_SCHEMA: i32 = 1017;
283 pub const SQLITE_DBCONFIG_STMT_SCANSTATUS: i32 = 1018;
284 pub const SQLITE_DBCONFIG_REVERSE_SCANORDER: i32 = 1019;
285 pub const SQLITE_DBCONFIG_MAX: i32 = 1019;
286 pub const SQLITE_DENY: i32 = 1;
287 pub const SQLITE_IGNORE: i32 = 2;
288 pub const SQLITE_CREATE_INDEX: i32 = 1;
289 pub const SQLITE_CREATE_TABLE: i32 = 2;
290 pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3;
291 pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4;
292 pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5;
293 pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6;
294 pub const SQLITE_CREATE_TRIGGER: i32 = 7;
295 pub const SQLITE_CREATE_VIEW: i32 = 8;
296 pub const SQLITE_DELETE: i32 = 9;
297 pub const SQLITE_DROP_INDEX: i32 = 10;
298 pub const SQLITE_DROP_TABLE: i32 = 11;
299 pub const SQLITE_DROP_TEMP_INDEX: i32 = 12;
300 pub const SQLITE_DROP_TEMP_TABLE: i32 = 13;
301 pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14;
302 pub const SQLITE_DROP_TEMP_VIEW: i32 = 15;
303 pub const SQLITE_DROP_TRIGGER: i32 = 16;
304 pub const SQLITE_DROP_VIEW: i32 = 17;
305 pub const SQLITE_INSERT: i32 = 18;
306 pub const SQLITE_PRAGMA: i32 = 19;
307 pub const SQLITE_READ: i32 = 20;
308 pub const SQLITE_SELECT: i32 = 21;
309 pub const SQLITE_TRANSACTION: i32 = 22;
310 pub const SQLITE_UPDATE: i32 = 23;
311 pub const SQLITE_ATTACH: i32 = 24;
312 pub const SQLITE_DETACH: i32 = 25;
313 pub const SQLITE_ALTER_TABLE: i32 = 26;
314 pub const SQLITE_REINDEX: i32 = 27;
315 pub const SQLITE_ANALYZE: i32 = 28;
316 pub const SQLITE_CREATE_VTABLE: i32 = 29;
317 pub const SQLITE_DROP_VTABLE: i32 = 30;
318 pub const SQLITE_FUNCTION: i32 = 31;
319 pub const SQLITE_SAVEPOINT: i32 = 32;
320 pub const SQLITE_COPY: i32 = 0;
321 pub const SQLITE_RECURSIVE: i32 = 33;
322 pub const SQLITE_TRACE_STMT: i32 = 1;
323 pub const SQLITE_TRACE_PROFILE: i32 = 2;
324 pub const SQLITE_TRACE_ROW: i32 = 4;
325 pub const SQLITE_TRACE_CLOSE: i32 = 8;
326 pub const SQLITE_LIMIT_LENGTH: i32 = 0;
327 pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1;
328 pub const SQLITE_LIMIT_COLUMN: i32 = 2;
329 pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3;
330 pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4;
331 pub const SQLITE_LIMIT_VDBE_OP: i32 = 5;
332 pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6;
333 pub const SQLITE_LIMIT_ATTACHED: i32 = 7;
334 pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8;
335 pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9;
336 pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10;
337 pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11;
338 pub const SQLITE_PREPARE_PERSISTENT: ::std::os::raw::c_uint = 1;
339 pub const SQLITE_PREPARE_NORMALIZE: ::std::os::raw::c_uint = 2;
340 pub const SQLITE_PREPARE_NO_VTAB: ::std::os::raw::c_uint = 4;
341 pub const SQLITE_INTEGER: i32 = 1;
342 pub const SQLITE_FLOAT: i32 = 2;
343 pub const SQLITE_BLOB: i32 = 4;
344 pub const SQLITE_NULL: i32 = 5;
345 pub const SQLITE_TEXT: i32 = 3;
346 pub const SQLITE3_TEXT: i32 = 3;
347 pub const SQLITE_UTF8: i32 = 1;
348 pub const SQLITE_UTF16LE: i32 = 2;
349 pub const SQLITE_UTF16BE: i32 = 3;
350 pub const SQLITE_UTF16: i32 = 4;
351 pub const SQLITE_ANY: i32 = 5;
352 pub const SQLITE_UTF16_ALIGNED: i32 = 8;
353 pub const SQLITE_DETERMINISTIC: i32 = 2048;
354 pub const SQLITE_DIRECTONLY: i32 = 524288;
355 pub const SQLITE_SUBTYPE: i32 = 1048576;
356 pub const SQLITE_INNOCUOUS: i32 = 2097152;
357 pub const SQLITE_RESULT_SUBTYPE: i32 = 16777216;
358 pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE: i32 = 1;
359 pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE: i32 = 2;
360 pub const SQLITE_TXN_NONE: i32 = 0;
361 pub const SQLITE_TXN_READ: i32 = 1;
362 pub const SQLITE_TXN_WRITE: i32 = 2;
363 pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1;
364 pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2;
365 pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4;
366 pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8;
367 pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16;
368 pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32;
369 pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64;
370 pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65;
371 pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66;
372 pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67;
373 pub const SQLITE_INDEX_CONSTRAINT_NE: i32 = 68;
374 pub const SQLITE_INDEX_CONSTRAINT_ISNOT: i32 = 69;
375 pub const SQLITE_INDEX_CONSTRAINT_ISNOTNULL: i32 = 70;
376 pub const SQLITE_INDEX_CONSTRAINT_ISNULL: i32 = 71;
377 pub const SQLITE_INDEX_CONSTRAINT_IS: i32 = 72;
378 pub const SQLITE_INDEX_CONSTRAINT_LIMIT: i32 = 73;
379 pub const SQLITE_INDEX_CONSTRAINT_OFFSET: i32 = 74;
380 pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150;
381 pub const SQLITE_MUTEX_FAST: i32 = 0;
382 pub const SQLITE_MUTEX_RECURSIVE: i32 = 1;
383 pub const SQLITE_MUTEX_STATIC_MAIN: i32 = 2;
384 pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3;
385 pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4;
386 pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4;
387 pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5;
388 pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6;
389 pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7;
390 pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7;
391 pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8;
392 pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9;
393 pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10;
394 pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11;
395 pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12;
396 pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13;
397 pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2;
398 pub const SQLITE_TESTCTRL_FIRST: i32 = 5;
399 pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5;
400 pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6;
401 pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7;
402 pub const SQLITE_TESTCTRL_FK_NO_ACTION: i32 = 7;
403 pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8;
404 pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9;
405 pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10;
406 pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11;
407 pub const SQLITE_TESTCTRL_ASSERT: i32 = 12;
408 pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13;
409 pub const SQLITE_TESTCTRL_RESERVE: i32 = 14;
410 pub const SQLITE_TESTCTRL_JSON_SELFCHECK: i32 = 14;
411 pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15;
412 pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16;
413 pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17;
414 pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS: i32 = 17;
415 pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18;
416 pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19;
417 pub const SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: i32 = 19;
418 pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20;
419 pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21;
420 pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22;
421 pub const SQLITE_TESTCTRL_ISINIT: i32 = 23;
422 pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24;
423 pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25;
424 pub const SQLITE_TESTCTRL_PARSER_COVERAGE: i32 = 26;
425 pub const SQLITE_TESTCTRL_RESULT_INTREAL: i32 = 27;
426 pub const SQLITE_TESTCTRL_PRNG_SEED: i32 = 28;
427 pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29;
428 pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30;
429 pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31;
430 pub const SQLITE_TESTCTRL_TUNE: i32 = 32;
431 pub const SQLITE_TESTCTRL_LOGEST: i32 = 33;
432 pub const SQLITE_TESTCTRL_USELONGDOUBLE: i32 = 34;
433 pub const SQLITE_TESTCTRL_LAST: i32 = 34;
434 pub const SQLITE_STATUS_MEMORY_USED: i32 = 0;
435 pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1;
436 pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2;
437 pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3;
438 pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4;
439 pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5;
440 pub const SQLITE_STATUS_PARSER_STACK: i32 = 6;
441 pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7;
442 pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8;
443 pub const SQLITE_STATUS_MALLOC_COUNT: i32 = 9;
444 pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0;
445 pub const SQLITE_DBSTATUS_CACHE_USED: i32 = 1;
446 pub const SQLITE_DBSTATUS_SCHEMA_USED: i32 = 2;
447 pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3;
448 pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4;
449 pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5;
450 pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6;
451 pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7;
452 pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8;
453 pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9;
454 pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10;
455 pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11;
456 pub const SQLITE_DBSTATUS_CACHE_SPILL: i32 = 12;
457 pub const SQLITE_DBSTATUS_MAX: i32 = 12;
458 pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1;
459 pub const SQLITE_STMTSTATUS_SORT: i32 = 2;
460 pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3;
461 pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4;
462 pub const SQLITE_STMTSTATUS_REPREPARE: i32 = 5;
463 pub const SQLITE_STMTSTATUS_RUN: i32 = 6;
464 pub const SQLITE_STMTSTATUS_FILTER_MISS: i32 = 7;
465 pub const SQLITE_STMTSTATUS_FILTER_HIT: i32 = 8;
466 pub const SQLITE_STMTSTATUS_MEMUSED: i32 = 99;
467 pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0;
468 pub const SQLITE_CHECKPOINT_FULL: i32 = 1;
469 pub const SQLITE_CHECKPOINT_RESTART: i32 = 2;
470 pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3;
471 pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1;
472 pub const SQLITE_VTAB_INNOCUOUS: i32 = 2;
473 pub const SQLITE_VTAB_DIRECTONLY: i32 = 3;
474 pub const SQLITE_VTAB_USES_ALL_SCHEMAS: i32 = 4;
475 pub const SQLITE_ROLLBACK: i32 = 1;
476 pub const SQLITE_FAIL: i32 = 3;
477 pub const SQLITE_REPLACE: i32 = 5;
478 pub const SQLITE_SCANSTAT_NLOOP: i32 = 0;
479 pub const SQLITE_SCANSTAT_NVISIT: i32 = 1;
480 pub const SQLITE_SCANSTAT_EST: i32 = 2;
481 pub const SQLITE_SCANSTAT_NAME: i32 = 3;
482 pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4;
483 pub const SQLITE_SCANSTAT_SELECTID: i32 = 5;
484 pub const SQLITE_SCANSTAT_PARENTID: i32 = 6;
485 pub const SQLITE_SCANSTAT_NCYCLE: i32 = 7;
486 pub const SQLITE_SCANSTAT_COMPLEX: i32 = 1;
487 pub const SQLITE_SERIALIZE_NOCOPY: ::std::os::raw::c_uint = 1;
488 pub const SQLITE_DESERIALIZE_FREEONCLOSE: ::std::os::raw::c_uint = 1;
489 pub const SQLITE_DESERIALIZE_RESIZEABLE: ::std::os::raw::c_uint = 2;
490 pub const SQLITE_DESERIALIZE_READONLY: ::std::os::raw::c_uint = 4;
491 pub const NOT_WITHIN: i32 = 0;
492 pub const PARTLY_WITHIN: i32 = 1;
493 pub const FULLY_WITHIN: i32 = 2;
494 pub const SQLITE_SESSION_OBJCONFIG_SIZE: i32 = 1;
495 pub const SQLITE_SESSION_OBJCONFIG_ROWID: i32 = 2;
496 pub const SQLITE_CHANGESETSTART_INVERT: i32 = 2;
497 pub const SQLITE_CHANGESETAPPLY_NOSAVEPOINT: i32 = 1;
498 pub const SQLITE_CHANGESETAPPLY_INVERT: i32 = 2;
499 pub const SQLITE_CHANGESETAPPLY_IGNORENOOP: i32 = 4;
500 pub const SQLITE_CHANGESETAPPLY_FKNOACTION: i32 = 8;
501 pub const SQLITE_CHANGESET_DATA: i32 = 1;
502 pub const SQLITE_CHANGESET_NOTFOUND: i32 = 2;
503 pub const SQLITE_CHANGESET_CONFLICT: i32 = 3;
504 pub const SQLITE_CHANGESET_CONSTRAINT: i32 = 4;
505 pub const SQLITE_CHANGESET_FOREIGN_KEY: i32 = 5;
506 pub const SQLITE_CHANGESET_OMIT: i32 = 0;
507 pub const SQLITE_CHANGESET_REPLACE: i32 = 1;
508 pub const SQLITE_CHANGESET_ABORT: i32 = 2;
509 pub const SQLITE_SESSION_CONFIG_STRMSIZE: i32 = 1;
510 pub const FTS5_TOKENIZE_QUERY: i32 = 1;
511 pub const FTS5_TOKENIZE_PREFIX: i32 = 2;
512 pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4;
513 pub const FTS5_TOKENIZE_AUX: i32 = 8;
514 pub const FTS5_TOKEN_COLOCATED: i32 = 1;
515 extern "C" {
516     pub static sqlite3_version: [::std::os::raw::c_char; 0usize];
517 }
518 extern "C" {
sqlite3_libversion() -> *const ::std::os::raw::c_char519     pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char;
520 }
521 extern "C" {
sqlite3_sourceid() -> *const ::std::os::raw::c_char522     pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char;
523 }
524 extern "C" {
sqlite3_libversion_number() -> ::std::os::raw::c_int525     pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int;
526 }
527 extern "C" {
sqlite3_compileoption_used( zOptName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int528     pub fn sqlite3_compileoption_used(
529         zOptName: *const ::std::os::raw::c_char,
530     ) -> ::std::os::raw::c_int;
531 }
532 extern "C" {
sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char533     pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
534 }
535 extern "C" {
sqlite3_threadsafe() -> ::std::os::raw::c_int536     pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int;
537 }
538 #[repr(C)]
539 #[derive(Debug, Copy, Clone)]
540 pub struct sqlite3 {
541     _unused: [u8; 0],
542 }
543 pub type sqlite_int64 = ::std::os::raw::c_longlong;
544 pub type sqlite_uint64 = ::std::os::raw::c_ulonglong;
545 pub type sqlite3_int64 = sqlite_int64;
546 pub type sqlite3_uint64 = sqlite_uint64;
547 extern "C" {
sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int548     pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
549 }
550 pub type sqlite3_callback = ::std::option::Option<
551     unsafe extern "C" fn(
552         arg1: *mut ::std::os::raw::c_void,
553         arg2: ::std::os::raw::c_int,
554         arg3: *mut *mut ::std::os::raw::c_char,
555         arg4: *mut *mut ::std::os::raw::c_char,
556     ) -> ::std::os::raw::c_int,
557 >;
558 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_int559     pub fn sqlite3_exec(
560         arg1: *mut sqlite3,
561         sql: *const ::std::os::raw::c_char,
562         callback: ::std::option::Option<
563             unsafe extern "C" fn(
564                 arg1: *mut ::std::os::raw::c_void,
565                 arg2: ::std::os::raw::c_int,
566                 arg3: *mut *mut ::std::os::raw::c_char,
567                 arg4: *mut *mut ::std::os::raw::c_char,
568             ) -> ::std::os::raw::c_int,
569         >,
570         arg2: *mut ::std::os::raw::c_void,
571         errmsg: *mut *mut ::std::os::raw::c_char,
572     ) -> ::std::os::raw::c_int;
573 }
574 #[repr(C)]
575 #[derive(Debug, Copy, Clone)]
576 pub struct sqlite3_file {
577     pub pMethods: *const sqlite3_io_methods,
578 }
579 #[repr(C)]
580 #[derive(Debug, Copy, Clone)]
581 pub struct sqlite3_io_methods {
582     pub iVersion: ::std::os::raw::c_int,
583     pub xClose: ::std::option::Option<
584         unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int,
585     >,
586     pub xRead: ::std::option::Option<
587         unsafe extern "C" fn(
588             arg1: *mut sqlite3_file,
589             arg2: *mut ::std::os::raw::c_void,
590             iAmt: ::std::os::raw::c_int,
591             iOfst: sqlite3_int64,
592         ) -> ::std::os::raw::c_int,
593     >,
594     pub xWrite: ::std::option::Option<
595         unsafe extern "C" fn(
596             arg1: *mut sqlite3_file,
597             arg2: *const ::std::os::raw::c_void,
598             iAmt: ::std::os::raw::c_int,
599             iOfst: sqlite3_int64,
600         ) -> ::std::os::raw::c_int,
601     >,
602     pub xTruncate: ::std::option::Option<
603         unsafe extern "C" fn(arg1: *mut sqlite3_file, size: sqlite3_int64) -> ::std::os::raw::c_int,
604     >,
605     pub xSync: ::std::option::Option<
606         unsafe extern "C" fn(
607             arg1: *mut sqlite3_file,
608             flags: ::std::os::raw::c_int,
609         ) -> ::std::os::raw::c_int,
610     >,
611     pub xFileSize: ::std::option::Option<
612         unsafe extern "C" fn(
613             arg1: *mut sqlite3_file,
614             pSize: *mut sqlite3_int64,
615         ) -> ::std::os::raw::c_int,
616     >,
617     pub xLock: ::std::option::Option<
618         unsafe extern "C" fn(
619             arg1: *mut sqlite3_file,
620             arg2: ::std::os::raw::c_int,
621         ) -> ::std::os::raw::c_int,
622     >,
623     pub xUnlock: ::std::option::Option<
624         unsafe extern "C" fn(
625             arg1: *mut sqlite3_file,
626             arg2: ::std::os::raw::c_int,
627         ) -> ::std::os::raw::c_int,
628     >,
629     pub xCheckReservedLock: ::std::option::Option<
630         unsafe extern "C" fn(
631             arg1: *mut sqlite3_file,
632             pResOut: *mut ::std::os::raw::c_int,
633         ) -> ::std::os::raw::c_int,
634     >,
635     pub xFileControl: ::std::option::Option<
636         unsafe extern "C" fn(
637             arg1: *mut sqlite3_file,
638             op: ::std::os::raw::c_int,
639             pArg: *mut ::std::os::raw::c_void,
640         ) -> ::std::os::raw::c_int,
641     >,
642     pub xSectorSize: ::std::option::Option<
643         unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int,
644     >,
645     pub xDeviceCharacteristics: ::std::option::Option<
646         unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int,
647     >,
648     pub xShmMap: ::std::option::Option<
649         unsafe extern "C" fn(
650             arg1: *mut sqlite3_file,
651             iPg: ::std::os::raw::c_int,
652             pgsz: ::std::os::raw::c_int,
653             arg2: ::std::os::raw::c_int,
654             arg3: *mut *mut ::std::os::raw::c_void,
655         ) -> ::std::os::raw::c_int,
656     >,
657     pub xShmLock: ::std::option::Option<
658         unsafe extern "C" fn(
659             arg1: *mut sqlite3_file,
660             offset: ::std::os::raw::c_int,
661             n: ::std::os::raw::c_int,
662             flags: ::std::os::raw::c_int,
663         ) -> ::std::os::raw::c_int,
664     >,
665     pub xShmBarrier: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_file)>,
666     pub xShmUnmap: ::std::option::Option<
667         unsafe extern "C" fn(
668             arg1: *mut sqlite3_file,
669             deleteFlag: ::std::os::raw::c_int,
670         ) -> ::std::os::raw::c_int,
671     >,
672     pub xFetch: ::std::option::Option<
673         unsafe extern "C" fn(
674             arg1: *mut sqlite3_file,
675             iOfst: sqlite3_int64,
676             iAmt: ::std::os::raw::c_int,
677             pp: *mut *mut ::std::os::raw::c_void,
678         ) -> ::std::os::raw::c_int,
679     >,
680     pub xUnfetch: ::std::option::Option<
681         unsafe extern "C" fn(
682             arg1: *mut sqlite3_file,
683             iOfst: sqlite3_int64,
684             p: *mut ::std::os::raw::c_void,
685         ) -> ::std::os::raw::c_int,
686     >,
687 }
688 #[repr(C)]
689 #[derive(Debug, Copy, Clone)]
690 pub struct sqlite3_mutex {
691     _unused: [u8; 0],
692 }
693 #[repr(C)]
694 #[derive(Debug, Copy, Clone)]
695 pub struct sqlite3_api_routines {
696     _unused: [u8; 0],
697 }
698 pub type sqlite3_filename = *const ::std::os::raw::c_char;
699 pub type sqlite3_syscall_ptr = ::std::option::Option<unsafe extern "C" fn()>;
700 #[repr(C)]
701 #[derive(Debug, Copy, Clone)]
702 pub struct sqlite3_vfs {
703     pub iVersion: ::std::os::raw::c_int,
704     pub szOsFile: ::std::os::raw::c_int,
705     pub mxPathname: ::std::os::raw::c_int,
706     pub pNext: *mut sqlite3_vfs,
707     pub zName: *const ::std::os::raw::c_char,
708     pub pAppData: *mut ::std::os::raw::c_void,
709     pub xOpen: ::std::option::Option<
710         unsafe extern "C" fn(
711             arg1: *mut sqlite3_vfs,
712             zName: sqlite3_filename,
713             arg2: *mut sqlite3_file,
714             flags: ::std::os::raw::c_int,
715             pOutFlags: *mut ::std::os::raw::c_int,
716         ) -> ::std::os::raw::c_int,
717     >,
718     pub xDelete: ::std::option::Option<
719         unsafe extern "C" fn(
720             arg1: *mut sqlite3_vfs,
721             zName: *const ::std::os::raw::c_char,
722             syncDir: ::std::os::raw::c_int,
723         ) -> ::std::os::raw::c_int,
724     >,
725     pub xAccess: ::std::option::Option<
726         unsafe extern "C" fn(
727             arg1: *mut sqlite3_vfs,
728             zName: *const ::std::os::raw::c_char,
729             flags: ::std::os::raw::c_int,
730             pResOut: *mut ::std::os::raw::c_int,
731         ) -> ::std::os::raw::c_int,
732     >,
733     pub xFullPathname: ::std::option::Option<
734         unsafe extern "C" fn(
735             arg1: *mut sqlite3_vfs,
736             zName: *const ::std::os::raw::c_char,
737             nOut: ::std::os::raw::c_int,
738             zOut: *mut ::std::os::raw::c_char,
739         ) -> ::std::os::raw::c_int,
740     >,
741     pub xDlOpen: ::std::option::Option<
742         unsafe extern "C" fn(
743             arg1: *mut sqlite3_vfs,
744             zFilename: *const ::std::os::raw::c_char,
745         ) -> *mut ::std::os::raw::c_void,
746     >,
747     pub xDlError: ::std::option::Option<
748         unsafe extern "C" fn(
749             arg1: *mut sqlite3_vfs,
750             nByte: ::std::os::raw::c_int,
751             zErrMsg: *mut ::std::os::raw::c_char,
752         ),
753     >,
754     pub xDlSym: ::std::option::Option<
755         unsafe extern "C" fn(
756             arg1: *mut sqlite3_vfs,
757             arg2: *mut ::std::os::raw::c_void,
758             zSymbol: *const ::std::os::raw::c_char,
759         ) -> ::std::option::Option<
760             unsafe extern "C" fn(
761                 arg1: *mut sqlite3_vfs,
762                 arg2: *mut ::std::os::raw::c_void,
763                 zSymbol: *const ::std::os::raw::c_char,
764             ),
765         >,
766     >,
767     pub xDlClose: ::std::option::Option<
768         unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut ::std::os::raw::c_void),
769     >,
770     pub xRandomness: ::std::option::Option<
771         unsafe extern "C" fn(
772             arg1: *mut sqlite3_vfs,
773             nByte: ::std::os::raw::c_int,
774             zOut: *mut ::std::os::raw::c_char,
775         ) -> ::std::os::raw::c_int,
776     >,
777     pub xSleep: ::std::option::Option<
778         unsafe extern "C" fn(
779             arg1: *mut sqlite3_vfs,
780             microseconds: ::std::os::raw::c_int,
781         ) -> ::std::os::raw::c_int,
782     >,
783     pub xCurrentTime: ::std::option::Option<
784         unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut f64) -> ::std::os::raw::c_int,
785     >,
786     pub xGetLastError: ::std::option::Option<
787         unsafe extern "C" fn(
788             arg1: *mut sqlite3_vfs,
789             arg2: ::std::os::raw::c_int,
790             arg3: *mut ::std::os::raw::c_char,
791         ) -> ::std::os::raw::c_int,
792     >,
793     pub xCurrentTimeInt64: ::std::option::Option<
794         unsafe extern "C" fn(
795             arg1: *mut sqlite3_vfs,
796             arg2: *mut sqlite3_int64,
797         ) -> ::std::os::raw::c_int,
798     >,
799     pub xSetSystemCall: ::std::option::Option<
800         unsafe extern "C" fn(
801             arg1: *mut sqlite3_vfs,
802             zName: *const ::std::os::raw::c_char,
803             arg2: sqlite3_syscall_ptr,
804         ) -> ::std::os::raw::c_int,
805     >,
806     pub xGetSystemCall: ::std::option::Option<
807         unsafe extern "C" fn(
808             arg1: *mut sqlite3_vfs,
809             zName: *const ::std::os::raw::c_char,
810         ) -> sqlite3_syscall_ptr,
811     >,
812     pub xNextSystemCall: ::std::option::Option<
813         unsafe extern "C" fn(
814             arg1: *mut sqlite3_vfs,
815             zName: *const ::std::os::raw::c_char,
816         ) -> *const ::std::os::raw::c_char,
817     >,
818 }
819 extern "C" {
sqlite3_initialize() -> ::std::os::raw::c_int820     pub fn sqlite3_initialize() -> ::std::os::raw::c_int;
821 }
822 extern "C" {
sqlite3_shutdown() -> ::std::os::raw::c_int823     pub fn sqlite3_shutdown() -> ::std::os::raw::c_int;
824 }
825 extern "C" {
sqlite3_os_init() -> ::std::os::raw::c_int826     pub fn sqlite3_os_init() -> ::std::os::raw::c_int;
827 }
828 extern "C" {
sqlite3_os_end() -> ::std::os::raw::c_int829     pub fn sqlite3_os_end() -> ::std::os::raw::c_int;
830 }
831 extern "C" {
sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int832     pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int;
833 }
834 extern "C" {
sqlite3_db_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, ... ) -> ::std::os::raw::c_int835     pub fn sqlite3_db_config(
836         arg1: *mut sqlite3,
837         op: ::std::os::raw::c_int,
838         ...
839     ) -> ::std::os::raw::c_int;
840 }
841 #[repr(C)]
842 #[derive(Debug, Copy, Clone)]
843 pub struct sqlite3_mem_methods {
844     pub xMalloc: ::std::option::Option<
845         unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void,
846     >,
847     pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
848     pub xRealloc: ::std::option::Option<
849         unsafe extern "C" fn(
850             arg1: *mut ::std::os::raw::c_void,
851             arg2: ::std::os::raw::c_int,
852         ) -> *mut ::std::os::raw::c_void,
853     >,
854     pub xSize: ::std::option::Option<
855         unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
856     >,
857     pub xRoundup: ::std::option::Option<
858         unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
859     >,
860     pub xInit: ::std::option::Option<
861         unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
862     >,
863     pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
864     pub pAppData: *mut ::std::os::raw::c_void,
865 }
866 extern "C" {
sqlite3_extended_result_codes( arg1: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int867     pub fn sqlite3_extended_result_codes(
868         arg1: *mut sqlite3,
869         onoff: ::std::os::raw::c_int,
870     ) -> ::std::os::raw::c_int;
871 }
872 extern "C" {
sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64873     pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64;
874 }
875 extern "C" {
sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64)876     pub fn sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64);
877 }
878 extern "C" {
sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int879     pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
880 }
881 extern "C" {
sqlite3_changes64(arg1: *mut sqlite3) -> sqlite3_int64882     pub fn sqlite3_changes64(arg1: *mut sqlite3) -> sqlite3_int64;
883 }
884 extern "C" {
sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int885     pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
886 }
887 extern "C" {
sqlite3_total_changes64(arg1: *mut sqlite3) -> sqlite3_int64888     pub fn sqlite3_total_changes64(arg1: *mut sqlite3) -> sqlite3_int64;
889 }
890 extern "C" {
sqlite3_interrupt(arg1: *mut sqlite3)891     pub fn sqlite3_interrupt(arg1: *mut sqlite3);
892 }
893 extern "C" {
sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_int894     pub fn sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
895 }
896 extern "C" {
sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int897     pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
898 }
899 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_int900     pub fn sqlite3_busy_handler(
901         arg1: *mut sqlite3,
902         arg2: ::std::option::Option<
903             unsafe extern "C" fn(
904                 arg1: *mut ::std::os::raw::c_void,
905                 arg2: ::std::os::raw::c_int,
906             ) -> ::std::os::raw::c_int,
907         >,
908         arg3: *mut ::std::os::raw::c_void,
909     ) -> ::std::os::raw::c_int;
910 }
911 extern "C" {
sqlite3_busy_timeout( arg1: *mut sqlite3, ms: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int912     pub fn sqlite3_busy_timeout(
913         arg1: *mut sqlite3,
914         ms: ::std::os::raw::c_int,
915     ) -> ::std::os::raw::c_int;
916 }
917 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_int918     pub fn sqlite3_get_table(
919         db: *mut sqlite3,
920         zSql: *const ::std::os::raw::c_char,
921         pazResult: *mut *mut *mut ::std::os::raw::c_char,
922         pnRow: *mut ::std::os::raw::c_int,
923         pnColumn: *mut ::std::os::raw::c_int,
924         pzErrmsg: *mut *mut ::std::os::raw::c_char,
925     ) -> ::std::os::raw::c_int;
926 }
927 extern "C" {
sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char)928     pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char);
929 }
930 extern "C" {
sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char931     pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...)
932         -> *mut ::std::os::raw::c_char;
933 }
934 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_char935     pub fn sqlite3_snprintf(
936         arg1: ::std::os::raw::c_int,
937         arg2: *mut ::std::os::raw::c_char,
938         arg3: *const ::std::os::raw::c_char,
939         ...
940     ) -> *mut ::std::os::raw::c_char;
941 }
942 extern "C" {
sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void943     pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
944 }
945 extern "C" {
sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void946     pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void;
947 }
948 extern "C" {
sqlite3_realloc( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void949     pub fn sqlite3_realloc(
950         arg1: *mut ::std::os::raw::c_void,
951         arg2: ::std::os::raw::c_int,
952     ) -> *mut ::std::os::raw::c_void;
953 }
954 extern "C" {
sqlite3_realloc64( arg1: *mut ::std::os::raw::c_void, arg2: sqlite3_uint64, ) -> *mut ::std::os::raw::c_void955     pub fn sqlite3_realloc64(
956         arg1: *mut ::std::os::raw::c_void,
957         arg2: sqlite3_uint64,
958     ) -> *mut ::std::os::raw::c_void;
959 }
960 extern "C" {
sqlite3_free(arg1: *mut ::std::os::raw::c_void)961     pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void);
962 }
963 extern "C" {
sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64964     pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64;
965 }
966 extern "C" {
sqlite3_memory_used() -> sqlite3_int64967     pub fn sqlite3_memory_used() -> sqlite3_int64;
968 }
969 extern "C" {
sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64970     pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64;
971 }
972 extern "C" {
sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void)973     pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void);
974 }
975 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_int976     pub fn sqlite3_set_authorizer(
977         arg1: *mut sqlite3,
978         xAuth: ::std::option::Option<
979             unsafe extern "C" fn(
980                 arg1: *mut ::std::os::raw::c_void,
981                 arg2: ::std::os::raw::c_int,
982                 arg3: *const ::std::os::raw::c_char,
983                 arg4: *const ::std::os::raw::c_char,
984                 arg5: *const ::std::os::raw::c_char,
985                 arg6: *const ::std::os::raw::c_char,
986             ) -> ::std::os::raw::c_int,
987         >,
988         pUserData: *mut ::std::os::raw::c_void,
989     ) -> ::std::os::raw::c_int;
990 }
991 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_void992     pub fn sqlite3_trace(
993         arg1: *mut sqlite3,
994         xTrace: ::std::option::Option<
995             unsafe extern "C" fn(
996                 arg1: *mut ::std::os::raw::c_void,
997                 arg2: *const ::std::os::raw::c_char,
998             ),
999         >,
1000         arg2: *mut ::std::os::raw::c_void,
1001     ) -> *mut ::std::os::raw::c_void;
1002 }
1003 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_void1004     pub fn sqlite3_profile(
1005         arg1: *mut sqlite3,
1006         xProfile: ::std::option::Option<
1007             unsafe extern "C" fn(
1008                 arg1: *mut ::std::os::raw::c_void,
1009                 arg2: *const ::std::os::raw::c_char,
1010                 arg3: sqlite3_uint64,
1011             ),
1012         >,
1013         arg2: *mut ::std::os::raw::c_void,
1014     ) -> *mut ::std::os::raw::c_void;
1015 }
1016 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_int1017     pub fn sqlite3_trace_v2(
1018         arg1: *mut sqlite3,
1019         uMask: ::std::os::raw::c_uint,
1020         xCallback: ::std::option::Option<
1021             unsafe extern "C" fn(
1022                 arg1: ::std::os::raw::c_uint,
1023                 arg2: *mut ::std::os::raw::c_void,
1024                 arg3: *mut ::std::os::raw::c_void,
1025                 arg4: *mut ::std::os::raw::c_void,
1026             ) -> ::std::os::raw::c_int,
1027         >,
1028         pCtx: *mut ::std::os::raw::c_void,
1029     ) -> ::std::os::raw::c_int;
1030 }
1031 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, )1032     pub fn sqlite3_progress_handler(
1033         arg1: *mut sqlite3,
1034         arg2: ::std::os::raw::c_int,
1035         arg3: ::std::option::Option<
1036             unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
1037         >,
1038         arg4: *mut ::std::os::raw::c_void,
1039     );
1040 }
1041 extern "C" {
sqlite3_open( filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, ) -> ::std::os::raw::c_int1042     pub fn sqlite3_open(
1043         filename: *const ::std::os::raw::c_char,
1044         ppDb: *mut *mut sqlite3,
1045     ) -> ::std::os::raw::c_int;
1046 }
1047 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_int1048     pub fn sqlite3_open_v2(
1049         filename: *const ::std::os::raw::c_char,
1050         ppDb: *mut *mut sqlite3,
1051         flags: ::std::os::raw::c_int,
1052         zVfs: *const ::std::os::raw::c_char,
1053     ) -> ::std::os::raw::c_int;
1054 }
1055 extern "C" {
sqlite3_uri_parameter( z: sqlite3_filename, zParam: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char1056     pub fn sqlite3_uri_parameter(
1057         z: sqlite3_filename,
1058         zParam: *const ::std::os::raw::c_char,
1059     ) -> *const ::std::os::raw::c_char;
1060 }
1061 extern "C" {
sqlite3_uri_boolean( z: sqlite3_filename, zParam: *const ::std::os::raw::c_char, bDefault: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1062     pub fn sqlite3_uri_boolean(
1063         z: sqlite3_filename,
1064         zParam: *const ::std::os::raw::c_char,
1065         bDefault: ::std::os::raw::c_int,
1066     ) -> ::std::os::raw::c_int;
1067 }
1068 extern "C" {
sqlite3_uri_int64( arg1: sqlite3_filename, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_int64, ) -> sqlite3_int641069     pub fn sqlite3_uri_int64(
1070         arg1: sqlite3_filename,
1071         arg2: *const ::std::os::raw::c_char,
1072         arg3: sqlite3_int64,
1073     ) -> sqlite3_int64;
1074 }
1075 extern "C" {
sqlite3_uri_key( z: sqlite3_filename, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1076     pub fn sqlite3_uri_key(
1077         z: sqlite3_filename,
1078         N: ::std::os::raw::c_int,
1079     ) -> *const ::std::os::raw::c_char;
1080 }
1081 extern "C" {
sqlite3_filename_database(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char1082     pub fn sqlite3_filename_database(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char;
1083 }
1084 extern "C" {
sqlite3_filename_journal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char1085     pub fn sqlite3_filename_journal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char;
1086 }
1087 extern "C" {
sqlite3_filename_wal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char1088     pub fn sqlite3_filename_wal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char;
1089 }
1090 extern "C" {
sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file1091     pub fn sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file;
1092 }
1093 extern "C" {
sqlite3_create_filename( zDatabase: *const ::std::os::raw::c_char, zJournal: *const ::std::os::raw::c_char, zWal: *const ::std::os::raw::c_char, nParam: ::std::os::raw::c_int, azParam: *mut *const ::std::os::raw::c_char, ) -> sqlite3_filename1094     pub fn sqlite3_create_filename(
1095         zDatabase: *const ::std::os::raw::c_char,
1096         zJournal: *const ::std::os::raw::c_char,
1097         zWal: *const ::std::os::raw::c_char,
1098         nParam: ::std::os::raw::c_int,
1099         azParam: *mut *const ::std::os::raw::c_char,
1100     ) -> sqlite3_filename;
1101 }
1102 extern "C" {
sqlite3_free_filename(arg1: sqlite3_filename)1103     pub fn sqlite3_free_filename(arg1: sqlite3_filename);
1104 }
1105 extern "C" {
sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int1106     pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int;
1107 }
1108 extern "C" {
sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int1109     pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int;
1110 }
1111 extern "C" {
sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char1112     pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char;
1113 }
1114 extern "C" {
sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char1115     pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
1116 }
1117 extern "C" {
sqlite3_error_offset(db: *mut sqlite3) -> ::std::os::raw::c_int1118     pub fn sqlite3_error_offset(db: *mut sqlite3) -> ::std::os::raw::c_int;
1119 }
1120 #[repr(C)]
1121 #[derive(Debug, Copy, Clone)]
1122 pub struct sqlite3_stmt {
1123     _unused: [u8; 0],
1124 }
1125 extern "C" {
sqlite3_limit( arg1: *mut sqlite3, id: ::std::os::raw::c_int, newVal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1126     pub fn sqlite3_limit(
1127         arg1: *mut sqlite3,
1128         id: ::std::os::raw::c_int,
1129         newVal: ::std::os::raw::c_int,
1130     ) -> ::std::os::raw::c_int;
1131 }
1132 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_int1133     pub fn sqlite3_prepare_v2(
1134         db: *mut sqlite3,
1135         zSql: *const ::std::os::raw::c_char,
1136         nByte: ::std::os::raw::c_int,
1137         ppStmt: *mut *mut sqlite3_stmt,
1138         pzTail: *mut *const ::std::os::raw::c_char,
1139     ) -> ::std::os::raw::c_int;
1140 }
1141 extern "C" {
sqlite3_prepare_v3( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, nByte: ::std::os::raw::c_int, prepFlags: ::std::os::raw::c_uint, ppStmt: *mut *mut sqlite3_stmt, pzTail: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1142     pub fn sqlite3_prepare_v3(
1143         db: *mut sqlite3,
1144         zSql: *const ::std::os::raw::c_char,
1145         nByte: ::std::os::raw::c_int,
1146         prepFlags: ::std::os::raw::c_uint,
1147         ppStmt: *mut *mut sqlite3_stmt,
1148         pzTail: *mut *const ::std::os::raw::c_char,
1149     ) -> ::std::os::raw::c_int;
1150 }
1151 extern "C" {
sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char1152     pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char;
1153 }
1154 extern "C" {
sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char1155     pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char;
1156 }
1157 extern "C" {
sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1158     pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1159 }
1160 extern "C" {
sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1161     pub fn sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1162 }
1163 extern "C" {
sqlite3_stmt_explain( pStmt: *mut sqlite3_stmt, eMode: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1164     pub fn sqlite3_stmt_explain(
1165         pStmt: *mut sqlite3_stmt,
1166         eMode: ::std::os::raw::c_int,
1167     ) -> ::std::os::raw::c_int;
1168 }
1169 extern "C" {
sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1170     pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1171 }
1172 #[repr(C)]
1173 #[derive(Debug, Copy, Clone)]
1174 pub struct sqlite3_value {
1175     _unused: [u8; 0],
1176 }
1177 #[repr(C)]
1178 #[derive(Debug, Copy, Clone)]
1179 pub struct sqlite3_context {
1180     _unused: [u8; 0],
1181 }
1182 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_int1183     pub fn sqlite3_bind_blob(
1184         arg1: *mut sqlite3_stmt,
1185         arg2: ::std::os::raw::c_int,
1186         arg3: *const ::std::os::raw::c_void,
1187         n: ::std::os::raw::c_int,
1188         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1189     ) -> ::std::os::raw::c_int;
1190 }
1191 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_int1192     pub fn sqlite3_bind_blob64(
1193         arg1: *mut sqlite3_stmt,
1194         arg2: ::std::os::raw::c_int,
1195         arg3: *const ::std::os::raw::c_void,
1196         arg4: sqlite3_uint64,
1197         arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1198     ) -> ::std::os::raw::c_int;
1199 }
1200 extern "C" {
sqlite3_bind_double( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64, ) -> ::std::os::raw::c_int1201     pub fn sqlite3_bind_double(
1202         arg1: *mut sqlite3_stmt,
1203         arg2: ::std::os::raw::c_int,
1204         arg3: f64,
1205     ) -> ::std::os::raw::c_int;
1206 }
1207 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_int1208     pub fn sqlite3_bind_int(
1209         arg1: *mut sqlite3_stmt,
1210         arg2: ::std::os::raw::c_int,
1211         arg3: ::std::os::raw::c_int,
1212     ) -> ::std::os::raw::c_int;
1213 }
1214 extern "C" {
sqlite3_bind_int64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_int64, ) -> ::std::os::raw::c_int1215     pub fn sqlite3_bind_int64(
1216         arg1: *mut sqlite3_stmt,
1217         arg2: ::std::os::raw::c_int,
1218         arg3: sqlite3_int64,
1219     ) -> ::std::os::raw::c_int;
1220 }
1221 extern "C" {
sqlite3_bind_null( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1222     pub fn sqlite3_bind_null(
1223         arg1: *mut sqlite3_stmt,
1224         arg2: ::std::os::raw::c_int,
1225     ) -> ::std::os::raw::c_int;
1226 }
1227 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_int1228     pub fn sqlite3_bind_text(
1229         arg1: *mut sqlite3_stmt,
1230         arg2: ::std::os::raw::c_int,
1231         arg3: *const ::std::os::raw::c_char,
1232         arg4: ::std::os::raw::c_int,
1233         arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1234     ) -> ::std::os::raw::c_int;
1235 }
1236 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_int1237     pub fn sqlite3_bind_text64(
1238         arg1: *mut sqlite3_stmt,
1239         arg2: ::std::os::raw::c_int,
1240         arg3: *const ::std::os::raw::c_char,
1241         arg4: sqlite3_uint64,
1242         arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1243         encoding: ::std::os::raw::c_uchar,
1244     ) -> ::std::os::raw::c_int;
1245 }
1246 extern "C" {
sqlite3_bind_value( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const sqlite3_value, ) -> ::std::os::raw::c_int1247     pub fn sqlite3_bind_value(
1248         arg1: *mut sqlite3_stmt,
1249         arg2: ::std::os::raw::c_int,
1250         arg3: *const sqlite3_value,
1251     ) -> ::std::os::raw::c_int;
1252 }
1253 extern "C" {
sqlite3_bind_pointer( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *mut ::std::os::raw::c_void, arg4: *const ::std::os::raw::c_char, arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1254     pub fn sqlite3_bind_pointer(
1255         arg1: *mut sqlite3_stmt,
1256         arg2: ::std::os::raw::c_int,
1257         arg3: *mut ::std::os::raw::c_void,
1258         arg4: *const ::std::os::raw::c_char,
1259         arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1260     ) -> ::std::os::raw::c_int;
1261 }
1262 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_int1263     pub fn sqlite3_bind_zeroblob(
1264         arg1: *mut sqlite3_stmt,
1265         arg2: ::std::os::raw::c_int,
1266         n: ::std::os::raw::c_int,
1267     ) -> ::std::os::raw::c_int;
1268 }
1269 extern "C" {
sqlite3_bind_zeroblob64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_uint64, ) -> ::std::os::raw::c_int1270     pub fn sqlite3_bind_zeroblob64(
1271         arg1: *mut sqlite3_stmt,
1272         arg2: ::std::os::raw::c_int,
1273         arg3: sqlite3_uint64,
1274     ) -> ::std::os::raw::c_int;
1275 }
1276 extern "C" {
sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1277     pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1278 }
1279 extern "C" {
sqlite3_bind_parameter_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1280     pub fn sqlite3_bind_parameter_name(
1281         arg1: *mut sqlite3_stmt,
1282         arg2: ::std::os::raw::c_int,
1283     ) -> *const ::std::os::raw::c_char;
1284 }
1285 extern "C" {
sqlite3_bind_parameter_index( arg1: *mut sqlite3_stmt, zName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1286     pub fn sqlite3_bind_parameter_index(
1287         arg1: *mut sqlite3_stmt,
1288         zName: *const ::std::os::raw::c_char,
1289     ) -> ::std::os::raw::c_int;
1290 }
1291 extern "C" {
sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1292     pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1293 }
1294 extern "C" {
sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1295     pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1296 }
1297 extern "C" {
sqlite3_column_name( arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1298     pub fn sqlite3_column_name(
1299         arg1: *mut sqlite3_stmt,
1300         N: ::std::os::raw::c_int,
1301     ) -> *const ::std::os::raw::c_char;
1302 }
1303 extern "C" {
sqlite3_column_database_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1304     pub fn sqlite3_column_database_name(
1305         arg1: *mut sqlite3_stmt,
1306         arg2: ::std::os::raw::c_int,
1307     ) -> *const ::std::os::raw::c_char;
1308 }
1309 extern "C" {
sqlite3_column_table_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1310     pub fn sqlite3_column_table_name(
1311         arg1: *mut sqlite3_stmt,
1312         arg2: ::std::os::raw::c_int,
1313     ) -> *const ::std::os::raw::c_char;
1314 }
1315 extern "C" {
sqlite3_column_origin_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1316     pub fn sqlite3_column_origin_name(
1317         arg1: *mut sqlite3_stmt,
1318         arg2: ::std::os::raw::c_int,
1319     ) -> *const ::std::os::raw::c_char;
1320 }
1321 extern "C" {
sqlite3_column_decltype( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1322     pub fn sqlite3_column_decltype(
1323         arg1: *mut sqlite3_stmt,
1324         arg2: ::std::os::raw::c_int,
1325     ) -> *const ::std::os::raw::c_char;
1326 }
1327 extern "C" {
sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1328     pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1329 }
1330 extern "C" {
sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1331     pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1332 }
1333 extern "C" {
sqlite3_column_blob( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_void1334     pub fn sqlite3_column_blob(
1335         arg1: *mut sqlite3_stmt,
1336         iCol: ::std::os::raw::c_int,
1337     ) -> *const ::std::os::raw::c_void;
1338 }
1339 extern "C" {
sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f641340     pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64;
1341 }
1342 extern "C" {
sqlite3_column_int( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1343     pub fn sqlite3_column_int(
1344         arg1: *mut sqlite3_stmt,
1345         iCol: ::std::os::raw::c_int,
1346     ) -> ::std::os::raw::c_int;
1347 }
1348 extern "C" {
sqlite3_column_int64( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> sqlite3_int641349     pub fn sqlite3_column_int64(
1350         arg1: *mut sqlite3_stmt,
1351         iCol: ::std::os::raw::c_int,
1352     ) -> sqlite3_int64;
1353 }
1354 extern "C" {
sqlite3_column_text( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_uchar1355     pub fn sqlite3_column_text(
1356         arg1: *mut sqlite3_stmt,
1357         iCol: ::std::os::raw::c_int,
1358     ) -> *const ::std::os::raw::c_uchar;
1359 }
1360 extern "C" {
sqlite3_column_value( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *mut sqlite3_value1361     pub fn sqlite3_column_value(
1362         arg1: *mut sqlite3_stmt,
1363         iCol: ::std::os::raw::c_int,
1364     ) -> *mut sqlite3_value;
1365 }
1366 extern "C" {
sqlite3_column_bytes( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1367     pub fn sqlite3_column_bytes(
1368         arg1: *mut sqlite3_stmt,
1369         iCol: ::std::os::raw::c_int,
1370     ) -> ::std::os::raw::c_int;
1371 }
1372 extern "C" {
sqlite3_column_type( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1373     pub fn sqlite3_column_type(
1374         arg1: *mut sqlite3_stmt,
1375         iCol: ::std::os::raw::c_int,
1376     ) -> ::std::os::raw::c_int;
1377 }
1378 extern "C" {
sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1379     pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1380 }
1381 extern "C" {
sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int1382     pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1383 }
1384 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_int1385     pub fn sqlite3_create_function_v2(
1386         db: *mut sqlite3,
1387         zFunctionName: *const ::std::os::raw::c_char,
1388         nArg: ::std::os::raw::c_int,
1389         eTextRep: ::std::os::raw::c_int,
1390         pApp: *mut ::std::os::raw::c_void,
1391         xFunc: ::std::option::Option<
1392             unsafe extern "C" fn(
1393                 arg1: *mut sqlite3_context,
1394                 arg2: ::std::os::raw::c_int,
1395                 arg3: *mut *mut sqlite3_value,
1396             ),
1397         >,
1398         xStep: ::std::option::Option<
1399             unsafe extern "C" fn(
1400                 arg1: *mut sqlite3_context,
1401                 arg2: ::std::os::raw::c_int,
1402                 arg3: *mut *mut sqlite3_value,
1403             ),
1404         >,
1405         xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
1406         xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1407     ) -> ::std::os::raw::c_int;
1408 }
1409 extern "C" {
sqlite3_create_window_function( 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, 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)>, xValue: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, xInverse: ::std::option::Option< unsafe extern "C" fn( arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ), >, xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1410     pub fn sqlite3_create_window_function(
1411         db: *mut sqlite3,
1412         zFunctionName: *const ::std::os::raw::c_char,
1413         nArg: ::std::os::raw::c_int,
1414         eTextRep: ::std::os::raw::c_int,
1415         pApp: *mut ::std::os::raw::c_void,
1416         xStep: ::std::option::Option<
1417             unsafe extern "C" fn(
1418                 arg1: *mut sqlite3_context,
1419                 arg2: ::std::os::raw::c_int,
1420                 arg3: *mut *mut sqlite3_value,
1421             ),
1422         >,
1423         xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
1424         xValue: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
1425         xInverse: ::std::option::Option<
1426             unsafe extern "C" fn(
1427                 arg1: *mut sqlite3_context,
1428                 arg2: ::std::os::raw::c_int,
1429                 arg3: *mut *mut sqlite3_value,
1430             ),
1431         >,
1432         xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1433     ) -> ::std::os::raw::c_int;
1434 }
1435 extern "C" {
sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int1436     pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int;
1437 }
1438 extern "C" {
sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int1439     pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int;
1440 }
1441 extern "C" {
sqlite3_transfer_bindings( arg1: *mut sqlite3_stmt, arg2: *mut sqlite3_stmt, ) -> ::std::os::raw::c_int1442     pub fn sqlite3_transfer_bindings(
1443         arg1: *mut sqlite3_stmt,
1444         arg2: *mut sqlite3_stmt,
1445     ) -> ::std::os::raw::c_int;
1446 }
1447 extern "C" {
sqlite3_global_recover() -> ::std::os::raw::c_int1448     pub fn sqlite3_global_recover() -> ::std::os::raw::c_int;
1449 }
1450 extern "C" {
sqlite3_thread_cleanup()1451     pub fn sqlite3_thread_cleanup();
1452 }
1453 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_int1454     pub fn sqlite3_memory_alarm(
1455         arg1: ::std::option::Option<
1456             unsafe extern "C" fn(
1457                 arg1: *mut ::std::os::raw::c_void,
1458                 arg2: sqlite3_int64,
1459                 arg3: ::std::os::raw::c_int,
1460             ),
1461         >,
1462         arg2: *mut ::std::os::raw::c_void,
1463         arg3: sqlite3_int64,
1464     ) -> ::std::os::raw::c_int;
1465 }
1466 extern "C" {
sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void1467     pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void;
1468 }
1469 extern "C" {
sqlite3_value_double(arg1: *mut sqlite3_value) -> f641470     pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64;
1471 }
1472 extern "C" {
sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1473     pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1474 }
1475 extern "C" {
sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int641476     pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64;
1477 }
1478 extern "C" {
sqlite3_value_pointer( arg1: *mut sqlite3_value, arg2: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_void1479     pub fn sqlite3_value_pointer(
1480         arg1: *mut sqlite3_value,
1481         arg2: *const ::std::os::raw::c_char,
1482     ) -> *mut ::std::os::raw::c_void;
1483 }
1484 extern "C" {
sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar1485     pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar;
1486 }
1487 extern "C" {
sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1488     pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1489 }
1490 extern "C" {
sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1491     pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1492 }
1493 extern "C" {
sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1494     pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1495 }
1496 extern "C" {
sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1497     pub fn sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1498 }
1499 extern "C" {
sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1500     pub fn sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1501 }
1502 extern "C" {
sqlite3_value_encoding(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int1503     pub fn sqlite3_value_encoding(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int;
1504 }
1505 extern "C" {
sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint1506     pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint;
1507 }
1508 extern "C" {
sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value1509     pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value;
1510 }
1511 extern "C" {
sqlite3_value_free(arg1: *mut sqlite3_value)1512     pub fn sqlite3_value_free(arg1: *mut sqlite3_value);
1513 }
1514 extern "C" {
sqlite3_aggregate_context( arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void1515     pub fn sqlite3_aggregate_context(
1516         arg1: *mut sqlite3_context,
1517         nBytes: ::std::os::raw::c_int,
1518     ) -> *mut ::std::os::raw::c_void;
1519 }
1520 extern "C" {
sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void1521     pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void;
1522 }
1523 extern "C" {
sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite31524     pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3;
1525 }
1526 extern "C" {
sqlite3_get_auxdata( arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void1527     pub fn sqlite3_get_auxdata(
1528         arg1: *mut sqlite3_context,
1529         N: ::std::os::raw::c_int,
1530     ) -> *mut ::std::os::raw::c_void;
1531 }
1532 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)>, )1533     pub fn sqlite3_set_auxdata(
1534         arg1: *mut sqlite3_context,
1535         N: ::std::os::raw::c_int,
1536         arg2: *mut ::std::os::raw::c_void,
1537         arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1538     );
1539 }
1540 extern "C" {
sqlite3_get_clientdata( arg1: *mut sqlite3, arg2: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_void1541     pub fn sqlite3_get_clientdata(
1542         arg1: *mut sqlite3,
1543         arg2: *const ::std::os::raw::c_char,
1544     ) -> *mut ::std::os::raw::c_void;
1545 }
1546 extern "C" {
sqlite3_set_clientdata( arg1: *mut sqlite3, arg2: *const ::std::os::raw::c_char, arg3: *mut ::std::os::raw::c_void, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1547     pub fn sqlite3_set_clientdata(
1548         arg1: *mut sqlite3,
1549         arg2: *const ::std::os::raw::c_char,
1550         arg3: *mut ::std::os::raw::c_void,
1551         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1552     ) -> ::std::os::raw::c_int;
1553 }
1554 pub type sqlite3_destructor_type =
1555     ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
1556 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)>, )1557     pub fn sqlite3_result_blob(
1558         arg1: *mut sqlite3_context,
1559         arg2: *const ::std::os::raw::c_void,
1560         arg3: ::std::os::raw::c_int,
1561         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1562     );
1563 }
1564 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)>, )1565     pub fn sqlite3_result_blob64(
1566         arg1: *mut sqlite3_context,
1567         arg2: *const ::std::os::raw::c_void,
1568         arg3: sqlite3_uint64,
1569         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1570     );
1571 }
1572 extern "C" {
sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64)1573     pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64);
1574 }
1575 extern "C" {
sqlite3_result_error( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, )1576     pub fn sqlite3_result_error(
1577         arg1: *mut sqlite3_context,
1578         arg2: *const ::std::os::raw::c_char,
1579         arg3: ::std::os::raw::c_int,
1580     );
1581 }
1582 extern "C" {
sqlite3_result_error_toobig(arg1: *mut sqlite3_context)1583     pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context);
1584 }
1585 extern "C" {
sqlite3_result_error_nomem(arg1: *mut sqlite3_context)1586     pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context);
1587 }
1588 extern "C" {
sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1589     pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int);
1590 }
1591 extern "C" {
sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int)1592     pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int);
1593 }
1594 extern "C" {
sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64)1595     pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64);
1596 }
1597 extern "C" {
sqlite3_result_null(arg1: *mut sqlite3_context)1598     pub fn sqlite3_result_null(arg1: *mut sqlite3_context);
1599 }
1600 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)>, )1601     pub fn sqlite3_result_text(
1602         arg1: *mut sqlite3_context,
1603         arg2: *const ::std::os::raw::c_char,
1604         arg3: ::std::os::raw::c_int,
1605         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1606     );
1607 }
1608 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, )1609     pub fn sqlite3_result_text64(
1610         arg1: *mut sqlite3_context,
1611         arg2: *const ::std::os::raw::c_char,
1612         arg3: sqlite3_uint64,
1613         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1614         encoding: ::std::os::raw::c_uchar,
1615     );
1616 }
1617 extern "C" {
sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value)1618     pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value);
1619 }
1620 extern "C" {
sqlite3_result_pointer( arg1: *mut sqlite3_context, arg2: *mut ::std::os::raw::c_void, arg3: *const ::std::os::raw::c_char, arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, )1621     pub fn sqlite3_result_pointer(
1622         arg1: *mut sqlite3_context,
1623         arg2: *mut ::std::os::raw::c_void,
1624         arg3: *const ::std::os::raw::c_char,
1625         arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1626     );
1627 }
1628 extern "C" {
sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int)1629     pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int);
1630 }
1631 extern "C" {
sqlite3_result_zeroblob64( arg1: *mut sqlite3_context, n: sqlite3_uint64, ) -> ::std::os::raw::c_int1632     pub fn sqlite3_result_zeroblob64(
1633         arg1: *mut sqlite3_context,
1634         n: sqlite3_uint64,
1635     ) -> ::std::os::raw::c_int;
1636 }
1637 extern "C" {
sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint)1638     pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint);
1639 }
1640 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_int1641     pub fn sqlite3_create_collation_v2(
1642         arg1: *mut sqlite3,
1643         zName: *const ::std::os::raw::c_char,
1644         eTextRep: ::std::os::raw::c_int,
1645         pArg: *mut ::std::os::raw::c_void,
1646         xCompare: ::std::option::Option<
1647             unsafe extern "C" fn(
1648                 arg1: *mut ::std::os::raw::c_void,
1649                 arg2: ::std::os::raw::c_int,
1650                 arg3: *const ::std::os::raw::c_void,
1651                 arg4: ::std::os::raw::c_int,
1652                 arg5: *const ::std::os::raw::c_void,
1653             ) -> ::std::os::raw::c_int,
1654         >,
1655         xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1656     ) -> ::std::os::raw::c_int;
1657 }
1658 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_int1659     pub fn sqlite3_collation_needed(
1660         arg1: *mut sqlite3,
1661         arg2: *mut ::std::os::raw::c_void,
1662         arg3: ::std::option::Option<
1663             unsafe extern "C" fn(
1664                 arg1: *mut ::std::os::raw::c_void,
1665                 arg2: *mut sqlite3,
1666                 eTextRep: ::std::os::raw::c_int,
1667                 arg3: *const ::std::os::raw::c_char,
1668             ),
1669         >,
1670     ) -> ::std::os::raw::c_int;
1671 }
1672 extern "C" {
sqlite3_key( db: *mut sqlite3, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1673     pub fn sqlite3_key(
1674         db: *mut sqlite3,
1675         pKey: *const ::std::os::raw::c_void,
1676         nKey: ::std::os::raw::c_int,
1677     ) -> ::std::os::raw::c_int;
1678 }
1679 extern "C" {
sqlite3_key_v2( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1680     pub fn sqlite3_key_v2(
1681         db: *mut sqlite3,
1682         zDbName: *const ::std::os::raw::c_char,
1683         pKey: *const ::std::os::raw::c_void,
1684         nKey: ::std::os::raw::c_int,
1685     ) -> ::std::os::raw::c_int;
1686 }
1687 extern "C" {
sqlite3_rekey( db: *mut sqlite3, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1688     pub fn sqlite3_rekey(
1689         db: *mut sqlite3,
1690         pKey: *const ::std::os::raw::c_void,
1691         nKey: ::std::os::raw::c_int,
1692     ) -> ::std::os::raw::c_int;
1693 }
1694 extern "C" {
sqlite3_rekey_v2( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, pKey: *const ::std::os::raw::c_void, nKey: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1695     pub fn sqlite3_rekey_v2(
1696         db: *mut sqlite3,
1697         zDbName: *const ::std::os::raw::c_char,
1698         pKey: *const ::std::os::raw::c_void,
1699         nKey: ::std::os::raw::c_int,
1700     ) -> ::std::os::raw::c_int;
1701 }
1702 extern "C" {
sqlite3_activate_see(zPassPhrase: *const ::std::os::raw::c_char)1703     pub fn sqlite3_activate_see(zPassPhrase: *const ::std::os::raw::c_char);
1704 }
1705 extern "C" {
sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1706     pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1707 }
1708 extern "C" {
1709     pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char;
1710 }
1711 extern "C" {
1712     pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char;
1713 }
1714 extern "C" {
sqlite3_win32_set_directory( type_: ::std::os::raw::c_ulong, zValue: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int1715     pub fn sqlite3_win32_set_directory(
1716         type_: ::std::os::raw::c_ulong,
1717         zValue: *mut ::std::os::raw::c_void,
1718     ) -> ::std::os::raw::c_int;
1719 }
1720 extern "C" {
sqlite3_win32_set_directory8( type_: ::std::os::raw::c_ulong, zValue: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1721     pub fn sqlite3_win32_set_directory8(
1722         type_: ::std::os::raw::c_ulong,
1723         zValue: *const ::std::os::raw::c_char,
1724     ) -> ::std::os::raw::c_int;
1725 }
1726 extern "C" {
sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int1727     pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
1728 }
1729 extern "C" {
sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite31730     pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3;
1731 }
1732 extern "C" {
sqlite3_db_name( db: *mut sqlite3, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char1733     pub fn sqlite3_db_name(
1734         db: *mut sqlite3,
1735         N: ::std::os::raw::c_int,
1736     ) -> *const ::std::os::raw::c_char;
1737 }
1738 extern "C" {
sqlite3_db_filename( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> sqlite3_filename1739     pub fn sqlite3_db_filename(
1740         db: *mut sqlite3,
1741         zDbName: *const ::std::os::raw::c_char,
1742     ) -> sqlite3_filename;
1743 }
1744 extern "C" {
sqlite3_db_readonly( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1745     pub fn sqlite3_db_readonly(
1746         db: *mut sqlite3,
1747         zDbName: *const ::std::os::raw::c_char,
1748     ) -> ::std::os::raw::c_int;
1749 }
1750 extern "C" {
sqlite3_txn_state( arg1: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int1751     pub fn sqlite3_txn_state(
1752         arg1: *mut sqlite3,
1753         zSchema: *const ::std::os::raw::c_char,
1754     ) -> ::std::os::raw::c_int;
1755 }
1756 extern "C" {
sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt1757     pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt;
1758 }
1759 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_void1760     pub fn sqlite3_commit_hook(
1761         arg1: *mut sqlite3,
1762         arg2: ::std::option::Option<
1763             unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
1764         >,
1765         arg3: *mut ::std::os::raw::c_void,
1766     ) -> *mut ::std::os::raw::c_void;
1767 }
1768 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_void1769     pub fn sqlite3_rollback_hook(
1770         arg1: *mut sqlite3,
1771         arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1772         arg3: *mut ::std::os::raw::c_void,
1773     ) -> *mut ::std::os::raw::c_void;
1774 }
1775 extern "C" {
sqlite3_autovacuum_pages( db: *mut sqlite3, arg1: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_uint, arg4: ::std::os::raw::c_uint, arg5: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint, >, arg2: *mut ::std::os::raw::c_void, arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, ) -> ::std::os::raw::c_int1776     pub fn sqlite3_autovacuum_pages(
1777         db: *mut sqlite3,
1778         arg1: ::std::option::Option<
1779             unsafe extern "C" fn(
1780                 arg1: *mut ::std::os::raw::c_void,
1781                 arg2: *const ::std::os::raw::c_char,
1782                 arg3: ::std::os::raw::c_uint,
1783                 arg4: ::std::os::raw::c_uint,
1784                 arg5: ::std::os::raw::c_uint,
1785             ) -> ::std::os::raw::c_uint,
1786         >,
1787         arg2: *mut ::std::os::raw::c_void,
1788         arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
1789     ) -> ::std::os::raw::c_int;
1790 }
1791 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_void1792     pub fn sqlite3_update_hook(
1793         arg1: *mut sqlite3,
1794         arg2: ::std::option::Option<
1795             unsafe extern "C" fn(
1796                 arg1: *mut ::std::os::raw::c_void,
1797                 arg2: ::std::os::raw::c_int,
1798                 arg3: *const ::std::os::raw::c_char,
1799                 arg4: *const ::std::os::raw::c_char,
1800                 arg5: sqlite3_int64,
1801             ),
1802         >,
1803         arg3: *mut ::std::os::raw::c_void,
1804     ) -> *mut ::std::os::raw::c_void;
1805 }
1806 extern "C" {
sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1807     pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1808 }
1809 extern "C" {
sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int1810     pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1811 }
1812 extern "C" {
sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int1813     pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
1814 }
1815 extern "C" {
sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int641816     pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64;
1817 }
1818 extern "C" {
sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int641819     pub fn sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int64;
1820 }
1821 extern "C" {
sqlite3_soft_heap_limit(N: ::std::os::raw::c_int)1822     pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int);
1823 }
1824 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_int1825     pub fn sqlite3_table_column_metadata(
1826         db: *mut sqlite3,
1827         zDbName: *const ::std::os::raw::c_char,
1828         zTableName: *const ::std::os::raw::c_char,
1829         zColumnName: *const ::std::os::raw::c_char,
1830         pzDataType: *mut *const ::std::os::raw::c_char,
1831         pzCollSeq: *mut *const ::std::os::raw::c_char,
1832         pNotNull: *mut ::std::os::raw::c_int,
1833         pPrimaryKey: *mut ::std::os::raw::c_int,
1834         pAutoinc: *mut ::std::os::raw::c_int,
1835     ) -> ::std::os::raw::c_int;
1836 }
1837 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_int1838     pub fn sqlite3_load_extension(
1839         db: *mut sqlite3,
1840         zFile: *const ::std::os::raw::c_char,
1841         zProc: *const ::std::os::raw::c_char,
1842         pzErrMsg: *mut *mut ::std::os::raw::c_char,
1843     ) -> ::std::os::raw::c_int;
1844 }
1845 extern "C" {
sqlite3_enable_load_extension( db: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1846     pub fn sqlite3_enable_load_extension(
1847         db: *mut sqlite3,
1848         onoff: ::std::os::raw::c_int,
1849     ) -> ::std::os::raw::c_int;
1850 }
1851 extern "C" {
sqlite3_reset_auto_extension()1852     pub fn sqlite3_reset_auto_extension();
1853 }
1854 #[repr(C)]
1855 #[derive(Debug, Copy, Clone)]
1856 pub struct sqlite3_module {
1857     pub iVersion: ::std::os::raw::c_int,
1858     pub xCreate: ::std::option::Option<
1859         unsafe extern "C" fn(
1860             arg1: *mut sqlite3,
1861             pAux: *mut ::std::os::raw::c_void,
1862             argc: ::std::os::raw::c_int,
1863             argv: *const *const ::std::os::raw::c_char,
1864             ppVTab: *mut *mut sqlite3_vtab,
1865             arg2: *mut *mut ::std::os::raw::c_char,
1866         ) -> ::std::os::raw::c_int,
1867     >,
1868     pub xConnect: ::std::option::Option<
1869         unsafe extern "C" fn(
1870             arg1: *mut sqlite3,
1871             pAux: *mut ::std::os::raw::c_void,
1872             argc: ::std::os::raw::c_int,
1873             argv: *const *const ::std::os::raw::c_char,
1874             ppVTab: *mut *mut sqlite3_vtab,
1875             arg2: *mut *mut ::std::os::raw::c_char,
1876         ) -> ::std::os::raw::c_int,
1877     >,
1878     pub xBestIndex: ::std::option::Option<
1879         unsafe extern "C" fn(
1880             pVTab: *mut sqlite3_vtab,
1881             arg1: *mut sqlite3_index_info,
1882         ) -> ::std::os::raw::c_int,
1883     >,
1884     pub xDisconnect: ::std::option::Option<
1885         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1886     >,
1887     pub xDestroy: ::std::option::Option<
1888         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1889     >,
1890     pub xOpen: ::std::option::Option<
1891         unsafe extern "C" fn(
1892             pVTab: *mut sqlite3_vtab,
1893             ppCursor: *mut *mut sqlite3_vtab_cursor,
1894         ) -> ::std::os::raw::c_int,
1895     >,
1896     pub xClose: ::std::option::Option<
1897         unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int,
1898     >,
1899     pub xFilter: ::std::option::Option<
1900         unsafe extern "C" fn(
1901             arg1: *mut sqlite3_vtab_cursor,
1902             idxNum: ::std::os::raw::c_int,
1903             idxStr: *const ::std::os::raw::c_char,
1904             argc: ::std::os::raw::c_int,
1905             argv: *mut *mut sqlite3_value,
1906         ) -> ::std::os::raw::c_int,
1907     >,
1908     pub xNext: ::std::option::Option<
1909         unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int,
1910     >,
1911     pub xEof: ::std::option::Option<
1912         unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int,
1913     >,
1914     pub xColumn: ::std::option::Option<
1915         unsafe extern "C" fn(
1916             arg1: *mut sqlite3_vtab_cursor,
1917             arg2: *mut sqlite3_context,
1918             arg3: ::std::os::raw::c_int,
1919         ) -> ::std::os::raw::c_int,
1920     >,
1921     pub xRowid: ::std::option::Option<
1922         unsafe extern "C" fn(
1923             arg1: *mut sqlite3_vtab_cursor,
1924             pRowid: *mut sqlite3_int64,
1925         ) -> ::std::os::raw::c_int,
1926     >,
1927     pub xUpdate: ::std::option::Option<
1928         unsafe extern "C" fn(
1929             arg1: *mut sqlite3_vtab,
1930             arg2: ::std::os::raw::c_int,
1931             arg3: *mut *mut sqlite3_value,
1932             arg4: *mut sqlite3_int64,
1933         ) -> ::std::os::raw::c_int,
1934     >,
1935     pub xBegin: ::std::option::Option<
1936         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1937     >,
1938     pub xSync: ::std::option::Option<
1939         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1940     >,
1941     pub xCommit: ::std::option::Option<
1942         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1943     >,
1944     pub xRollback: ::std::option::Option<
1945         unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int,
1946     >,
1947     pub xFindFunction: ::std::option::Option<
1948         unsafe extern "C" fn(
1949             pVtab: *mut sqlite3_vtab,
1950             nArg: ::std::os::raw::c_int,
1951             zName: *const ::std::os::raw::c_char,
1952             pxFunc: *mut ::std::option::Option<
1953                 unsafe extern "C" fn(
1954                     arg1: *mut sqlite3_context,
1955                     arg2: ::std::os::raw::c_int,
1956                     arg3: *mut *mut sqlite3_value,
1957                 ),
1958             >,
1959             ppArg: *mut *mut ::std::os::raw::c_void,
1960         ) -> ::std::os::raw::c_int,
1961     >,
1962     pub xRename: ::std::option::Option<
1963         unsafe extern "C" fn(
1964             pVtab: *mut sqlite3_vtab,
1965             zNew: *const ::std::os::raw::c_char,
1966         ) -> ::std::os::raw::c_int,
1967     >,
1968     pub xSavepoint: ::std::option::Option<
1969         unsafe extern "C" fn(
1970             pVTab: *mut sqlite3_vtab,
1971             arg1: ::std::os::raw::c_int,
1972         ) -> ::std::os::raw::c_int,
1973     >,
1974     pub xRelease: ::std::option::Option<
1975         unsafe extern "C" fn(
1976             pVTab: *mut sqlite3_vtab,
1977             arg1: ::std::os::raw::c_int,
1978         ) -> ::std::os::raw::c_int,
1979     >,
1980     pub xRollbackTo: ::std::option::Option<
1981         unsafe extern "C" fn(
1982             pVTab: *mut sqlite3_vtab,
1983             arg1: ::std::os::raw::c_int,
1984         ) -> ::std::os::raw::c_int,
1985     >,
1986     pub xShadowName: ::std::option::Option<
1987         unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int,
1988     >,
1989     pub xIntegrity: ::std::option::Option<
1990         unsafe extern "C" fn(
1991             pVTab: *mut sqlite3_vtab,
1992             zSchema: *const ::std::os::raw::c_char,
1993             zTabName: *const ::std::os::raw::c_char,
1994             mFlags: ::std::os::raw::c_int,
1995             pzErr: *mut *mut ::std::os::raw::c_char,
1996         ) -> ::std::os::raw::c_int,
1997     >,
1998 }
1999 #[repr(C)]
2000 #[derive(Debug, Copy, Clone)]
2001 pub struct sqlite3_index_info {
2002     pub nConstraint: ::std::os::raw::c_int,
2003     pub aConstraint: *mut sqlite3_index_constraint,
2004     pub nOrderBy: ::std::os::raw::c_int,
2005     pub aOrderBy: *mut sqlite3_index_orderby,
2006     pub aConstraintUsage: *mut sqlite3_index_constraint_usage,
2007     pub idxNum: ::std::os::raw::c_int,
2008     pub idxStr: *mut ::std::os::raw::c_char,
2009     pub needToFreeIdxStr: ::std::os::raw::c_int,
2010     pub orderByConsumed: ::std::os::raw::c_int,
2011     pub estimatedCost: f64,
2012     pub estimatedRows: sqlite3_int64,
2013     pub idxFlags: ::std::os::raw::c_int,
2014     pub colUsed: sqlite3_uint64,
2015 }
2016 #[repr(C)]
2017 #[derive(Debug, Copy, Clone)]
2018 pub struct sqlite3_index_constraint {
2019     pub iColumn: ::std::os::raw::c_int,
2020     pub op: ::std::os::raw::c_uchar,
2021     pub usable: ::std::os::raw::c_uchar,
2022     pub iTermOffset: ::std::os::raw::c_int,
2023 }
2024 #[repr(C)]
2025 #[derive(Debug, Copy, Clone)]
2026 pub struct sqlite3_index_orderby {
2027     pub iColumn: ::std::os::raw::c_int,
2028     pub desc: ::std::os::raw::c_uchar,
2029 }
2030 #[repr(C)]
2031 #[derive(Debug, Copy, Clone)]
2032 pub struct sqlite3_index_constraint_usage {
2033     pub argvIndex: ::std::os::raw::c_int,
2034     pub omit: ::std::os::raw::c_uchar,
2035 }
2036 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_int2037     pub fn sqlite3_create_module_v2(
2038         db: *mut sqlite3,
2039         zName: *const ::std::os::raw::c_char,
2040         p: *const sqlite3_module,
2041         pClientData: *mut ::std::os::raw::c_void,
2042         xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2043     ) -> ::std::os::raw::c_int;
2044 }
2045 extern "C" {
sqlite3_drop_modules( db: *mut sqlite3, azKeep: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2046     pub fn sqlite3_drop_modules(
2047         db: *mut sqlite3,
2048         azKeep: *mut *const ::std::os::raw::c_char,
2049     ) -> ::std::os::raw::c_int;
2050 }
2051 #[repr(C)]
2052 #[derive(Debug, Copy, Clone)]
2053 pub struct sqlite3_vtab {
2054     pub pModule: *const sqlite3_module,
2055     pub nRef: ::std::os::raw::c_int,
2056     pub zErrMsg: *mut ::std::os::raw::c_char,
2057 }
2058 #[repr(C)]
2059 #[derive(Debug, Copy, Clone)]
2060 pub struct sqlite3_vtab_cursor {
2061     pub pVtab: *mut sqlite3_vtab,
2062 }
2063 extern "C" {
sqlite3_declare_vtab( arg1: *mut sqlite3, zSQL: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2064     pub fn sqlite3_declare_vtab(
2065         arg1: *mut sqlite3,
2066         zSQL: *const ::std::os::raw::c_char,
2067     ) -> ::std::os::raw::c_int;
2068 }
2069 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_int2070     pub fn sqlite3_overload_function(
2071         arg1: *mut sqlite3,
2072         zFuncName: *const ::std::os::raw::c_char,
2073         nArg: ::std::os::raw::c_int,
2074     ) -> ::std::os::raw::c_int;
2075 }
2076 #[repr(C)]
2077 #[derive(Debug, Copy, Clone)]
2078 pub struct sqlite3_blob {
2079     _unused: [u8; 0],
2080 }
2081 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_int2082     pub fn sqlite3_blob_open(
2083         arg1: *mut sqlite3,
2084         zDb: *const ::std::os::raw::c_char,
2085         zTable: *const ::std::os::raw::c_char,
2086         zColumn: *const ::std::os::raw::c_char,
2087         iRow: sqlite3_int64,
2088         flags: ::std::os::raw::c_int,
2089         ppBlob: *mut *mut sqlite3_blob,
2090     ) -> ::std::os::raw::c_int;
2091 }
2092 extern "C" {
sqlite3_blob_reopen( arg1: *mut sqlite3_blob, arg2: sqlite3_int64, ) -> ::std::os::raw::c_int2093     pub fn sqlite3_blob_reopen(
2094         arg1: *mut sqlite3_blob,
2095         arg2: sqlite3_int64,
2096     ) -> ::std::os::raw::c_int;
2097 }
2098 extern "C" {
sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int2099     pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int;
2100 }
2101 extern "C" {
sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int2102     pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int;
2103 }
2104 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_int2105     pub fn sqlite3_blob_read(
2106         arg1: *mut sqlite3_blob,
2107         Z: *mut ::std::os::raw::c_void,
2108         N: ::std::os::raw::c_int,
2109         iOffset: ::std::os::raw::c_int,
2110     ) -> ::std::os::raw::c_int;
2111 }
2112 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_int2113     pub fn sqlite3_blob_write(
2114         arg1: *mut sqlite3_blob,
2115         z: *const ::std::os::raw::c_void,
2116         n: ::std::os::raw::c_int,
2117         iOffset: ::std::os::raw::c_int,
2118     ) -> ::std::os::raw::c_int;
2119 }
2120 extern "C" {
sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs2121     pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs;
2122 }
2123 extern "C" {
sqlite3_vfs_register( arg1: *mut sqlite3_vfs, makeDflt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2124     pub fn sqlite3_vfs_register(
2125         arg1: *mut sqlite3_vfs,
2126         makeDflt: ::std::os::raw::c_int,
2127     ) -> ::std::os::raw::c_int;
2128 }
2129 extern "C" {
sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int2130     pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int;
2131 }
2132 extern "C" {
sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex2133     pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex;
2134 }
2135 extern "C" {
sqlite3_mutex_free(arg1: *mut sqlite3_mutex)2136     pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex);
2137 }
2138 extern "C" {
sqlite3_mutex_enter(arg1: *mut sqlite3_mutex)2139     pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex);
2140 }
2141 extern "C" {
sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int2142     pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int;
2143 }
2144 extern "C" {
sqlite3_mutex_leave(arg1: *mut sqlite3_mutex)2145     pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex);
2146 }
2147 #[repr(C)]
2148 #[derive(Debug, Copy, Clone)]
2149 pub struct sqlite3_mutex_methods {
2150     pub xMutexInit: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
2151     pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
2152     pub xMutexAlloc: ::std::option::Option<
2153         unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex,
2154     >,
2155     pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>,
2156     pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>,
2157     pub xMutexTry: ::std::option::Option<
2158         unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int,
2159     >,
2160     pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>,
2161     pub xMutexHeld: ::std::option::Option<
2162         unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int,
2163     >,
2164     pub xMutexNotheld: ::std::option::Option<
2165         unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int,
2166     >,
2167 }
2168 extern "C" {
sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int2169     pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int;
2170 }
2171 extern "C" {
sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int2172     pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int;
2173 }
2174 extern "C" {
sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex2175     pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex;
2176 }
2177 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_int2178     pub fn sqlite3_file_control(
2179         arg1: *mut sqlite3,
2180         zDbName: *const ::std::os::raw::c_char,
2181         op: ::std::os::raw::c_int,
2182         arg2: *mut ::std::os::raw::c_void,
2183     ) -> ::std::os::raw::c_int;
2184 }
2185 extern "C" {
sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int2186     pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int;
2187 }
2188 extern "C" {
sqlite3_keyword_count() -> ::std::os::raw::c_int2189     pub fn sqlite3_keyword_count() -> ::std::os::raw::c_int;
2190 }
2191 extern "C" {
sqlite3_keyword_name( arg1: ::std::os::raw::c_int, arg2: *mut *const ::std::os::raw::c_char, arg3: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2192     pub fn sqlite3_keyword_name(
2193         arg1: ::std::os::raw::c_int,
2194         arg2: *mut *const ::std::os::raw::c_char,
2195         arg3: *mut ::std::os::raw::c_int,
2196     ) -> ::std::os::raw::c_int;
2197 }
2198 extern "C" {
sqlite3_keyword_check( arg1: *const ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2199     pub fn sqlite3_keyword_check(
2200         arg1: *const ::std::os::raw::c_char,
2201         arg2: ::std::os::raw::c_int,
2202     ) -> ::std::os::raw::c_int;
2203 }
2204 #[repr(C)]
2205 #[derive(Debug, Copy, Clone)]
2206 pub struct sqlite3_str {
2207     _unused: [u8; 0],
2208 }
2209 extern "C" {
sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str2210     pub fn sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str;
2211 }
2212 extern "C" {
sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char2213     pub fn sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char;
2214 }
2215 extern "C" {
sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...)2216     pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...);
2217 }
2218 extern "C" {
sqlite3_str_append( arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char, N: ::std::os::raw::c_int, )2219     pub fn sqlite3_str_append(
2220         arg1: *mut sqlite3_str,
2221         zIn: *const ::std::os::raw::c_char,
2222         N: ::std::os::raw::c_int,
2223     );
2224 }
2225 extern "C" {
sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char)2226     pub fn sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char);
2227 }
2228 extern "C" {
sqlite3_str_appendchar( arg1: *mut sqlite3_str, N: ::std::os::raw::c_int, C: ::std::os::raw::c_char, )2229     pub fn sqlite3_str_appendchar(
2230         arg1: *mut sqlite3_str,
2231         N: ::std::os::raw::c_int,
2232         C: ::std::os::raw::c_char,
2233     );
2234 }
2235 extern "C" {
sqlite3_str_reset(arg1: *mut sqlite3_str)2236     pub fn sqlite3_str_reset(arg1: *mut sqlite3_str);
2237 }
2238 extern "C" {
sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int2239     pub fn sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int;
2240 }
2241 extern "C" {
sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int2242     pub fn sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int;
2243 }
2244 extern "C" {
sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char2245     pub fn sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char;
2246 }
2247 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_int2248     pub fn sqlite3_status(
2249         op: ::std::os::raw::c_int,
2250         pCurrent: *mut ::std::os::raw::c_int,
2251         pHighwater: *mut ::std::os::raw::c_int,
2252         resetFlag: ::std::os::raw::c_int,
2253     ) -> ::std::os::raw::c_int;
2254 }
2255 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_int2256     pub fn sqlite3_status64(
2257         op: ::std::os::raw::c_int,
2258         pCurrent: *mut sqlite3_int64,
2259         pHighwater: *mut sqlite3_int64,
2260         resetFlag: ::std::os::raw::c_int,
2261     ) -> ::std::os::raw::c_int;
2262 }
2263 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_int2264     pub fn sqlite3_db_status(
2265         arg1: *mut sqlite3,
2266         op: ::std::os::raw::c_int,
2267         pCur: *mut ::std::os::raw::c_int,
2268         pHiwtr: *mut ::std::os::raw::c_int,
2269         resetFlg: ::std::os::raw::c_int,
2270     ) -> ::std::os::raw::c_int;
2271 }
2272 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_int2273     pub fn sqlite3_stmt_status(
2274         arg1: *mut sqlite3_stmt,
2275         op: ::std::os::raw::c_int,
2276         resetFlg: ::std::os::raw::c_int,
2277     ) -> ::std::os::raw::c_int;
2278 }
2279 #[repr(C)]
2280 #[derive(Debug, Copy, Clone)]
2281 pub struct sqlite3_pcache {
2282     _unused: [u8; 0],
2283 }
2284 #[repr(C)]
2285 #[derive(Debug, Copy, Clone)]
2286 pub struct sqlite3_pcache_page {
2287     pub pBuf: *mut ::std::os::raw::c_void,
2288     pub pExtra: *mut ::std::os::raw::c_void,
2289 }
2290 #[repr(C)]
2291 #[derive(Debug, Copy, Clone)]
2292 pub struct sqlite3_pcache_methods2 {
2293     pub iVersion: ::std::os::raw::c_int,
2294     pub pArg: *mut ::std::os::raw::c_void,
2295     pub xInit: ::std::option::Option<
2296         unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
2297     >,
2298     pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2299     pub xCreate: ::std::option::Option<
2300         unsafe extern "C" fn(
2301             szPage: ::std::os::raw::c_int,
2302             szExtra: ::std::os::raw::c_int,
2303             bPurgeable: ::std::os::raw::c_int,
2304         ) -> *mut sqlite3_pcache,
2305     >,
2306     pub xCachesize: ::std::option::Option<
2307         unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int),
2308     >,
2309     pub xPagecount: ::std::option::Option<
2310         unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int,
2311     >,
2312     pub xFetch: ::std::option::Option<
2313         unsafe extern "C" fn(
2314             arg1: *mut sqlite3_pcache,
2315             key: ::std::os::raw::c_uint,
2316             createFlag: ::std::os::raw::c_int,
2317         ) -> *mut sqlite3_pcache_page,
2318     >,
2319     pub xUnpin: ::std::option::Option<
2320         unsafe extern "C" fn(
2321             arg1: *mut sqlite3_pcache,
2322             arg2: *mut sqlite3_pcache_page,
2323             discard: ::std::os::raw::c_int,
2324         ),
2325     >,
2326     pub xRekey: ::std::option::Option<
2327         unsafe extern "C" fn(
2328             arg1: *mut sqlite3_pcache,
2329             arg2: *mut sqlite3_pcache_page,
2330             oldKey: ::std::os::raw::c_uint,
2331             newKey: ::std::os::raw::c_uint,
2332         ),
2333     >,
2334     pub xTruncate: ::std::option::Option<
2335         unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint),
2336     >,
2337     pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>,
2338     pub xShrink: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>,
2339 }
2340 #[repr(C)]
2341 #[derive(Debug, Copy, Clone)]
2342 pub struct sqlite3_pcache_methods {
2343     pub pArg: *mut ::std::os::raw::c_void,
2344     pub xInit: ::std::option::Option<
2345         unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
2346     >,
2347     pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2348     pub xCreate: ::std::option::Option<
2349         unsafe extern "C" fn(
2350             szPage: ::std::os::raw::c_int,
2351             bPurgeable: ::std::os::raw::c_int,
2352         ) -> *mut sqlite3_pcache,
2353     >,
2354     pub xCachesize: ::std::option::Option<
2355         unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int),
2356     >,
2357     pub xPagecount: ::std::option::Option<
2358         unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int,
2359     >,
2360     pub xFetch: ::std::option::Option<
2361         unsafe extern "C" fn(
2362             arg1: *mut sqlite3_pcache,
2363             key: ::std::os::raw::c_uint,
2364             createFlag: ::std::os::raw::c_int,
2365         ) -> *mut ::std::os::raw::c_void,
2366     >,
2367     pub xUnpin: ::std::option::Option<
2368         unsafe extern "C" fn(
2369             arg1: *mut sqlite3_pcache,
2370             arg2: *mut ::std::os::raw::c_void,
2371             discard: ::std::os::raw::c_int,
2372         ),
2373     >,
2374     pub xRekey: ::std::option::Option<
2375         unsafe extern "C" fn(
2376             arg1: *mut sqlite3_pcache,
2377             arg2: *mut ::std::os::raw::c_void,
2378             oldKey: ::std::os::raw::c_uint,
2379             newKey: ::std::os::raw::c_uint,
2380         ),
2381     >,
2382     pub xTruncate: ::std::option::Option<
2383         unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint),
2384     >,
2385     pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>,
2386 }
2387 #[repr(C)]
2388 #[derive(Debug, Copy, Clone)]
2389 pub struct sqlite3_backup {
2390     _unused: [u8; 0],
2391 }
2392 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_backup2393     pub fn sqlite3_backup_init(
2394         pDest: *mut sqlite3,
2395         zDestName: *const ::std::os::raw::c_char,
2396         pSource: *mut sqlite3,
2397         zSourceName: *const ::std::os::raw::c_char,
2398     ) -> *mut sqlite3_backup;
2399 }
2400 extern "C" {
sqlite3_backup_step( p: *mut sqlite3_backup, nPage: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2401     pub fn sqlite3_backup_step(
2402         p: *mut sqlite3_backup,
2403         nPage: ::std::os::raw::c_int,
2404     ) -> ::std::os::raw::c_int;
2405 }
2406 extern "C" {
sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2407     pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int;
2408 }
2409 extern "C" {
sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2410     pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int;
2411 }
2412 extern "C" {
sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int2413     pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int;
2414 }
2415 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_int2416     pub fn sqlite3_unlock_notify(
2417         pBlocked: *mut sqlite3,
2418         xNotify: ::std::option::Option<
2419             unsafe extern "C" fn(
2420                 apArg: *mut *mut ::std::os::raw::c_void,
2421                 nArg: ::std::os::raw::c_int,
2422             ),
2423         >,
2424         pNotifyArg: *mut ::std::os::raw::c_void,
2425     ) -> ::std::os::raw::c_int;
2426 }
2427 extern "C" {
sqlite3_stricmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2428     pub fn sqlite3_stricmp(
2429         arg1: *const ::std::os::raw::c_char,
2430         arg2: *const ::std::os::raw::c_char,
2431     ) -> ::std::os::raw::c_int;
2432 }
2433 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_int2434     pub fn sqlite3_strnicmp(
2435         arg1: *const ::std::os::raw::c_char,
2436         arg2: *const ::std::os::raw::c_char,
2437         arg3: ::std::os::raw::c_int,
2438     ) -> ::std::os::raw::c_int;
2439 }
2440 extern "C" {
sqlite3_strglob( zGlob: *const ::std::os::raw::c_char, zStr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2441     pub fn sqlite3_strglob(
2442         zGlob: *const ::std::os::raw::c_char,
2443         zStr: *const ::std::os::raw::c_char,
2444     ) -> ::std::os::raw::c_int;
2445 }
2446 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_int2447     pub fn sqlite3_strlike(
2448         zGlob: *const ::std::os::raw::c_char,
2449         zStr: *const ::std::os::raw::c_char,
2450         cEsc: ::std::os::raw::c_uint,
2451     ) -> ::std::os::raw::c_int;
2452 }
2453 extern "C" {
sqlite3_log( iErrCode: ::std::os::raw::c_int, zFormat: *const ::std::os::raw::c_char, ... )2454     pub fn sqlite3_log(
2455         iErrCode: ::std::os::raw::c_int,
2456         zFormat: *const ::std::os::raw::c_char,
2457         ...
2458     );
2459 }
2460 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_void2461     pub fn sqlite3_wal_hook(
2462         arg1: *mut sqlite3,
2463         arg2: ::std::option::Option<
2464             unsafe extern "C" fn(
2465                 arg1: *mut ::std::os::raw::c_void,
2466                 arg2: *mut sqlite3,
2467                 arg3: *const ::std::os::raw::c_char,
2468                 arg4: ::std::os::raw::c_int,
2469             ) -> ::std::os::raw::c_int,
2470         >,
2471         arg3: *mut ::std::os::raw::c_void,
2472     ) -> *mut ::std::os::raw::c_void;
2473 }
2474 extern "C" {
sqlite3_wal_autocheckpoint( db: *mut sqlite3, N: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2475     pub fn sqlite3_wal_autocheckpoint(
2476         db: *mut sqlite3,
2477         N: ::std::os::raw::c_int,
2478     ) -> ::std::os::raw::c_int;
2479 }
2480 extern "C" {
sqlite3_wal_checkpoint( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2481     pub fn sqlite3_wal_checkpoint(
2482         db: *mut sqlite3,
2483         zDb: *const ::std::os::raw::c_char,
2484     ) -> ::std::os::raw::c_int;
2485 }
2486 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_int2487     pub fn sqlite3_wal_checkpoint_v2(
2488         db: *mut sqlite3,
2489         zDb: *const ::std::os::raw::c_char,
2490         eMode: ::std::os::raw::c_int,
2491         pnLog: *mut ::std::os::raw::c_int,
2492         pnCkpt: *mut ::std::os::raw::c_int,
2493     ) -> ::std::os::raw::c_int;
2494 }
2495 extern "C" {
sqlite3_vtab_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, ... ) -> ::std::os::raw::c_int2496     pub fn sqlite3_vtab_config(
2497         arg1: *mut sqlite3,
2498         op: ::std::os::raw::c_int,
2499         ...
2500     ) -> ::std::os::raw::c_int;
2501 }
2502 extern "C" {
sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int2503     pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2504 }
2505 extern "C" {
sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int2506     pub fn sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int;
2507 }
2508 extern "C" {
sqlite3_vtab_collation( arg1: *mut sqlite3_index_info, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char2509     pub fn sqlite3_vtab_collation(
2510         arg1: *mut sqlite3_index_info,
2511         arg2: ::std::os::raw::c_int,
2512     ) -> *const ::std::os::raw::c_char;
2513 }
2514 extern "C" {
sqlite3_vtab_distinct(arg1: *mut sqlite3_index_info) -> ::std::os::raw::c_int2515     pub fn sqlite3_vtab_distinct(arg1: *mut sqlite3_index_info) -> ::std::os::raw::c_int;
2516 }
2517 extern "C" {
sqlite3_vtab_in( arg1: *mut sqlite3_index_info, iCons: ::std::os::raw::c_int, bHandle: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2518     pub fn sqlite3_vtab_in(
2519         arg1: *mut sqlite3_index_info,
2520         iCons: ::std::os::raw::c_int,
2521         bHandle: ::std::os::raw::c_int,
2522     ) -> ::std::os::raw::c_int;
2523 }
2524 extern "C" {
sqlite3_vtab_in_first( pVal: *mut sqlite3_value, ppOut: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2525     pub fn sqlite3_vtab_in_first(
2526         pVal: *mut sqlite3_value,
2527         ppOut: *mut *mut sqlite3_value,
2528     ) -> ::std::os::raw::c_int;
2529 }
2530 extern "C" {
sqlite3_vtab_in_next( pVal: *mut sqlite3_value, ppOut: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2531     pub fn sqlite3_vtab_in_next(
2532         pVal: *mut sqlite3_value,
2533         ppOut: *mut *mut sqlite3_value,
2534     ) -> ::std::os::raw::c_int;
2535 }
2536 extern "C" {
sqlite3_vtab_rhs_value( arg1: *mut sqlite3_index_info, arg2: ::std::os::raw::c_int, ppVal: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2537     pub fn sqlite3_vtab_rhs_value(
2538         arg1: *mut sqlite3_index_info,
2539         arg2: ::std::os::raw::c_int,
2540         ppVal: *mut *mut sqlite3_value,
2541     ) -> ::std::os::raw::c_int;
2542 }
2543 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_int2544     pub fn sqlite3_stmt_scanstatus(
2545         pStmt: *mut sqlite3_stmt,
2546         idx: ::std::os::raw::c_int,
2547         iScanStatusOp: ::std::os::raw::c_int,
2548         pOut: *mut ::std::os::raw::c_void,
2549     ) -> ::std::os::raw::c_int;
2550 }
2551 extern "C" {
sqlite3_stmt_scanstatus_v2( pStmt: *mut sqlite3_stmt, idx: ::std::os::raw::c_int, iScanStatusOp: ::std::os::raw::c_int, flags: ::std::os::raw::c_int, pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2552     pub fn sqlite3_stmt_scanstatus_v2(
2553         pStmt: *mut sqlite3_stmt,
2554         idx: ::std::os::raw::c_int,
2555         iScanStatusOp: ::std::os::raw::c_int,
2556         flags: ::std::os::raw::c_int,
2557         pOut: *mut ::std::os::raw::c_void,
2558     ) -> ::std::os::raw::c_int;
2559 }
2560 extern "C" {
sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt)2561     pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt);
2562 }
2563 extern "C" {
sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int2564     pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2565 }
2566 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_void2567     pub fn sqlite3_preupdate_hook(
2568         db: *mut sqlite3,
2569         xPreUpdate: ::std::option::Option<
2570             unsafe extern "C" fn(
2571                 pCtx: *mut ::std::os::raw::c_void,
2572                 db: *mut sqlite3,
2573                 op: ::std::os::raw::c_int,
2574                 zDb: *const ::std::os::raw::c_char,
2575                 zName: *const ::std::os::raw::c_char,
2576                 iKey1: sqlite3_int64,
2577                 iKey2: sqlite3_int64,
2578             ),
2579         >,
2580         arg1: *mut ::std::os::raw::c_void,
2581     ) -> *mut ::std::os::raw::c_void;
2582 }
2583 extern "C" {
sqlite3_preupdate_old( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2584     pub fn sqlite3_preupdate_old(
2585         arg1: *mut sqlite3,
2586         arg2: ::std::os::raw::c_int,
2587         arg3: *mut *mut sqlite3_value,
2588     ) -> ::std::os::raw::c_int;
2589 }
2590 extern "C" {
sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int2591     pub fn sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2592 }
2593 extern "C" {
sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int2594     pub fn sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2595 }
2596 extern "C" {
sqlite3_preupdate_new( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2597     pub fn sqlite3_preupdate_new(
2598         arg1: *mut sqlite3,
2599         arg2: ::std::os::raw::c_int,
2600         arg3: *mut *mut sqlite3_value,
2601     ) -> ::std::os::raw::c_int;
2602 }
2603 extern "C" {
sqlite3_preupdate_blobwrite(arg1: *mut sqlite3) -> ::std::os::raw::c_int2604     pub fn sqlite3_preupdate_blobwrite(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2605 }
2606 extern "C" {
sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int2607     pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int;
2608 }
2609 #[repr(C)]
2610 #[derive(Debug, Copy, Clone)]
2611 pub struct sqlite3_snapshot {
2612     pub hidden: [::std::os::raw::c_uchar; 48usize],
2613 }
2614 extern "C" {
sqlite3_snapshot_get( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, ppSnapshot: *mut *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2615     pub fn sqlite3_snapshot_get(
2616         db: *mut sqlite3,
2617         zSchema: *const ::std::os::raw::c_char,
2618         ppSnapshot: *mut *mut sqlite3_snapshot,
2619     ) -> ::std::os::raw::c_int;
2620 }
2621 extern "C" {
sqlite3_snapshot_open( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, pSnapshot: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2622     pub fn sqlite3_snapshot_open(
2623         db: *mut sqlite3,
2624         zSchema: *const ::std::os::raw::c_char,
2625         pSnapshot: *mut sqlite3_snapshot,
2626     ) -> ::std::os::raw::c_int;
2627 }
2628 extern "C" {
sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot)2629     pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot);
2630 }
2631 extern "C" {
sqlite3_snapshot_cmp( p1: *mut sqlite3_snapshot, p2: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int2632     pub fn sqlite3_snapshot_cmp(
2633         p1: *mut sqlite3_snapshot,
2634         p2: *mut sqlite3_snapshot,
2635     ) -> ::std::os::raw::c_int;
2636 }
2637 extern "C" {
sqlite3_snapshot_recover( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2638     pub fn sqlite3_snapshot_recover(
2639         db: *mut sqlite3,
2640         zDb: *const ::std::os::raw::c_char,
2641     ) -> ::std::os::raw::c_int;
2642 }
2643 extern "C" {
sqlite3_serialize( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, piSize: *mut sqlite3_int64, mFlags: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar2644     pub fn sqlite3_serialize(
2645         db: *mut sqlite3,
2646         zSchema: *const ::std::os::raw::c_char,
2647         piSize: *mut sqlite3_int64,
2648         mFlags: ::std::os::raw::c_uint,
2649     ) -> *mut ::std::os::raw::c_uchar;
2650 }
2651 extern "C" {
sqlite3_deserialize( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, pData: *mut ::std::os::raw::c_uchar, szDb: sqlite3_int64, szBuf: sqlite3_int64, mFlags: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int2652     pub fn sqlite3_deserialize(
2653         db: *mut sqlite3,
2654         zSchema: *const ::std::os::raw::c_char,
2655         pData: *mut ::std::os::raw::c_uchar,
2656         szDb: sqlite3_int64,
2657         szBuf: sqlite3_int64,
2658         mFlags: ::std::os::raw::c_uint,
2659     ) -> ::std::os::raw::c_int;
2660 }
2661 pub type sqlite3_rtree_dbl = f64;
2662 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_int2663     pub fn sqlite3_rtree_geometry_callback(
2664         db: *mut sqlite3,
2665         zGeom: *const ::std::os::raw::c_char,
2666         xGeom: ::std::option::Option<
2667             unsafe extern "C" fn(
2668                 arg1: *mut sqlite3_rtree_geometry,
2669                 arg2: ::std::os::raw::c_int,
2670                 arg3: *mut sqlite3_rtree_dbl,
2671                 arg4: *mut ::std::os::raw::c_int,
2672             ) -> ::std::os::raw::c_int,
2673         >,
2674         pContext: *mut ::std::os::raw::c_void,
2675     ) -> ::std::os::raw::c_int;
2676 }
2677 #[repr(C)]
2678 #[derive(Debug, Copy, Clone)]
2679 pub struct sqlite3_rtree_geometry {
2680     pub pContext: *mut ::std::os::raw::c_void,
2681     pub nParam: ::std::os::raw::c_int,
2682     pub aParam: *mut sqlite3_rtree_dbl,
2683     pub pUser: *mut ::std::os::raw::c_void,
2684     pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2685 }
2686 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_int2687     pub fn sqlite3_rtree_query_callback(
2688         db: *mut sqlite3,
2689         zQueryFunc: *const ::std::os::raw::c_char,
2690         xQueryFunc: ::std::option::Option<
2691             unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int,
2692         >,
2693         pContext: *mut ::std::os::raw::c_void,
2694         xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2695     ) -> ::std::os::raw::c_int;
2696 }
2697 #[repr(C)]
2698 #[derive(Debug, Copy, Clone)]
2699 pub struct sqlite3_rtree_query_info {
2700     pub pContext: *mut ::std::os::raw::c_void,
2701     pub nParam: ::std::os::raw::c_int,
2702     pub aParam: *mut sqlite3_rtree_dbl,
2703     pub pUser: *mut ::std::os::raw::c_void,
2704     pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
2705     pub aCoord: *mut sqlite3_rtree_dbl,
2706     pub anQueue: *mut ::std::os::raw::c_uint,
2707     pub nCoord: ::std::os::raw::c_int,
2708     pub iLevel: ::std::os::raw::c_int,
2709     pub mxLevel: ::std::os::raw::c_int,
2710     pub iRowid: sqlite3_int64,
2711     pub rParentScore: sqlite3_rtree_dbl,
2712     pub eParentWithin: ::std::os::raw::c_int,
2713     pub eWithin: ::std::os::raw::c_int,
2714     pub rScore: sqlite3_rtree_dbl,
2715     pub apSqlParam: *mut *mut sqlite3_value,
2716 }
2717 #[repr(C)]
2718 #[derive(Debug, Copy, Clone)]
2719 pub struct sqlite3_session {
2720     _unused: [u8; 0],
2721 }
2722 #[repr(C)]
2723 #[derive(Debug, Copy, Clone)]
2724 pub struct sqlite3_changeset_iter {
2725     _unused: [u8; 0],
2726 }
2727 extern "C" {
sqlite3session_create( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ppSession: *mut *mut sqlite3_session, ) -> ::std::os::raw::c_int2728     pub fn sqlite3session_create(
2729         db: *mut sqlite3,
2730         zDb: *const ::std::os::raw::c_char,
2731         ppSession: *mut *mut sqlite3_session,
2732     ) -> ::std::os::raw::c_int;
2733 }
2734 extern "C" {
sqlite3session_delete(pSession: *mut sqlite3_session)2735     pub fn sqlite3session_delete(pSession: *mut sqlite3_session);
2736 }
2737 extern "C" {
sqlite3session_object_config( arg1: *mut sqlite3_session, op: ::std::os::raw::c_int, pArg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2738     pub fn sqlite3session_object_config(
2739         arg1: *mut sqlite3_session,
2740         op: ::std::os::raw::c_int,
2741         pArg: *mut ::std::os::raw::c_void,
2742     ) -> ::std::os::raw::c_int;
2743 }
2744 extern "C" {
sqlite3session_enable( pSession: *mut sqlite3_session, bEnable: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2745     pub fn sqlite3session_enable(
2746         pSession: *mut sqlite3_session,
2747         bEnable: ::std::os::raw::c_int,
2748     ) -> ::std::os::raw::c_int;
2749 }
2750 extern "C" {
sqlite3session_indirect( pSession: *mut sqlite3_session, bIndirect: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2751     pub fn sqlite3session_indirect(
2752         pSession: *mut sqlite3_session,
2753         bIndirect: ::std::os::raw::c_int,
2754     ) -> ::std::os::raw::c_int;
2755 }
2756 extern "C" {
sqlite3session_attach( pSession: *mut sqlite3_session, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2757     pub fn sqlite3session_attach(
2758         pSession: *mut sqlite3_session,
2759         zTab: *const ::std::os::raw::c_char,
2760     ) -> ::std::os::raw::c_int;
2761 }
2762 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, )2763     pub fn sqlite3session_table_filter(
2764         pSession: *mut sqlite3_session,
2765         xFilter: ::std::option::Option<
2766             unsafe extern "C" fn(
2767                 pCtx: *mut ::std::os::raw::c_void,
2768                 zTab: *const ::std::os::raw::c_char,
2769             ) -> ::std::os::raw::c_int,
2770         >,
2771         pCtx: *mut ::std::os::raw::c_void,
2772     );
2773 }
2774 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_int2775     pub fn sqlite3session_changeset(
2776         pSession: *mut sqlite3_session,
2777         pnChangeset: *mut ::std::os::raw::c_int,
2778         ppChangeset: *mut *mut ::std::os::raw::c_void,
2779     ) -> ::std::os::raw::c_int;
2780 }
2781 extern "C" {
sqlite3session_changeset_size(pSession: *mut sqlite3_session) -> sqlite3_int642782     pub fn sqlite3session_changeset_size(pSession: *mut sqlite3_session) -> sqlite3_int64;
2783 }
2784 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_int2785     pub fn sqlite3session_diff(
2786         pSession: *mut sqlite3_session,
2787         zFromDb: *const ::std::os::raw::c_char,
2788         zTbl: *const ::std::os::raw::c_char,
2789         pzErrMsg: *mut *mut ::std::os::raw::c_char,
2790     ) -> ::std::os::raw::c_int;
2791 }
2792 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_int2793     pub fn sqlite3session_patchset(
2794         pSession: *mut sqlite3_session,
2795         pnPatchset: *mut ::std::os::raw::c_int,
2796         ppPatchset: *mut *mut ::std::os::raw::c_void,
2797     ) -> ::std::os::raw::c_int;
2798 }
2799 extern "C" {
sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int2800     pub fn sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int;
2801 }
2802 extern "C" {
sqlite3session_memory_used(pSession: *mut sqlite3_session) -> sqlite3_int642803     pub fn sqlite3session_memory_used(pSession: *mut sqlite3_session) -> sqlite3_int64;
2804 }
2805 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_int2806     pub fn sqlite3changeset_start(
2807         pp: *mut *mut sqlite3_changeset_iter,
2808         nChangeset: ::std::os::raw::c_int,
2809         pChangeset: *mut ::std::os::raw::c_void,
2810     ) -> ::std::os::raw::c_int;
2811 }
2812 extern "C" {
sqlite3changeset_start_v2( pp: *mut *mut sqlite3_changeset_iter, nChangeset: ::std::os::raw::c_int, pChangeset: *mut ::std::os::raw::c_void, flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2813     pub fn sqlite3changeset_start_v2(
2814         pp: *mut *mut sqlite3_changeset_iter,
2815         nChangeset: ::std::os::raw::c_int,
2816         pChangeset: *mut ::std::os::raw::c_void,
2817         flags: ::std::os::raw::c_int,
2818     ) -> ::std::os::raw::c_int;
2819 }
2820 extern "C" {
sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int2821     pub fn sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int;
2822 }
2823 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_int2824     pub fn sqlite3changeset_op(
2825         pIter: *mut sqlite3_changeset_iter,
2826         pzTab: *mut *const ::std::os::raw::c_char,
2827         pnCol: *mut ::std::os::raw::c_int,
2828         pOp: *mut ::std::os::raw::c_int,
2829         pbIndirect: *mut ::std::os::raw::c_int,
2830     ) -> ::std::os::raw::c_int;
2831 }
2832 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_int2833     pub fn sqlite3changeset_pk(
2834         pIter: *mut sqlite3_changeset_iter,
2835         pabPK: *mut *mut ::std::os::raw::c_uchar,
2836         pnCol: *mut ::std::os::raw::c_int,
2837     ) -> ::std::os::raw::c_int;
2838 }
2839 extern "C" {
sqlite3changeset_old( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2840     pub fn sqlite3changeset_old(
2841         pIter: *mut sqlite3_changeset_iter,
2842         iVal: ::std::os::raw::c_int,
2843         ppValue: *mut *mut sqlite3_value,
2844     ) -> ::std::os::raw::c_int;
2845 }
2846 extern "C" {
sqlite3changeset_new( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2847     pub fn sqlite3changeset_new(
2848         pIter: *mut sqlite3_changeset_iter,
2849         iVal: ::std::os::raw::c_int,
2850         ppValue: *mut *mut sqlite3_value,
2851     ) -> ::std::os::raw::c_int;
2852 }
2853 extern "C" {
sqlite3changeset_conflict( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int2854     pub fn sqlite3changeset_conflict(
2855         pIter: *mut sqlite3_changeset_iter,
2856         iVal: ::std::os::raw::c_int,
2857         ppValue: *mut *mut sqlite3_value,
2858     ) -> ::std::os::raw::c_int;
2859 }
2860 extern "C" {
sqlite3changeset_fk_conflicts( pIter: *mut sqlite3_changeset_iter, pnOut: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2861     pub fn sqlite3changeset_fk_conflicts(
2862         pIter: *mut sqlite3_changeset_iter,
2863         pnOut: *mut ::std::os::raw::c_int,
2864     ) -> ::std::os::raw::c_int;
2865 }
2866 extern "C" {
sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int2867     pub fn sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int;
2868 }
2869 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_int2870     pub fn sqlite3changeset_invert(
2871         nIn: ::std::os::raw::c_int,
2872         pIn: *const ::std::os::raw::c_void,
2873         pnOut: *mut ::std::os::raw::c_int,
2874         ppOut: *mut *mut ::std::os::raw::c_void,
2875     ) -> ::std::os::raw::c_int;
2876 }
2877 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_int2878     pub fn sqlite3changeset_concat(
2879         nA: ::std::os::raw::c_int,
2880         pA: *mut ::std::os::raw::c_void,
2881         nB: ::std::os::raw::c_int,
2882         pB: *mut ::std::os::raw::c_void,
2883         pnOut: *mut ::std::os::raw::c_int,
2884         ppOut: *mut *mut ::std::os::raw::c_void,
2885     ) -> ::std::os::raw::c_int;
2886 }
2887 extern "C" {
sqlite3changeset_upgrade( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, 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_int2888     pub fn sqlite3changeset_upgrade(
2889         db: *mut sqlite3,
2890         zDb: *const ::std::os::raw::c_char,
2891         nIn: ::std::os::raw::c_int,
2892         pIn: *const ::std::os::raw::c_void,
2893         pnOut: *mut ::std::os::raw::c_int,
2894         ppOut: *mut *mut ::std::os::raw::c_void,
2895     ) -> ::std::os::raw::c_int;
2896 }
2897 #[repr(C)]
2898 #[derive(Debug, Copy, Clone)]
2899 pub struct sqlite3_changegroup {
2900     _unused: [u8; 0],
2901 }
2902 extern "C" {
sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int2903     pub fn sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int;
2904 }
2905 extern "C" {
sqlite3changegroup_schema( arg1: *mut sqlite3_changegroup, arg2: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int2906     pub fn sqlite3changegroup_schema(
2907         arg1: *mut sqlite3_changegroup,
2908         arg2: *mut sqlite3,
2909         zDb: *const ::std::os::raw::c_char,
2910     ) -> ::std::os::raw::c_int;
2911 }
2912 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_int2913     pub fn sqlite3changegroup_add(
2914         arg1: *mut sqlite3_changegroup,
2915         nData: ::std::os::raw::c_int,
2916         pData: *mut ::std::os::raw::c_void,
2917     ) -> ::std::os::raw::c_int;
2918 }
2919 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_int2920     pub fn sqlite3changegroup_output(
2921         arg1: *mut sqlite3_changegroup,
2922         pnData: *mut ::std::os::raw::c_int,
2923         ppData: *mut *mut ::std::os::raw::c_void,
2924     ) -> ::std::os::raw::c_int;
2925 }
2926 extern "C" {
sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup)2927     pub fn sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup);
2928 }
2929 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_int2930     pub fn sqlite3changeset_apply(
2931         db: *mut sqlite3,
2932         nChangeset: ::std::os::raw::c_int,
2933         pChangeset: *mut ::std::os::raw::c_void,
2934         xFilter: ::std::option::Option<
2935             unsafe extern "C" fn(
2936                 pCtx: *mut ::std::os::raw::c_void,
2937                 zTab: *const ::std::os::raw::c_char,
2938             ) -> ::std::os::raw::c_int,
2939         >,
2940         xConflict: ::std::option::Option<
2941             unsafe extern "C" fn(
2942                 pCtx: *mut ::std::os::raw::c_void,
2943                 eConflict: ::std::os::raw::c_int,
2944                 p: *mut sqlite3_changeset_iter,
2945             ) -> ::std::os::raw::c_int,
2946         >,
2947         pCtx: *mut ::std::os::raw::c_void,
2948     ) -> ::std::os::raw::c_int;
2949 }
2950 extern "C" {
sqlite3changeset_apply_v2( 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, ppRebase: *mut *mut ::std::os::raw::c_void, pnRebase: *mut ::std::os::raw::c_int, flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int2951     pub fn sqlite3changeset_apply_v2(
2952         db: *mut sqlite3,
2953         nChangeset: ::std::os::raw::c_int,
2954         pChangeset: *mut ::std::os::raw::c_void,
2955         xFilter: ::std::option::Option<
2956             unsafe extern "C" fn(
2957                 pCtx: *mut ::std::os::raw::c_void,
2958                 zTab: *const ::std::os::raw::c_char,
2959             ) -> ::std::os::raw::c_int,
2960         >,
2961         xConflict: ::std::option::Option<
2962             unsafe extern "C" fn(
2963                 pCtx: *mut ::std::os::raw::c_void,
2964                 eConflict: ::std::os::raw::c_int,
2965                 p: *mut sqlite3_changeset_iter,
2966             ) -> ::std::os::raw::c_int,
2967         >,
2968         pCtx: *mut ::std::os::raw::c_void,
2969         ppRebase: *mut *mut ::std::os::raw::c_void,
2970         pnRebase: *mut ::std::os::raw::c_int,
2971         flags: ::std::os::raw::c_int,
2972     ) -> ::std::os::raw::c_int;
2973 }
2974 #[repr(C)]
2975 #[derive(Debug, Copy, Clone)]
2976 pub struct sqlite3_rebaser {
2977     _unused: [u8; 0],
2978 }
2979 extern "C" {
sqlite3rebaser_create(ppNew: *mut *mut sqlite3_rebaser) -> ::std::os::raw::c_int2980     pub fn sqlite3rebaser_create(ppNew: *mut *mut sqlite3_rebaser) -> ::std::os::raw::c_int;
2981 }
2982 extern "C" {
sqlite3rebaser_configure( arg1: *mut sqlite3_rebaser, nRebase: ::std::os::raw::c_int, pRebase: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int2983     pub fn sqlite3rebaser_configure(
2984         arg1: *mut sqlite3_rebaser,
2985         nRebase: ::std::os::raw::c_int,
2986         pRebase: *const ::std::os::raw::c_void,
2987     ) -> ::std::os::raw::c_int;
2988 }
2989 extern "C" {
sqlite3rebaser_rebase( arg1: *mut sqlite3_rebaser, 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_int2990     pub fn sqlite3rebaser_rebase(
2991         arg1: *mut sqlite3_rebaser,
2992         nIn: ::std::os::raw::c_int,
2993         pIn: *const ::std::os::raw::c_void,
2994         pnOut: *mut ::std::os::raw::c_int,
2995         ppOut: *mut *mut ::std::os::raw::c_void,
2996     ) -> ::std::os::raw::c_int;
2997 }
2998 extern "C" {
sqlite3rebaser_delete(p: *mut sqlite3_rebaser)2999     pub fn sqlite3rebaser_delete(p: *mut sqlite3_rebaser);
3000 }
3001 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_int3002     pub fn sqlite3changeset_apply_strm(
3003         db: *mut sqlite3,
3004         xInput: ::std::option::Option<
3005             unsafe extern "C" fn(
3006                 pIn: *mut ::std::os::raw::c_void,
3007                 pData: *mut ::std::os::raw::c_void,
3008                 pnData: *mut ::std::os::raw::c_int,
3009             ) -> ::std::os::raw::c_int,
3010         >,
3011         pIn: *mut ::std::os::raw::c_void,
3012         xFilter: ::std::option::Option<
3013             unsafe extern "C" fn(
3014                 pCtx: *mut ::std::os::raw::c_void,
3015                 zTab: *const ::std::os::raw::c_char,
3016             ) -> ::std::os::raw::c_int,
3017         >,
3018         xConflict: ::std::option::Option<
3019             unsafe extern "C" fn(
3020                 pCtx: *mut ::std::os::raw::c_void,
3021                 eConflict: ::std::os::raw::c_int,
3022                 p: *mut sqlite3_changeset_iter,
3023             ) -> ::std::os::raw::c_int,
3024         >,
3025         pCtx: *mut ::std::os::raw::c_void,
3026     ) -> ::std::os::raw::c_int;
3027 }
3028 extern "C" {
sqlite3changeset_apply_v2_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, ppRebase: *mut *mut ::std::os::raw::c_void, pnRebase: *mut ::std::os::raw::c_int, flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int3029     pub fn sqlite3changeset_apply_v2_strm(
3030         db: *mut sqlite3,
3031         xInput: ::std::option::Option<
3032             unsafe extern "C" fn(
3033                 pIn: *mut ::std::os::raw::c_void,
3034                 pData: *mut ::std::os::raw::c_void,
3035                 pnData: *mut ::std::os::raw::c_int,
3036             ) -> ::std::os::raw::c_int,
3037         >,
3038         pIn: *mut ::std::os::raw::c_void,
3039         xFilter: ::std::option::Option<
3040             unsafe extern "C" fn(
3041                 pCtx: *mut ::std::os::raw::c_void,
3042                 zTab: *const ::std::os::raw::c_char,
3043             ) -> ::std::os::raw::c_int,
3044         >,
3045         xConflict: ::std::option::Option<
3046             unsafe extern "C" fn(
3047                 pCtx: *mut ::std::os::raw::c_void,
3048                 eConflict: ::std::os::raw::c_int,
3049                 p: *mut sqlite3_changeset_iter,
3050             ) -> ::std::os::raw::c_int,
3051         >,
3052         pCtx: *mut ::std::os::raw::c_void,
3053         ppRebase: *mut *mut ::std::os::raw::c_void,
3054         pnRebase: *mut ::std::os::raw::c_int,
3055         flags: ::std::os::raw::c_int,
3056     ) -> ::std::os::raw::c_int;
3057 }
3058 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_int3059     pub fn sqlite3changeset_concat_strm(
3060         xInputA: ::std::option::Option<
3061             unsafe extern "C" fn(
3062                 pIn: *mut ::std::os::raw::c_void,
3063                 pData: *mut ::std::os::raw::c_void,
3064                 pnData: *mut ::std::os::raw::c_int,
3065             ) -> ::std::os::raw::c_int,
3066         >,
3067         pInA: *mut ::std::os::raw::c_void,
3068         xInputB: ::std::option::Option<
3069             unsafe extern "C" fn(
3070                 pIn: *mut ::std::os::raw::c_void,
3071                 pData: *mut ::std::os::raw::c_void,
3072                 pnData: *mut ::std::os::raw::c_int,
3073             ) -> ::std::os::raw::c_int,
3074         >,
3075         pInB: *mut ::std::os::raw::c_void,
3076         xOutput: ::std::option::Option<
3077             unsafe extern "C" fn(
3078                 pOut: *mut ::std::os::raw::c_void,
3079                 pData: *const ::std::os::raw::c_void,
3080                 nData: ::std::os::raw::c_int,
3081             ) -> ::std::os::raw::c_int,
3082         >,
3083         pOut: *mut ::std::os::raw::c_void,
3084     ) -> ::std::os::raw::c_int;
3085 }
3086 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_int3087     pub fn sqlite3changeset_invert_strm(
3088         xInput: ::std::option::Option<
3089             unsafe extern "C" fn(
3090                 pIn: *mut ::std::os::raw::c_void,
3091                 pData: *mut ::std::os::raw::c_void,
3092                 pnData: *mut ::std::os::raw::c_int,
3093             ) -> ::std::os::raw::c_int,
3094         >,
3095         pIn: *mut ::std::os::raw::c_void,
3096         xOutput: ::std::option::Option<
3097             unsafe extern "C" fn(
3098                 pOut: *mut ::std::os::raw::c_void,
3099                 pData: *const ::std::os::raw::c_void,
3100                 nData: ::std::os::raw::c_int,
3101             ) -> ::std::os::raw::c_int,
3102         >,
3103         pOut: *mut ::std::os::raw::c_void,
3104     ) -> ::std::os::raw::c_int;
3105 }
3106 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_int3107     pub fn sqlite3changeset_start_strm(
3108         pp: *mut *mut sqlite3_changeset_iter,
3109         xInput: ::std::option::Option<
3110             unsafe extern "C" fn(
3111                 pIn: *mut ::std::os::raw::c_void,
3112                 pData: *mut ::std::os::raw::c_void,
3113                 pnData: *mut ::std::os::raw::c_int,
3114             ) -> ::std::os::raw::c_int,
3115         >,
3116         pIn: *mut ::std::os::raw::c_void,
3117     ) -> ::std::os::raw::c_int;
3118 }
3119 extern "C" {
sqlite3changeset_start_v2_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, flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int3120     pub fn sqlite3changeset_start_v2_strm(
3121         pp: *mut *mut sqlite3_changeset_iter,
3122         xInput: ::std::option::Option<
3123             unsafe extern "C" fn(
3124                 pIn: *mut ::std::os::raw::c_void,
3125                 pData: *mut ::std::os::raw::c_void,
3126                 pnData: *mut ::std::os::raw::c_int,
3127             ) -> ::std::os::raw::c_int,
3128         >,
3129         pIn: *mut ::std::os::raw::c_void,
3130         flags: ::std::os::raw::c_int,
3131     ) -> ::std::os::raw::c_int;
3132 }
3133 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_int3134     pub fn sqlite3session_changeset_strm(
3135         pSession: *mut sqlite3_session,
3136         xOutput: ::std::option::Option<
3137             unsafe extern "C" fn(
3138                 pOut: *mut ::std::os::raw::c_void,
3139                 pData: *const ::std::os::raw::c_void,
3140                 nData: ::std::os::raw::c_int,
3141             ) -> ::std::os::raw::c_int,
3142         >,
3143         pOut: *mut ::std::os::raw::c_void,
3144     ) -> ::std::os::raw::c_int;
3145 }
3146 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_int3147     pub fn sqlite3session_patchset_strm(
3148         pSession: *mut sqlite3_session,
3149         xOutput: ::std::option::Option<
3150             unsafe extern "C" fn(
3151                 pOut: *mut ::std::os::raw::c_void,
3152                 pData: *const ::std::os::raw::c_void,
3153                 nData: ::std::os::raw::c_int,
3154             ) -> ::std::os::raw::c_int,
3155         >,
3156         pOut: *mut ::std::os::raw::c_void,
3157     ) -> ::std::os::raw::c_int;
3158 }
3159 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_int3160     pub fn sqlite3changegroup_add_strm(
3161         arg1: *mut sqlite3_changegroup,
3162         xInput: ::std::option::Option<
3163             unsafe extern "C" fn(
3164                 pIn: *mut ::std::os::raw::c_void,
3165                 pData: *mut ::std::os::raw::c_void,
3166                 pnData: *mut ::std::os::raw::c_int,
3167             ) -> ::std::os::raw::c_int,
3168         >,
3169         pIn: *mut ::std::os::raw::c_void,
3170     ) -> ::std::os::raw::c_int;
3171 }
3172 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_int3173     pub fn sqlite3changegroup_output_strm(
3174         arg1: *mut sqlite3_changegroup,
3175         xOutput: ::std::option::Option<
3176             unsafe extern "C" fn(
3177                 pOut: *mut ::std::os::raw::c_void,
3178                 pData: *const ::std::os::raw::c_void,
3179                 nData: ::std::os::raw::c_int,
3180             ) -> ::std::os::raw::c_int,
3181         >,
3182         pOut: *mut ::std::os::raw::c_void,
3183     ) -> ::std::os::raw::c_int;
3184 }
3185 extern "C" {
sqlite3rebaser_rebase_strm( pRebaser: *mut sqlite3_rebaser, 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_int3186     pub fn sqlite3rebaser_rebase_strm(
3187         pRebaser: *mut sqlite3_rebaser,
3188         xInput: ::std::option::Option<
3189             unsafe extern "C" fn(
3190                 pIn: *mut ::std::os::raw::c_void,
3191                 pData: *mut ::std::os::raw::c_void,
3192                 pnData: *mut ::std::os::raw::c_int,
3193             ) -> ::std::os::raw::c_int,
3194         >,
3195         pIn: *mut ::std::os::raw::c_void,
3196         xOutput: ::std::option::Option<
3197             unsafe extern "C" fn(
3198                 pOut: *mut ::std::os::raw::c_void,
3199                 pData: *const ::std::os::raw::c_void,
3200                 nData: ::std::os::raw::c_int,
3201             ) -> ::std::os::raw::c_int,
3202         >,
3203         pOut: *mut ::std::os::raw::c_void,
3204     ) -> ::std::os::raw::c_int;
3205 }
3206 extern "C" {
sqlite3session_config( op: ::std::os::raw::c_int, pArg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int3207     pub fn sqlite3session_config(
3208         op: ::std::os::raw::c_int,
3209         pArg: *mut ::std::os::raw::c_void,
3210     ) -> ::std::os::raw::c_int;
3211 }
3212 #[repr(C)]
3213 #[derive(Debug, Copy, Clone)]
3214 pub struct Fts5Context {
3215     _unused: [u8; 0],
3216 }
3217 pub type fts5_extension_function = ::std::option::Option<
3218     unsafe extern "C" fn(
3219         pApi: *const Fts5ExtensionApi,
3220         pFts: *mut Fts5Context,
3221         pCtx: *mut sqlite3_context,
3222         nVal: ::std::os::raw::c_int,
3223         apVal: *mut *mut sqlite3_value,
3224     ),
3225 >;
3226 #[repr(C)]
3227 #[derive(Debug, Copy, Clone)]
3228 pub struct Fts5PhraseIter {
3229     pub a: *const ::std::os::raw::c_uchar,
3230     pub b: *const ::std::os::raw::c_uchar,
3231 }
3232 #[repr(C)]
3233 #[derive(Debug, Copy, Clone)]
3234 pub struct Fts5ExtensionApi {
3235     pub iVersion: ::std::os::raw::c_int,
3236     pub xUserData: ::std::option::Option<
3237         unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut ::std::os::raw::c_void,
3238     >,
3239     pub xColumnCount: ::std::option::Option<
3240         unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int,
3241     >,
3242     pub xRowCount: ::std::option::Option<
3243         unsafe extern "C" fn(
3244             arg1: *mut Fts5Context,
3245             pnRow: *mut sqlite3_int64,
3246         ) -> ::std::os::raw::c_int,
3247     >,
3248     pub xColumnTotalSize: ::std::option::Option<
3249         unsafe extern "C" fn(
3250             arg1: *mut Fts5Context,
3251             iCol: ::std::os::raw::c_int,
3252             pnToken: *mut sqlite3_int64,
3253         ) -> ::std::os::raw::c_int,
3254     >,
3255     pub xTokenize: ::std::option::Option<
3256         unsafe extern "C" fn(
3257             arg1: *mut Fts5Context,
3258             pText: *const ::std::os::raw::c_char,
3259             nText: ::std::os::raw::c_int,
3260             pCtx: *mut ::std::os::raw::c_void,
3261             xToken: ::std::option::Option<
3262                 unsafe extern "C" fn(
3263                     arg1: *mut ::std::os::raw::c_void,
3264                     arg2: ::std::os::raw::c_int,
3265                     arg3: *const ::std::os::raw::c_char,
3266                     arg4: ::std::os::raw::c_int,
3267                     arg5: ::std::os::raw::c_int,
3268                     arg6: ::std::os::raw::c_int,
3269                 ) -> ::std::os::raw::c_int,
3270             >,
3271         ) -> ::std::os::raw::c_int,
3272     >,
3273     pub xPhraseCount: ::std::option::Option<
3274         unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int,
3275     >,
3276     pub xPhraseSize: ::std::option::Option<
3277         unsafe extern "C" fn(
3278             arg1: *mut Fts5Context,
3279             iPhrase: ::std::os::raw::c_int,
3280         ) -> ::std::os::raw::c_int,
3281     >,
3282     pub xInstCount: ::std::option::Option<
3283         unsafe extern "C" fn(
3284             arg1: *mut Fts5Context,
3285             pnInst: *mut ::std::os::raw::c_int,
3286         ) -> ::std::os::raw::c_int,
3287     >,
3288     pub xInst: ::std::option::Option<
3289         unsafe extern "C" fn(
3290             arg1: *mut Fts5Context,
3291             iIdx: ::std::os::raw::c_int,
3292             piPhrase: *mut ::std::os::raw::c_int,
3293             piCol: *mut ::std::os::raw::c_int,
3294             piOff: *mut ::std::os::raw::c_int,
3295         ) -> ::std::os::raw::c_int,
3296     >,
3297     pub xRowid:
3298         ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>,
3299     pub xColumnText: ::std::option::Option<
3300         unsafe extern "C" fn(
3301             arg1: *mut Fts5Context,
3302             iCol: ::std::os::raw::c_int,
3303             pz: *mut *const ::std::os::raw::c_char,
3304             pn: *mut ::std::os::raw::c_int,
3305         ) -> ::std::os::raw::c_int,
3306     >,
3307     pub xColumnSize: ::std::option::Option<
3308         unsafe extern "C" fn(
3309             arg1: *mut Fts5Context,
3310             iCol: ::std::os::raw::c_int,
3311             pnToken: *mut ::std::os::raw::c_int,
3312         ) -> ::std::os::raw::c_int,
3313     >,
3314     pub xQueryPhrase: ::std::option::Option<
3315         unsafe extern "C" fn(
3316             arg1: *mut Fts5Context,
3317             iPhrase: ::std::os::raw::c_int,
3318             pUserData: *mut ::std::os::raw::c_void,
3319             arg2: ::std::option::Option<
3320                 unsafe extern "C" fn(
3321                     arg1: *const Fts5ExtensionApi,
3322                     arg2: *mut Fts5Context,
3323                     arg3: *mut ::std::os::raw::c_void,
3324                 ) -> ::std::os::raw::c_int,
3325             >,
3326         ) -> ::std::os::raw::c_int,
3327     >,
3328     pub xSetAuxdata: ::std::option::Option<
3329         unsafe extern "C" fn(
3330             arg1: *mut Fts5Context,
3331             pAux: *mut ::std::os::raw::c_void,
3332             xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
3333         ) -> ::std::os::raw::c_int,
3334     >,
3335     pub xGetAuxdata: ::std::option::Option<
3336         unsafe extern "C" fn(
3337             arg1: *mut Fts5Context,
3338             bClear: ::std::os::raw::c_int,
3339         ) -> *mut ::std::os::raw::c_void,
3340     >,
3341     pub xPhraseFirst: ::std::option::Option<
3342         unsafe extern "C" fn(
3343             arg1: *mut Fts5Context,
3344             iPhrase: ::std::os::raw::c_int,
3345             arg2: *mut Fts5PhraseIter,
3346             arg3: *mut ::std::os::raw::c_int,
3347             arg4: *mut ::std::os::raw::c_int,
3348         ) -> ::std::os::raw::c_int,
3349     >,
3350     pub xPhraseNext: ::std::option::Option<
3351         unsafe extern "C" fn(
3352             arg1: *mut Fts5Context,
3353             arg2: *mut Fts5PhraseIter,
3354             piCol: *mut ::std::os::raw::c_int,
3355             piOff: *mut ::std::os::raw::c_int,
3356         ),
3357     >,
3358     pub xPhraseFirstColumn: ::std::option::Option<
3359         unsafe extern "C" fn(
3360             arg1: *mut Fts5Context,
3361             iPhrase: ::std::os::raw::c_int,
3362             arg2: *mut Fts5PhraseIter,
3363             arg3: *mut ::std::os::raw::c_int,
3364         ) -> ::std::os::raw::c_int,
3365     >,
3366     pub xPhraseNextColumn: ::std::option::Option<
3367         unsafe extern "C" fn(
3368             arg1: *mut Fts5Context,
3369             arg2: *mut Fts5PhraseIter,
3370             piCol: *mut ::std::os::raw::c_int,
3371         ),
3372     >,
3373     pub xQueryToken: ::std::option::Option<
3374         unsafe extern "C" fn(
3375             arg1: *mut Fts5Context,
3376             iPhrase: ::std::os::raw::c_int,
3377             iToken: ::std::os::raw::c_int,
3378             ppToken: *mut *const ::std::os::raw::c_char,
3379             pnToken: *mut ::std::os::raw::c_int,
3380         ) -> ::std::os::raw::c_int,
3381     >,
3382     pub xInstToken: ::std::option::Option<
3383         unsafe extern "C" fn(
3384             arg1: *mut Fts5Context,
3385             iIdx: ::std::os::raw::c_int,
3386             iToken: ::std::os::raw::c_int,
3387             arg2: *mut *const ::std::os::raw::c_char,
3388             arg3: *mut ::std::os::raw::c_int,
3389         ) -> ::std::os::raw::c_int,
3390     >,
3391 }
3392 #[repr(C)]
3393 #[derive(Debug, Copy, Clone)]
3394 pub struct Fts5Tokenizer {
3395     _unused: [u8; 0],
3396 }
3397 #[repr(C)]
3398 #[derive(Debug, Copy, Clone)]
3399 pub struct fts5_tokenizer {
3400     pub xCreate: ::std::option::Option<
3401         unsafe extern "C" fn(
3402             arg1: *mut ::std::os::raw::c_void,
3403             azArg: *mut *const ::std::os::raw::c_char,
3404             nArg: ::std::os::raw::c_int,
3405             ppOut: *mut *mut Fts5Tokenizer,
3406         ) -> ::std::os::raw::c_int,
3407     >,
3408     pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Tokenizer)>,
3409     pub xTokenize: ::std::option::Option<
3410         unsafe extern "C" fn(
3411             arg1: *mut Fts5Tokenizer,
3412             pCtx: *mut ::std::os::raw::c_void,
3413             flags: ::std::os::raw::c_int,
3414             pText: *const ::std::os::raw::c_char,
3415             nText: ::std::os::raw::c_int,
3416             xToken: ::std::option::Option<
3417                 unsafe extern "C" fn(
3418                     pCtx: *mut ::std::os::raw::c_void,
3419                     tflags: ::std::os::raw::c_int,
3420                     pToken: *const ::std::os::raw::c_char,
3421                     nToken: ::std::os::raw::c_int,
3422                     iStart: ::std::os::raw::c_int,
3423                     iEnd: ::std::os::raw::c_int,
3424                 ) -> ::std::os::raw::c_int,
3425             >,
3426         ) -> ::std::os::raw::c_int,
3427     >,
3428 }
3429 #[repr(C)]
3430 #[derive(Debug, Copy, Clone)]
3431 pub struct fts5_api {
3432     pub iVersion: ::std::os::raw::c_int,
3433     pub xCreateTokenizer: ::std::option::Option<
3434         unsafe extern "C" fn(
3435             pApi: *mut fts5_api,
3436             zName: *const ::std::os::raw::c_char,
3437             pUserData: *mut ::std::os::raw::c_void,
3438             pTokenizer: *mut fts5_tokenizer,
3439             xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
3440         ) -> ::std::os::raw::c_int,
3441     >,
3442     pub xFindTokenizer: ::std::option::Option<
3443         unsafe extern "C" fn(
3444             pApi: *mut fts5_api,
3445             zName: *const ::std::os::raw::c_char,
3446             ppUserData: *mut *mut ::std::os::raw::c_void,
3447             pTokenizer: *mut fts5_tokenizer,
3448         ) -> ::std::os::raw::c_int,
3449     >,
3450     pub xCreateFunction: ::std::option::Option<
3451         unsafe extern "C" fn(
3452             pApi: *mut fts5_api,
3453             zName: *const ::std::os::raw::c_char,
3454             pUserData: *mut ::std::os::raw::c_void,
3455             xFunction: fts5_extension_function,
3456             xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
3457         ) -> ::std::os::raw::c_int,
3458     >,
3459 }
3460