1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
use libc::{c_char, c_double, c_int, c_uchar, c_uint, c_void};

use crate::types::*;

extern "C" {
    pub fn sqlite3_activate_cerod(p: *const c_char);
    pub fn sqlite3_activate_see(p: *const c_char);
    pub fn sqlite3_aggregate_context(p: *mut sqlite3_context, n: c_int) -> *mut c_void;
    pub fn sqlite3_aggregate_count(p: *mut sqlite3_context) -> c_int;
    pub fn sqlite3_auto_extension(f: Option<sqlite3_auto_extension_callback>) -> c_int;
    pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> c_int;
    pub fn sqlite3_backup_init(
        p: *mut sqlite3,
        p: *const c_char,
        p: *mut sqlite3,
        p: *const c_char,
    ) -> *mut sqlite3_backup;
    pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> c_int;
    pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> c_int;
    pub fn sqlite3_backup_step(p: *mut sqlite3_backup, n: c_int) -> c_int;
    pub fn sqlite3_bind_blob(
        p: *mut sqlite3_stmt,
        n: c_int,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_bind_blob64(
        p: *mut sqlite3_stmt,
        n: c_int,
        p: *const c_void,
        n: sqlite3_uint64,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_bind_double(p: *mut sqlite3_stmt, n: c_int, n: c_double) -> c_int;
    pub fn sqlite3_bind_int(p: *mut sqlite3_stmt, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_bind_int64(p: *mut sqlite3_stmt, n: c_int, n: sqlite3_int64) -> c_int;
    pub fn sqlite3_bind_null(p: *mut sqlite3_stmt, n: c_int) -> c_int;
    pub fn sqlite3_bind_parameter_count(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_bind_parameter_index(p: *mut sqlite3_stmt, p: *const c_char) -> c_int;
    pub fn sqlite3_bind_parameter_name(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_bind_text(
        p: *mut sqlite3_stmt,
        n: c_int,
        p: *const c_char,
        n: c_int,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_bind_text16(
        p: *mut sqlite3_stmt,
        n: c_int,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_bind_text64(
        p: *mut sqlite3_stmt,
        n: c_int,
        p: *const c_char,
        n: sqlite3_uint64,
        f: Option<sqlite3_callback>,
        n: c_uchar,
    ) -> c_int;
    pub fn sqlite3_bind_value(p: *mut sqlite3_stmt, n: c_int, p: *const sqlite3_value) -> c_int;
    pub fn sqlite3_bind_zeroblob(p: *mut sqlite3_stmt, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_bind_zeroblob64(p: *mut sqlite3_stmt, n: c_int, n: sqlite3_uint64) -> c_int;
    pub fn sqlite3_blob_bytes(p: *mut sqlite3_blob) -> c_int;
    pub fn sqlite3_blob_close(p: *mut sqlite3_blob) -> c_int;
    pub fn sqlite3_blob_open(
        p: *mut sqlite3,
        p: *const c_char,
        p: *const c_char,
        p: *const c_char,
        n: sqlite3_int64,
        n: c_int,
        pp: *mut *mut sqlite3_blob,
    ) -> c_int;
    pub fn sqlite3_blob_read(p: *mut sqlite3_blob, p: *mut c_void, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_blob_reopen(p: *mut sqlite3_blob, n: sqlite3_int64) -> c_int;
    pub fn sqlite3_blob_write(p: *mut sqlite3_blob, p: *const c_void, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_busy_handler(
        p: *mut sqlite3,
        f: Option<sqlite3_busy_callback>,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_busy_timeout(p: *mut sqlite3, n: c_int) -> c_int;
    pub fn sqlite3_cancel_auto_extension(f: Option<sqlite3_auto_extension_callback>) -> c_int;
    pub fn sqlite3_changes(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_clear_bindings(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_close(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_close_v2(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_collation_needed(
        p: *mut sqlite3,
        p: *mut c_void,
        f: Option<sqlite3_collation_need_callback>,
    ) -> c_int;
    pub fn sqlite3_collation_needed16(
        p: *mut sqlite3,
        p: *mut c_void,
        f: Option<sqlite3_collation_need16_callback>,
    ) -> c_int;
    pub fn sqlite3_column_blob(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_bytes(p: *mut sqlite3_stmt, n: c_int) -> c_int;
    pub fn sqlite3_column_bytes16(p: *mut sqlite3_stmt, n: c_int) -> c_int;
    pub fn sqlite3_column_count(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_column_database_name(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_column_database_name16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_decltype(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_column_decltype16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_double(p: *mut sqlite3_stmt, n: c_int) -> c_double;
    pub fn sqlite3_column_int(p: *mut sqlite3_stmt, n: c_int) -> c_int;
    pub fn sqlite3_column_int64(p: *mut sqlite3_stmt, n: c_int) -> sqlite3_int64;
    pub fn sqlite3_column_name(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_column_name16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_origin_name(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_column_origin_name16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_table_name(p: *mut sqlite3_stmt, n: c_int) -> *const c_char;
    pub fn sqlite3_column_table_name16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_text(p: *mut sqlite3_stmt, n: c_int) -> *const c_uchar;
    pub fn sqlite3_column_text16(p: *mut sqlite3_stmt, n: c_int) -> *const c_void;
    pub fn sqlite3_column_type(p: *mut sqlite3_stmt, n: c_int) -> c_int;
    pub fn sqlite3_column_value(p: *mut sqlite3_stmt, n: c_int) -> *mut sqlite3_value;
    pub fn sqlite3_commit_hook(
        p: *mut sqlite3,
        f: Option<sqlite3_commit_hook_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_compileoption_get(n: c_int) -> *const c_char;
    pub fn sqlite3_compileoption_used(p: *const c_char) -> c_int;
    pub fn sqlite3_complete(p: *const c_char) -> c_int;
    pub fn sqlite3_complete16(p: *const c_void) -> c_int;
    pub fn sqlite3_config(n: c_int, ...) -> c_int;
    pub fn sqlite3_context_db_handle(p: *mut sqlite3_context) -> *mut sqlite3;
    pub fn sqlite3_create_collation(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_collation_callback>,
    ) -> c_int;
    pub fn sqlite3_create_collation16(
        p: *mut sqlite3,
        p: *const c_void,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_collation16_callback>,
    ) -> c_int;
    pub fn sqlite3_create_collation_v2(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_collation_callback>,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_create_function(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback2>,
    ) -> c_int;
    pub fn sqlite3_create_function16(
        p: *mut sqlite3,
        p: *const c_void,
        n: c_int,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback2>,
    ) -> c_int;
    pub fn sqlite3_create_function_v2(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback1>,
        f: Option<sqlite3_create_function_callback2>,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_create_module(
        p: *mut sqlite3,
        p: *const c_char,
        p: *const sqlite3_module,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_create_module_v2(
        p: *mut sqlite3,
        p: *const c_char,
        p: *const sqlite3_module,
        p: *mut c_void,
        f: Option<sqlite3_callback>,
    ) -> c_int;
    pub fn sqlite3_data_count(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_db_cacheflush(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_db_config(p: *mut sqlite3, n: c_int, ...) -> c_int;
    pub fn sqlite3_db_filename(p: *mut sqlite3, p: *const c_char) -> *const c_char;
    pub fn sqlite3_db_handle(p: *mut sqlite3_stmt) -> *mut sqlite3;
    pub fn sqlite3_db_mutex(p: *mut sqlite3) -> *mut sqlite3_mutex;
    pub fn sqlite3_db_readonly(p: *mut sqlite3, p: *const c_char) -> c_int;
    pub fn sqlite3_db_release_memory(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_db_status(
        p: *mut sqlite3,
        n: c_int,
        p: *mut c_int,
        p: *mut c_int,
        n: c_int,
    ) -> c_int;
    pub fn sqlite3_declare_vtab(p: *mut sqlite3, p: *const c_char) -> c_int;
    pub fn sqlite3_enable_load_extension(p: *mut sqlite3, n: c_int) -> c_int;
    pub fn sqlite3_enable_shared_cache(n: c_int) -> c_int;
    pub fn sqlite3_errcode(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_errmsg(p: *mut sqlite3) -> *const c_char;
    pub fn sqlite3_errmsg16(p: *mut sqlite3) -> *const c_void;
    pub fn sqlite3_errstr(n: c_int) -> *const c_char;
    pub fn sqlite3_exec(
        p: *mut sqlite3,
        p: *const c_char,
        f: Option<sqlite3_exec_callback>,
        p: *mut c_void,
        pp: *mut *mut c_char,
    ) -> c_int;
    pub fn sqlite3_expired(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_extended_errcode(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_extended_result_codes(p: *mut sqlite3, n: c_int) -> c_int;
    pub fn sqlite3_expanded_sql(p: *mut sqlite3_stmt) -> *mut c_char;
    pub fn sqlite3_file_control(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_finalize(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_free(p: *mut c_void);
    pub fn sqlite3_free_table(pp: *mut *mut c_char);
    pub fn sqlite3_get_autocommit(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_get_auxdata(p: *mut sqlite3_context, n: c_int) -> *mut c_void;
    pub fn sqlite3_get_table(
        p: *mut sqlite3,
        p: *const c_char,
        ppp: *mut *mut *mut c_char,
        p: *mut c_int,
        p: *mut c_int,
        pp: *mut *mut c_char,
    ) -> c_int;
    pub fn sqlite3_global_recover() -> c_int;
    pub fn sqlite3_initialize() -> c_int;
    pub fn sqlite3_interrupt(p: *mut sqlite3);
    pub fn sqlite3_key(p: *mut sqlite3, p: *const c_void, n: c_int) -> c_int;
    pub fn sqlite3_key_v2(p: *mut sqlite3, p: *const c_char, p: *const c_void, n: c_int) -> c_int;
    pub fn sqlite3_last_insert_rowid(p: *mut sqlite3) -> sqlite3_int64;
    pub fn sqlite3_libversion() -> *const c_char;
    pub fn sqlite3_libversion_number() -> c_int;
    pub fn sqlite3_limit(p: *mut sqlite3, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_load_extension(
        p: *mut sqlite3,
        p: *const c_char,
        p: *const c_char,
        pp: *mut *mut c_char,
    ) -> c_int;
    pub fn sqlite3_log(n: c_int, p: *const c_char, ...);
    pub fn sqlite3_malloc(n: c_int) -> *mut c_void;
    pub fn sqlite3_malloc64(n: sqlite3_uint64) -> *mut c_void;
    pub fn sqlite3_memory_alarm(
        f: Option<sqlite3_memory_alarm_callback>,
        p: *mut c_void,
        n: sqlite3_int64,
    ) -> c_int;
    pub fn sqlite3_memory_highwater(n: c_int) -> sqlite3_int64;
    pub fn sqlite3_memory_used() -> sqlite3_int64;
    pub fn sqlite3_mprintf(p: *const c_char, ...) -> *mut c_char;
    pub fn sqlite3_msize(p: *mut c_void) -> sqlite3_uint64;
    pub fn sqlite3_mutex_alloc(n: c_int) -> *mut sqlite3_mutex;
    pub fn sqlite3_mutex_enter(p: *mut sqlite3_mutex);
    pub fn sqlite3_mutex_free(p: *mut sqlite3_mutex);
    pub fn sqlite3_mutex_held(p: *mut sqlite3_mutex) -> c_int;
    pub fn sqlite3_mutex_leave(p: *mut sqlite3_mutex);
    pub fn sqlite3_mutex_notheld(p: *mut sqlite3_mutex) -> c_int;
    pub fn sqlite3_mutex_try(p: *mut sqlite3_mutex) -> c_int;
    pub fn sqlite3_next_stmt(p: *mut sqlite3, p: *mut sqlite3_stmt) -> *mut sqlite3_stmt;
    pub fn sqlite3_open(p: *const c_char, pp: *mut *mut sqlite3) -> c_int;
    pub fn sqlite3_open16(p: *const c_void, pp: *mut *mut sqlite3) -> c_int;
    pub fn sqlite3_open_v2(
        p: *const c_char,
        pp: *mut *mut sqlite3,
        n: c_int,
        p: *const c_char,
    ) -> c_int;
    pub fn sqlite3_os_end() -> c_int;
    pub fn sqlite3_os_init() -> c_int;
    pub fn sqlite3_overload_function(p: *mut sqlite3, p: *const c_char, n: c_int) -> c_int;
    pub fn sqlite3_prepare(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        pp: *mut *mut sqlite3_stmt,
        pp: *mut *const c_char,
    ) -> c_int;
    pub fn sqlite3_prepare16(
        p: *mut sqlite3,
        p: *const c_void,
        n: c_int,
        pp: *mut *mut sqlite3_stmt,
        pp: *mut *const c_void,
    ) -> c_int;
    pub fn sqlite3_prepare16_v2(
        p: *mut sqlite3,
        p: *const c_void,
        n: c_int,
        pp: *mut *mut sqlite3_stmt,
        pp: *mut *const c_void,
    ) -> c_int;
    pub fn sqlite3_prepare_v2(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        pp: *mut *mut sqlite3_stmt,
        pp: *mut *const c_char,
    ) -> c_int;
    pub fn sqlite3_preupdate_count(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_preupdate_depth(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_preupdate_hook(
        p: *mut sqlite3,
        f: Option<sqlite3_preupdate_hook_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_preupdate_new(p: *mut sqlite3, n: c_int, pp: *mut *mut sqlite3_value) -> c_int;
    pub fn sqlite3_preupdate_old(p: *mut sqlite3, n: c_int, pp: *mut *mut sqlite3_value) -> c_int;
    pub fn sqlite3_profile(
        p: *mut sqlite3,
        f: Option<sqlite3_profile_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_progress_handler(
        p: *mut sqlite3,
        n: c_int,
        f: Option<sqlite3_progress_handler_callback>,
        p: *mut c_void,
    );
    pub fn sqlite3_randomness(n: c_int, p: *mut c_void);
    pub fn sqlite3_realloc(p: *mut c_void, n: c_int) -> *mut c_void;
    pub fn sqlite3_realloc64(p: *mut c_void, n: sqlite3_uint64) -> *mut c_void;
    pub fn sqlite3_rekey(p: *mut sqlite3, p: *const c_void, n: c_int) -> c_int;
    pub fn sqlite3_rekey_v2(p: *mut sqlite3, p: *const c_char, p: *const c_void, n: c_int)
        -> c_int;
    pub fn sqlite3_release_memory(n: c_int) -> c_int;
    pub fn sqlite3_reset(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_reset_auto_extension();
    pub fn sqlite3_result_blob(
        p: *mut sqlite3_context,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_blob64(
        p: *mut sqlite3_context,
        p: *const c_void,
        n: sqlite3_uint64,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_double(p: *mut sqlite3_context, n: c_double);
    pub fn sqlite3_result_error(p: *mut sqlite3_context, p: *const c_char, n: c_int);
    pub fn sqlite3_result_error16(p: *mut sqlite3_context, p: *const c_void, n: c_int);
    pub fn sqlite3_result_error_code(p: *mut sqlite3_context, n: c_int);
    pub fn sqlite3_result_error_nomem(p: *mut sqlite3_context);
    pub fn sqlite3_result_error_toobig(p: *mut sqlite3_context);
    pub fn sqlite3_result_int(p: *mut sqlite3_context, n: c_int);
    pub fn sqlite3_result_int64(p: *mut sqlite3_context, n: sqlite3_int64);
    pub fn sqlite3_result_null(p: *mut sqlite3_context);
    pub fn sqlite3_result_subtype(p: *mut sqlite3_context, n: c_uint);
    pub fn sqlite3_result_text(
        p: *mut sqlite3_context,
        p: *const c_char,
        n: c_int,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_text16(
        p: *mut sqlite3_context,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_text16be(
        p: *mut sqlite3_context,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_text16le(
        p: *mut sqlite3_context,
        p: *const c_void,
        n: c_int,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_result_text64(
        p: *mut sqlite3_context,
        p: *const c_char,
        n: sqlite3_uint64,
        f: Option<sqlite3_callback>,
        n: c_uchar,
    );
    pub fn sqlite3_result_value(p: *mut sqlite3_context, p: *mut sqlite3_value);
    pub fn sqlite3_result_zeroblob(p: *mut sqlite3_context, n: c_int);
    pub fn sqlite3_result_zeroblob64(p: *mut sqlite3_context, n: sqlite3_uint64) -> c_int;
    pub fn sqlite3_rollback_hook(
        p: *mut sqlite3,
        f: Option<sqlite3_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_set_authorizer(
        p: *mut sqlite3,
        f: Option<sqlite3_set_authorizer_callback>,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_set_auxdata(
        p: *mut sqlite3_context,
        n: c_int,
        p: *mut c_void,
        f: Option<sqlite3_callback>,
    );
    pub fn sqlite3_shutdown() -> c_int;
    pub fn sqlite3_sleep(n: c_int) -> c_int;
    pub fn sqlite3_snapshot_cmp(p: *mut sqlite3_snapshot, p: *mut sqlite3_snapshot) -> c_int;
    pub fn sqlite3_snapshot_free(p: *mut sqlite3_snapshot);
    pub fn sqlite3_snapshot_get(
        p: *mut sqlite3,
        p: *const c_char,
        pp: *mut *mut sqlite3_snapshot,
    ) -> c_int;
    pub fn sqlite3_snapshot_open(
        p: *mut sqlite3,
        p: *const c_char,
        p: *mut sqlite3_snapshot,
    ) -> c_int;
    pub fn sqlite3_snapshot_recover(p: *mut sqlite3, p: *const c_char) -> c_int;
    pub fn sqlite3_snprintf(n: c_int, p: *mut c_char, p: *const c_char, ...) -> *mut c_char;
    pub fn sqlite3_soft_heap_limit(n: c_int);
    pub fn sqlite3_soft_heap_limit64(n: sqlite3_int64) -> sqlite3_int64;
    pub fn sqlite3_sourceid() -> *const c_char;
    pub fn sqlite3_sql(p: *mut sqlite3_stmt) -> *const c_char;
    pub fn sqlite3_status(n: c_int, p: *mut c_int, p: *mut c_int, n: c_int) -> c_int;
    pub fn sqlite3_status64(
        n: c_int,
        p: *mut sqlite3_int64,
        p: *mut sqlite3_int64,
        n: c_int,
    ) -> c_int;
    pub fn sqlite3_step(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_stmt_busy(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_stmt_readonly(p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_stmt_scanstatus(
        p: *mut sqlite3_stmt,
        n: c_int,
        n: c_int,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_stmt_scanstatus_reset(p: *mut sqlite3_stmt);
    pub fn sqlite3_stmt_status(p: *mut sqlite3_stmt, n: c_int, n: c_int) -> c_int;
    pub fn sqlite3_strglob(p: *const c_char, p: *const c_char) -> c_int;
    pub fn sqlite3_stricmp(p: *const c_char, p: *const c_char) -> c_int;
    pub fn sqlite3_strlike(p: *const c_char, p: *const c_char, n: c_uint) -> c_int;
    pub fn sqlite3_strnicmp(p: *const c_char, p: *const c_char, n: c_int) -> c_int;
    pub fn sqlite3_system_errno(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_table_column_metadata(
        p: *mut sqlite3,
        p: *const c_char,
        p: *const c_char,
        p: *const c_char,
        pp: *mut *const c_char,
        pp: *mut *const c_char,
        p: *mut c_int,
        p: *mut c_int,
        p: *mut c_int,
    ) -> c_int;
    pub fn sqlite3_test_control(n: c_int, ...) -> c_int;
    pub fn sqlite3_thread_cleanup();
    pub fn sqlite3_threadsafe() -> c_int;
    pub fn sqlite3_total_changes(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_trace(
        p: *mut sqlite3,
        f: Option<sqlite3_trace_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_trace_v2(
        p: *mut sqlite3,
        n: c_uint,
        f: Option<sqlite3_trace_v2_callback>,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_transfer_bindings(p: *mut sqlite3_stmt, p: *mut sqlite3_stmt) -> c_int;
    pub fn sqlite3_unlock_notify(
        p: *mut sqlite3,
        f: Option<sqlite3_unlock_notify_callback>,
        p: *mut c_void,
    ) -> c_int;
    pub fn sqlite3_update_hook(
        p: *mut sqlite3,
        f: Option<sqlite3_update_hook_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
    pub fn sqlite3_uri_boolean(p: *const c_char, p: *const c_char, n: c_int) -> c_int;
    pub fn sqlite3_uri_int64(p: *const c_char, p: *const c_char, n: sqlite3_int64)
        -> sqlite3_int64;
    pub fn sqlite3_uri_parameter(p: *const c_char, p: *const c_char) -> *const c_char;
    pub fn sqlite3_user_data(p: *mut sqlite3_context) -> *mut c_void;
    pub fn sqlite3_value_blob(p: *mut sqlite3_value) -> *const c_void;
    pub fn sqlite3_value_bytes(p: *mut sqlite3_value) -> c_int;
    pub fn sqlite3_value_bytes16(p: *mut sqlite3_value) -> c_int;
    pub fn sqlite3_value_double(p: *mut sqlite3_value) -> c_double;
    pub fn sqlite3_value_dup(p: *const sqlite3_value) -> *mut sqlite3_value;
    pub fn sqlite3_value_free(p: *mut sqlite3_value);
    pub fn sqlite3_value_int(p: *mut sqlite3_value) -> c_int;
    pub fn sqlite3_value_int64(p: *mut sqlite3_value) -> sqlite3_int64;
    pub fn sqlite3_value_numeric_type(p: *mut sqlite3_value) -> c_int;
    pub fn sqlite3_value_subtype(p: *mut sqlite3_value) -> c_uint;
    pub fn sqlite3_value_text(p: *mut sqlite3_value) -> *const c_uchar;
    pub fn sqlite3_value_text16(p: *mut sqlite3_value) -> *const c_void;
    pub fn sqlite3_value_text16be(p: *mut sqlite3_value) -> *const c_void;
    pub fn sqlite3_value_text16le(p: *mut sqlite3_value) -> *const c_void;
    pub fn sqlite3_value_type(p: *mut sqlite3_value) -> c_int;
    // sqlite3_version
    pub fn sqlite3_vfs_find(p: *const c_char) -> *mut sqlite3_vfs;
    pub fn sqlite3_vfs_register(p: *mut sqlite3_vfs, n: c_int) -> c_int;
    pub fn sqlite3_vfs_unregister(p: *mut sqlite3_vfs) -> c_int;
    // sqlite3_vmprintf
    // sqlite3_vsnprintf
    pub fn sqlite3_vtab_config(p: *mut sqlite3, n: c_int, ...) -> c_int;
    pub fn sqlite3_vtab_on_conflict(p: *mut sqlite3) -> c_int;
    pub fn sqlite3_wal_autocheckpoint(p: *mut sqlite3, n: c_int) -> c_int;
    pub fn sqlite3_wal_checkpoint(p: *mut sqlite3, p: *const c_char) -> c_int;
    pub fn sqlite3_wal_checkpoint_v2(
        p: *mut sqlite3,
        p: *const c_char,
        n: c_int,
        p: *mut c_int,
        p: *mut c_int,
    ) -> c_int;
    pub fn sqlite3_wal_hook(
        p: *mut sqlite3,
        f: Option<sqlite3_wal_hook_callback>,
        p: *mut c_void,
    ) -> *mut c_void;
}