Kitxuuu commited on
Commit
60a631d
·
verified ·
1 Parent(s): 8d70adf

Add files using upload-large-folder tool

Browse files
local-test-sqlite3-delta-03/afc-sqlite3/ext/jni/src/c/sqlite3-jni.h ADDED
@@ -0,0 +1,2461 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* DO NOT EDIT THIS FILE - it is machine generated */
2
+ #include <jni.h>
3
+ /* Header for class org_sqlite_jni_capi_CApi */
4
+
5
+ #ifndef _Included_org_sqlite_jni_capi_CApi
6
+ #define _Included_org_sqlite_jni_capi_CApi
7
+ #ifdef __cplusplus
8
+ extern "C" {
9
+ #endif
10
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ACCESS_EXISTS
11
+ #define org_sqlite_jni_capi_CApi_SQLITE_ACCESS_EXISTS 0L
12
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ACCESS_READWRITE
13
+ #define org_sqlite_jni_capi_CApi_SQLITE_ACCESS_READWRITE 1L
14
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ACCESS_READ
15
+ #define org_sqlite_jni_capi_CApi_SQLITE_ACCESS_READ 2L
16
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DENY
17
+ #define org_sqlite_jni_capi_CApi_SQLITE_DENY 1L
18
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IGNORE
19
+ #define org_sqlite_jni_capi_CApi_SQLITE_IGNORE 2L
20
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_INDEX
21
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_INDEX 1L
22
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TABLE
23
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TABLE 2L
24
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_INDEX
25
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_INDEX 3L
26
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_TABLE
27
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_TABLE 4L
28
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_TRIGGER
29
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_TRIGGER 5L
30
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_VIEW
31
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TEMP_VIEW 6L
32
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_TRIGGER
33
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_TRIGGER 7L
34
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_VIEW
35
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_VIEW 8L
36
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DELETE
37
+ #define org_sqlite_jni_capi_CApi_SQLITE_DELETE 9L
38
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_INDEX
39
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_INDEX 10L
40
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TABLE
41
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TABLE 11L
42
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_INDEX
43
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_INDEX 12L
44
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_TABLE
45
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_TABLE 13L
46
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_TRIGGER
47
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_TRIGGER 14L
48
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_VIEW
49
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TEMP_VIEW 15L
50
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_TRIGGER
51
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_TRIGGER 16L
52
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_VIEW
53
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_VIEW 17L
54
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INSERT
55
+ #define org_sqlite_jni_capi_CApi_SQLITE_INSERT 18L
56
+ #undef org_sqlite_jni_capi_CApi_SQLITE_PRAGMA
57
+ #define org_sqlite_jni_capi_CApi_SQLITE_PRAGMA 19L
58
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READ
59
+ #define org_sqlite_jni_capi_CApi_SQLITE_READ 20L
60
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SELECT
61
+ #define org_sqlite_jni_capi_CApi_SQLITE_SELECT 21L
62
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRANSACTION
63
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRANSACTION 22L
64
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UPDATE
65
+ #define org_sqlite_jni_capi_CApi_SQLITE_UPDATE 23L
66
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ATTACH
67
+ #define org_sqlite_jni_capi_CApi_SQLITE_ATTACH 24L
68
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DETACH
69
+ #define org_sqlite_jni_capi_CApi_SQLITE_DETACH 25L
70
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ALTER_TABLE
71
+ #define org_sqlite_jni_capi_CApi_SQLITE_ALTER_TABLE 26L
72
+ #undef org_sqlite_jni_capi_CApi_SQLITE_REINDEX
73
+ #define org_sqlite_jni_capi_CApi_SQLITE_REINDEX 27L
74
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ANALYZE
75
+ #define org_sqlite_jni_capi_CApi_SQLITE_ANALYZE 28L
76
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CREATE_VTABLE
77
+ #define org_sqlite_jni_capi_CApi_SQLITE_CREATE_VTABLE 29L
78
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DROP_VTABLE
79
+ #define org_sqlite_jni_capi_CApi_SQLITE_DROP_VTABLE 30L
80
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FUNCTION
81
+ #define org_sqlite_jni_capi_CApi_SQLITE_FUNCTION 31L
82
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SAVEPOINT
83
+ #define org_sqlite_jni_capi_CApi_SQLITE_SAVEPOINT 32L
84
+ #undef org_sqlite_jni_capi_CApi_SQLITE_RECURSIVE
85
+ #define org_sqlite_jni_capi_CApi_SQLITE_RECURSIVE 33L
86
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATIC
87
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATIC 0LL
88
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRANSIENT
89
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRANSIENT -1LL
90
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESETSTART_INVERT
91
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESETSTART_INVERT 2L
92
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_NOSAVEPOINT
93
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_NOSAVEPOINT 1L
94
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_INVERT
95
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_INVERT 2L
96
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_IGNORENOOP
97
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESETAPPLY_IGNORENOOP 4L
98
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_DATA
99
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_DATA 1L
100
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_NOTFOUND
101
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_NOTFOUND 2L
102
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_CONFLICT
103
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_CONFLICT 3L
104
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_CONSTRAINT
105
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_CONSTRAINT 4L
106
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_FOREIGN_KEY
107
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_FOREIGN_KEY 5L
108
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_OMIT
109
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_OMIT 0L
110
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_REPLACE
111
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_REPLACE 1L
112
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_ABORT
113
+ #define org_sqlite_jni_capi_CApi_SQLITE_CHANGESET_ABORT 2L
114
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SINGLETHREAD
115
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SINGLETHREAD 1L
116
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MULTITHREAD
117
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MULTITHREAD 2L
118
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SERIALIZED
119
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SERIALIZED 3L
120
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MALLOC
121
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MALLOC 4L
122
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETMALLOC
123
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETMALLOC 5L
124
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SCRATCH
125
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SCRATCH 6L
126
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PAGECACHE
127
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PAGECACHE 7L
128
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_HEAP
129
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_HEAP 8L
130
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MEMSTATUS
131
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MEMSTATUS 9L
132
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MUTEX
133
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MUTEX 10L
134
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETMUTEX
135
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETMUTEX 11L
136
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_LOOKASIDE
137
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_LOOKASIDE 13L
138
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE
139
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE 14L
140
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETPCACHE
141
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETPCACHE 15L
142
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_LOG
143
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_LOG 16L
144
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_URI
145
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_URI 17L
146
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE2
147
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE2 18L
148
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETPCACHE2
149
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_GETPCACHE2 19L
150
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_COVERING_INDEX_SCAN
151
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_COVERING_INDEX_SCAN 20L
152
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SQLLOG
153
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SQLLOG 21L
154
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MMAP_SIZE
155
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MMAP_SIZE 22L
156
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_WIN32_HEAPSIZE
157
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_WIN32_HEAPSIZE 23L
158
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE_HDRSZ
159
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PCACHE_HDRSZ 24L
160
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PMASZ
161
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_PMASZ 25L
162
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_STMTJRNL_SPILL
163
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_STMTJRNL_SPILL 26L
164
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SMALL_MALLOC
165
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SMALL_MALLOC 27L
166
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SORTERREF_SIZE
167
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_SORTERREF_SIZE 28L
168
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MEMDB_MAXSIZE
169
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONFIG_MEMDB_MAXSIZE 29L
170
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INTEGER
171
+ #define org_sqlite_jni_capi_CApi_SQLITE_INTEGER 1L
172
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FLOAT
173
+ #define org_sqlite_jni_capi_CApi_SQLITE_FLOAT 2L
174
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TEXT
175
+ #define org_sqlite_jni_capi_CApi_SQLITE_TEXT 3L
176
+ #undef org_sqlite_jni_capi_CApi_SQLITE_BLOB
177
+ #define org_sqlite_jni_capi_CApi_SQLITE_BLOB 4L
178
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NULL
179
+ #define org_sqlite_jni_capi_CApi_SQLITE_NULL 5L
180
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_MAINDBNAME
181
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_MAINDBNAME 1000L
182
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LOOKASIDE
183
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LOOKASIDE 1001L
184
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_FKEY
185
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_FKEY 1002L
186
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_TRIGGER
187
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_TRIGGER 1003L
188
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
189
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004L
190
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
191
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005L
192
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
193
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE 1006L
194
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_QPSG
195
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_QPSG 1007L
196
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_TRIGGER_EQP
197
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_TRIGGER_EQP 1008L
198
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_RESET_DATABASE
199
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_RESET_DATABASE 1009L
200
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DEFENSIVE
201
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DEFENSIVE 1010L
202
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_WRITABLE_SCHEMA
203
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_WRITABLE_SCHEMA 1011L
204
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LEGACY_ALTER_TABLE
205
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LEGACY_ALTER_TABLE 1012L
206
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DQS_DML
207
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DQS_DML 1013L
208
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DQS_DDL
209
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_DQS_DDL 1014L
210
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_VIEW
211
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_ENABLE_VIEW 1015L
212
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LEGACY_FILE_FORMAT
213
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_LEGACY_FILE_FORMAT 1016L
214
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_TRUSTED_SCHEMA
215
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_TRUSTED_SCHEMA 1017L
216
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_STMT_SCANSTATUS
217
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_STMT_SCANSTATUS 1018L
218
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_REVERSE_SCANORDER
219
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_REVERSE_SCANORDER 1019L
220
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_MAX
221
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBCONFIG_MAX 1019L
222
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_USED
223
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_USED 0L
224
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_USED
225
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_USED 1L
226
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_SCHEMA_USED
227
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_SCHEMA_USED 2L
228
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_STMT_USED
229
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_STMT_USED 3L
230
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_HIT
231
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_HIT 4L
232
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE
233
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE 5L
234
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL
235
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL 6L
236
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_HIT
237
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_HIT 7L
238
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_MISS
239
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_MISS 8L
240
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_WRITE
241
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_WRITE 9L
242
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_DEFERRED_FKS
243
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_DEFERRED_FKS 10L
244
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_USED_SHARED
245
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_USED_SHARED 11L
246
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_SPILL
247
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_CACHE_SPILL 12L
248
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_MAX
249
+ #define org_sqlite_jni_capi_CApi_SQLITE_DBSTATUS_MAX 12L
250
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UTF8
251
+ #define org_sqlite_jni_capi_CApi_SQLITE_UTF8 1L
252
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UTF16LE
253
+ #define org_sqlite_jni_capi_CApi_SQLITE_UTF16LE 2L
254
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UTF16BE
255
+ #define org_sqlite_jni_capi_CApi_SQLITE_UTF16BE 3L
256
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UTF16
257
+ #define org_sqlite_jni_capi_CApi_SQLITE_UTF16 4L
258
+ #undef org_sqlite_jni_capi_CApi_SQLITE_UTF16_ALIGNED
259
+ #define org_sqlite_jni_capi_CApi_SQLITE_UTF16_ALIGNED 8L
260
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LOCKSTATE
261
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LOCKSTATE 1L
262
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_GET_LOCKPROXYFILE
263
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_GET_LOCKPROXYFILE 2L
264
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SET_LOCKPROXYFILE
265
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SET_LOCKPROXYFILE 3L
266
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LAST_ERRNO
267
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LAST_ERRNO 4L
268
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SIZE_HINT
269
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SIZE_HINT 5L
270
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CHUNK_SIZE
271
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CHUNK_SIZE 6L
272
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_FILE_POINTER
273
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_FILE_POINTER 7L
274
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SYNC_OMITTED
275
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SYNC_OMITTED 8L
276
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_AV_RETRY
277
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_AV_RETRY 9L
278
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PERSIST_WAL
279
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PERSIST_WAL 10L
280
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_OVERWRITE
281
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_OVERWRITE 11L
282
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_VFSNAME
283
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_VFSNAME 12L
284
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_POWERSAFE_OVERWRITE
285
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_POWERSAFE_OVERWRITE 13L
286
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PRAGMA
287
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PRAGMA 14L
288
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_BUSYHANDLER
289
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_BUSYHANDLER 15L
290
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_TEMPFILENAME
291
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_TEMPFILENAME 16L
292
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_MMAP_SIZE
293
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_MMAP_SIZE 18L
294
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_TRACE
295
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_TRACE 19L
296
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_HAS_MOVED
297
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_HAS_MOVED 20L
298
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SYNC
299
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SYNC 21L
300
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_COMMIT_PHASETWO
301
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_COMMIT_PHASETWO 22L
302
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_SET_HANDLE
303
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_SET_HANDLE 23L
304
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WAL_BLOCK
305
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WAL_BLOCK 24L
306
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_ZIPVFS
307
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_ZIPVFS 25L
308
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RBU
309
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RBU 26L
310
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_VFS_POINTER
311
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_VFS_POINTER 27L
312
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_JOURNAL_POINTER
313
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_JOURNAL_POINTER 28L
314
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_GET_HANDLE
315
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_WIN32_GET_HANDLE 29L
316
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PDB
317
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_PDB 30L
318
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_BEGIN_ATOMIC_WRITE
319
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_BEGIN_ATOMIC_WRITE 31L
320
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_COMMIT_ATOMIC_WRITE
321
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_COMMIT_ATOMIC_WRITE 32L
322
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE
323
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE 33L
324
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LOCK_TIMEOUT
325
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_LOCK_TIMEOUT 34L
326
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_DATA_VERSION
327
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_DATA_VERSION 35L
328
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SIZE_LIMIT
329
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_SIZE_LIMIT 36L
330
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKPT_DONE
331
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKPT_DONE 37L
332
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RESERVE_BYTES
333
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RESERVE_BYTES 38L
334
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKPT_START
335
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKPT_START 39L
336
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_EXTERNAL_READER
337
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_EXTERNAL_READER 40L
338
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKSM_FILE
339
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_CKSM_FILE 41L
340
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RESET_CACHE
341
+ #define org_sqlite_jni_capi_CApi_SQLITE_FCNTL_RESET_CACHE 42L
342
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCK_NONE
343
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCK_NONE 0L
344
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCK_SHARED
345
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCK_SHARED 1L
346
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCK_RESERVED
347
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCK_RESERVED 2L
348
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCK_PENDING
349
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCK_PENDING 3L
350
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCK_EXCLUSIVE
351
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCK_EXCLUSIVE 4L
352
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC
353
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC 1L
354
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC512
355
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC512 2L
356
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC1K
357
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC1K 4L
358
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC2K
359
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC2K 8L
360
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC4K
361
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC4K 16L
362
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC8K
363
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC8K 32L
364
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC16K
365
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC16K 64L
366
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC32K
367
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC32K 128L
368
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC64K
369
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_ATOMIC64K 256L
370
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_SAFE_APPEND
371
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_SAFE_APPEND 512L
372
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_SEQUENTIAL
373
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_SEQUENTIAL 1024L
374
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
375
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 2048L
376
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_POWERSAFE_OVERWRITE
377
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_POWERSAFE_OVERWRITE 4096L
378
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_IMMUTABLE
379
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_IMMUTABLE 8192L
380
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOCAP_BATCH_ATOMIC
381
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOCAP_BATCH_ATOMIC 16384L
382
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_LENGTH
383
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_LENGTH 0L
384
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_SQL_LENGTH
385
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_SQL_LENGTH 1L
386
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_COLUMN
387
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_COLUMN 2L
388
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_EXPR_DEPTH
389
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_EXPR_DEPTH 3L
390
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_COMPOUND_SELECT
391
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_COMPOUND_SELECT 4L
392
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_VDBE_OP
393
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_VDBE_OP 5L
394
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_FUNCTION_ARG
395
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_FUNCTION_ARG 6L
396
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_ATTACHED
397
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_ATTACHED 7L
398
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_LIKE_PATTERN_LENGTH
399
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_LIKE_PATTERN_LENGTH 8L
400
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_VARIABLE_NUMBER
401
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_VARIABLE_NUMBER 9L
402
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_TRIGGER_DEPTH
403
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_TRIGGER_DEPTH 10L
404
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LIMIT_WORKER_THREADS
405
+ #define org_sqlite_jni_capi_CApi_SQLITE_LIMIT_WORKER_THREADS 11L
406
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_READONLY
407
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_READONLY 1L
408
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_READWRITE
409
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_READWRITE 2L
410
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_CREATE
411
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_CREATE 4L
412
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_URI
413
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_URI 64L
414
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_MEMORY
415
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_MEMORY 128L
416
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_NOMUTEX
417
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_NOMUTEX 32768L
418
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_FULLMUTEX
419
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_FULLMUTEX 65536L
420
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_SHAREDCACHE
421
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_SHAREDCACHE 131072L
422
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_PRIVATECACHE
423
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_PRIVATECACHE 262144L
424
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_NOFOLLOW
425
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_NOFOLLOW 16777216L
426
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OPEN_EXRESCODE
427
+ #define org_sqlite_jni_capi_CApi_SQLITE_OPEN_EXRESCODE 33554432L
428
+ #undef org_sqlite_jni_capi_CApi_SQLITE_PREPARE_PERSISTENT
429
+ #define org_sqlite_jni_capi_CApi_SQLITE_PREPARE_PERSISTENT 1L
430
+ #undef org_sqlite_jni_capi_CApi_SQLITE_PREPARE_NO_VTAB
431
+ #define org_sqlite_jni_capi_CApi_SQLITE_PREPARE_NO_VTAB 4L
432
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OK
433
+ #define org_sqlite_jni_capi_CApi_SQLITE_OK 0L
434
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ERROR
435
+ #define org_sqlite_jni_capi_CApi_SQLITE_ERROR 1L
436
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INTERNAL
437
+ #define org_sqlite_jni_capi_CApi_SQLITE_INTERNAL 2L
438
+ #undef org_sqlite_jni_capi_CApi_SQLITE_PERM
439
+ #define org_sqlite_jni_capi_CApi_SQLITE_PERM 3L
440
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ABORT
441
+ #define org_sqlite_jni_capi_CApi_SQLITE_ABORT 4L
442
+ #undef org_sqlite_jni_capi_CApi_SQLITE_BUSY
443
+ #define org_sqlite_jni_capi_CApi_SQLITE_BUSY 5L
444
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCKED
445
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCKED 6L
446
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOMEM
447
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOMEM 7L
448
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY
449
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY 8L
450
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INTERRUPT
451
+ #define org_sqlite_jni_capi_CApi_SQLITE_INTERRUPT 9L
452
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR
453
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR 10L
454
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CORRUPT
455
+ #define org_sqlite_jni_capi_CApi_SQLITE_CORRUPT 11L
456
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOTFOUND
457
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOTFOUND 12L
458
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FULL
459
+ #define org_sqlite_jni_capi_CApi_SQLITE_FULL 13L
460
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN
461
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN 14L
462
+ #undef org_sqlite_jni_capi_CApi_SQLITE_PROTOCOL
463
+ #define org_sqlite_jni_capi_CApi_SQLITE_PROTOCOL 15L
464
+ #undef org_sqlite_jni_capi_CApi_SQLITE_EMPTY
465
+ #define org_sqlite_jni_capi_CApi_SQLITE_EMPTY 16L
466
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SCHEMA
467
+ #define org_sqlite_jni_capi_CApi_SQLITE_SCHEMA 17L
468
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TOOBIG
469
+ #define org_sqlite_jni_capi_CApi_SQLITE_TOOBIG 18L
470
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT
471
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT 19L
472
+ #undef org_sqlite_jni_capi_CApi_SQLITE_MISMATCH
473
+ #define org_sqlite_jni_capi_CApi_SQLITE_MISMATCH 20L
474
+ #undef org_sqlite_jni_capi_CApi_SQLITE_MISUSE
475
+ #define org_sqlite_jni_capi_CApi_SQLITE_MISUSE 21L
476
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOLFS
477
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOLFS 22L
478
+ #undef org_sqlite_jni_capi_CApi_SQLITE_AUTH
479
+ #define org_sqlite_jni_capi_CApi_SQLITE_AUTH 23L
480
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FORMAT
481
+ #define org_sqlite_jni_capi_CApi_SQLITE_FORMAT 24L
482
+ #undef org_sqlite_jni_capi_CApi_SQLITE_RANGE
483
+ #define org_sqlite_jni_capi_CApi_SQLITE_RANGE 25L
484
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOTADB
485
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOTADB 26L
486
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOTICE
487
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOTICE 27L
488
+ #undef org_sqlite_jni_capi_CApi_SQLITE_WARNING
489
+ #define org_sqlite_jni_capi_CApi_SQLITE_WARNING 28L
490
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ROW
491
+ #define org_sqlite_jni_capi_CApi_SQLITE_ROW 100L
492
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DONE
493
+ #define org_sqlite_jni_capi_CApi_SQLITE_DONE 101L
494
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ERROR_MISSING_COLLSEQ
495
+ #define org_sqlite_jni_capi_CApi_SQLITE_ERROR_MISSING_COLLSEQ 257L
496
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ERROR_RETRY
497
+ #define org_sqlite_jni_capi_CApi_SQLITE_ERROR_RETRY 513L
498
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ERROR_SNAPSHOT
499
+ #define org_sqlite_jni_capi_CApi_SQLITE_ERROR_SNAPSHOT 769L
500
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_READ
501
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_READ 266L
502
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHORT_READ
503
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHORT_READ 522L
504
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_WRITE
505
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_WRITE 778L
506
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_FSYNC
507
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_FSYNC 1034L
508
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_DIR_FSYNC
509
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_DIR_FSYNC 1290L
510
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_TRUNCATE
511
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_TRUNCATE 1546L
512
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_FSTAT
513
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_FSTAT 1802L
514
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_UNLOCK
515
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_UNLOCK 2058L
516
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_RDLOCK
517
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_RDLOCK 2314L
518
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_DELETE
519
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_DELETE 2570L
520
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_BLOCKED
521
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_BLOCKED 2826L
522
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_NOMEM
523
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_NOMEM 3082L
524
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_ACCESS
525
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_ACCESS 3338L
526
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_CHECKRESERVEDLOCK
527
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_CHECKRESERVEDLOCK 3594L
528
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_LOCK
529
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_LOCK 3850L
530
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_CLOSE
531
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_CLOSE 4106L
532
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_DIR_CLOSE
533
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_DIR_CLOSE 4362L
534
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMOPEN
535
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMOPEN 4618L
536
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMSIZE
537
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMSIZE 4874L
538
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMLOCK
539
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMLOCK 5130L
540
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMMAP
541
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SHMMAP 5386L
542
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_SEEK
543
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_SEEK 5642L
544
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_DELETE_NOENT
545
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_DELETE_NOENT 5898L
546
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_MMAP
547
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_MMAP 6154L
548
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_GETTEMPPATH
549
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_GETTEMPPATH 6410L
550
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_CONVPATH
551
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_CONVPATH 6666L
552
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_VNODE
553
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_VNODE 6922L
554
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_AUTH
555
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_AUTH 7178L
556
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_BEGIN_ATOMIC
557
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_BEGIN_ATOMIC 7434L
558
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_COMMIT_ATOMIC
559
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_COMMIT_ATOMIC 7690L
560
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_ROLLBACK_ATOMIC
561
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_ROLLBACK_ATOMIC 7946L
562
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_DATA
563
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_DATA 8202L
564
+ #undef org_sqlite_jni_capi_CApi_SQLITE_IOERR_CORRUPTFS
565
+ #define org_sqlite_jni_capi_CApi_SQLITE_IOERR_CORRUPTFS 8458L
566
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCKED_SHAREDCACHE
567
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCKED_SHAREDCACHE 262L
568
+ #undef org_sqlite_jni_capi_CApi_SQLITE_LOCKED_VTAB
569
+ #define org_sqlite_jni_capi_CApi_SQLITE_LOCKED_VTAB 518L
570
+ #undef org_sqlite_jni_capi_CApi_SQLITE_BUSY_RECOVERY
571
+ #define org_sqlite_jni_capi_CApi_SQLITE_BUSY_RECOVERY 261L
572
+ #undef org_sqlite_jni_capi_CApi_SQLITE_BUSY_SNAPSHOT
573
+ #define org_sqlite_jni_capi_CApi_SQLITE_BUSY_SNAPSHOT 517L
574
+ #undef org_sqlite_jni_capi_CApi_SQLITE_BUSY_TIMEOUT
575
+ #define org_sqlite_jni_capi_CApi_SQLITE_BUSY_TIMEOUT 773L
576
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_NOTEMPDIR
577
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_NOTEMPDIR 270L
578
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_ISDIR
579
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_ISDIR 526L
580
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_FULLPATH
581
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_FULLPATH 782L
582
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_CONVPATH
583
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_CONVPATH 1038L
584
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_SYMLINK
585
+ #define org_sqlite_jni_capi_CApi_SQLITE_CANTOPEN_SYMLINK 1550L
586
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_VTAB
587
+ #define org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_VTAB 267L
588
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_SEQUENCE
589
+ #define org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_SEQUENCE 523L
590
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_INDEX
591
+ #define org_sqlite_jni_capi_CApi_SQLITE_CORRUPT_INDEX 779L
592
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_RECOVERY
593
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_RECOVERY 264L
594
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_CANTLOCK
595
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_CANTLOCK 520L
596
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_ROLLBACK
597
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_ROLLBACK 776L
598
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_DBMOVED
599
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_DBMOVED 1032L
600
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_CANTINIT
601
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_CANTINIT 1288L
602
+ #undef org_sqlite_jni_capi_CApi_SQLITE_READONLY_DIRECTORY
603
+ #define org_sqlite_jni_capi_CApi_SQLITE_READONLY_DIRECTORY 1544L
604
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ABORT_ROLLBACK
605
+ #define org_sqlite_jni_capi_CApi_SQLITE_ABORT_ROLLBACK 516L
606
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_CHECK
607
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_CHECK 275L
608
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_COMMITHOOK
609
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_COMMITHOOK 531L
610
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_FOREIGNKEY
611
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_FOREIGNKEY 787L
612
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_FUNCTION
613
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_FUNCTION 1043L
614
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_NOTNULL
615
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_NOTNULL 1299L
616
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_PRIMARYKEY
617
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_PRIMARYKEY 1555L
618
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_TRIGGER
619
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_TRIGGER 1811L
620
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_UNIQUE
621
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_UNIQUE 2067L
622
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_VTAB
623
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_VTAB 2323L
624
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_ROWID
625
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_ROWID 2579L
626
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_PINNED
627
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_PINNED 2835L
628
+ #undef org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_DATATYPE
629
+ #define org_sqlite_jni_capi_CApi_SQLITE_CONSTRAINT_DATATYPE 3091L
630
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOTICE_RECOVER_WAL
631
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOTICE_RECOVER_WAL 283L
632
+ #undef org_sqlite_jni_capi_CApi_SQLITE_NOTICE_RECOVER_ROLLBACK
633
+ #define org_sqlite_jni_capi_CApi_SQLITE_NOTICE_RECOVER_ROLLBACK 539L
634
+ #undef org_sqlite_jni_capi_CApi_SQLITE_WARNING_AUTOINDEX
635
+ #define org_sqlite_jni_capi_CApi_SQLITE_WARNING_AUTOINDEX 284L
636
+ #undef org_sqlite_jni_capi_CApi_SQLITE_AUTH_USER
637
+ #define org_sqlite_jni_capi_CApi_SQLITE_AUTH_USER 279L
638
+ #undef org_sqlite_jni_capi_CApi_SQLITE_OK_LOAD_PERMANENTLY
639
+ #define org_sqlite_jni_capi_CApi_SQLITE_OK_LOAD_PERMANENTLY 256L
640
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SERIALIZE_NOCOPY
641
+ #define org_sqlite_jni_capi_CApi_SQLITE_SERIALIZE_NOCOPY 1L
642
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_FREEONCLOSE
643
+ #define org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_FREEONCLOSE 1L
644
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_READONLY
645
+ #define org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_READONLY 4L
646
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_RESIZEABLE
647
+ #define org_sqlite_jni_capi_CApi_SQLITE_DESERIALIZE_RESIZEABLE 2L
648
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SESSION_CONFIG_STRMSIZE
649
+ #define org_sqlite_jni_capi_CApi_SQLITE_SESSION_CONFIG_STRMSIZE 1L
650
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SESSION_OBJCONFIG_SIZE
651
+ #define org_sqlite_jni_capi_CApi_SQLITE_SESSION_OBJCONFIG_SIZE 1L
652
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_MEMORY_USED
653
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_MEMORY_USED 0L
654
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_USED
655
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_USED 1L
656
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_OVERFLOW
657
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_OVERFLOW 2L
658
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_MALLOC_SIZE
659
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_MALLOC_SIZE 5L
660
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_PARSER_STACK
661
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_PARSER_STACK 6L
662
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_SIZE
663
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_PAGECACHE_SIZE 7L
664
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STATUS_MALLOC_COUNT
665
+ #define org_sqlite_jni_capi_CApi_SQLITE_STATUS_MALLOC_COUNT 9L
666
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FULLSCAN_STEP
667
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FULLSCAN_STEP 1L
668
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_SORT
669
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_SORT 2L
670
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_AUTOINDEX
671
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_AUTOINDEX 3L
672
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_VM_STEP
673
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_VM_STEP 4L
674
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_REPREPARE
675
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_REPREPARE 5L
676
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_RUN
677
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_RUN 6L
678
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FILTER_MISS
679
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FILTER_MISS 7L
680
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FILTER_HIT
681
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_FILTER_HIT 8L
682
+ #undef org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_MEMUSED
683
+ #define org_sqlite_jni_capi_CApi_SQLITE_STMTSTATUS_MEMUSED 99L
684
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SYNC_NORMAL
685
+ #define org_sqlite_jni_capi_CApi_SQLITE_SYNC_NORMAL 2L
686
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SYNC_FULL
687
+ #define org_sqlite_jni_capi_CApi_SQLITE_SYNC_FULL 3L
688
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SYNC_DATAONLY
689
+ #define org_sqlite_jni_capi_CApi_SQLITE_SYNC_DATAONLY 16L
690
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRACE_STMT
691
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRACE_STMT 1L
692
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRACE_PROFILE
693
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRACE_PROFILE 2L
694
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRACE_ROW
695
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRACE_ROW 4L
696
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TRACE_CLOSE
697
+ #define org_sqlite_jni_capi_CApi_SQLITE_TRACE_CLOSE 8L
698
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TXN_NONE
699
+ #define org_sqlite_jni_capi_CApi_SQLITE_TXN_NONE 0L
700
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TXN_READ
701
+ #define org_sqlite_jni_capi_CApi_SQLITE_TXN_READ 1L
702
+ #undef org_sqlite_jni_capi_CApi_SQLITE_TXN_WRITE
703
+ #define org_sqlite_jni_capi_CApi_SQLITE_TXN_WRITE 2L
704
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DETERMINISTIC
705
+ #define org_sqlite_jni_capi_CApi_SQLITE_DETERMINISTIC 2048L
706
+ #undef org_sqlite_jni_capi_CApi_SQLITE_DIRECTONLY
707
+ #define org_sqlite_jni_capi_CApi_SQLITE_DIRECTONLY 524288L
708
+ #undef org_sqlite_jni_capi_CApi_SQLITE_SUBTYPE
709
+ #define org_sqlite_jni_capi_CApi_SQLITE_SUBTYPE 1048576L
710
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INNOCUOUS
711
+ #define org_sqlite_jni_capi_CApi_SQLITE_INNOCUOUS 2097152L
712
+ #undef org_sqlite_jni_capi_CApi_SQLITE_RESULT_SUBTYPE
713
+ #define org_sqlite_jni_capi_CApi_SQLITE_RESULT_SUBTYPE 16777216L
714
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_SCAN_UNIQUE
715
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_SCAN_UNIQUE 1L
716
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_EQ
717
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_EQ 2L
718
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GT
719
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GT 4L
720
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LE
721
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LE 8L
722
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LT
723
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LT 16L
724
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GE
725
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GE 32L
726
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_MATCH
727
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_MATCH 64L
728
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LIKE
729
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LIKE 65L
730
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GLOB
731
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_GLOB 66L
732
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_REGEXP
733
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_REGEXP 67L
734
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_NE
735
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_NE 68L
736
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNOT
737
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNOT 69L
738
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNOTNULL
739
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNOTNULL 70L
740
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNULL
741
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_ISNULL 71L
742
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_IS
743
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_IS 72L
744
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LIMIT
745
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_LIMIT 73L
746
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_OFFSET
747
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_OFFSET 74L
748
+ #undef org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_FUNCTION
749
+ #define org_sqlite_jni_capi_CApi_SQLITE_INDEX_CONSTRAINT_FUNCTION 150L
750
+ #undef org_sqlite_jni_capi_CApi_SQLITE_VTAB_CONSTRAINT_SUPPORT
751
+ #define org_sqlite_jni_capi_CApi_SQLITE_VTAB_CONSTRAINT_SUPPORT 1L
752
+ #undef org_sqlite_jni_capi_CApi_SQLITE_VTAB_INNOCUOUS
753
+ #define org_sqlite_jni_capi_CApi_SQLITE_VTAB_INNOCUOUS 2L
754
+ #undef org_sqlite_jni_capi_CApi_SQLITE_VTAB_DIRECTONLY
755
+ #define org_sqlite_jni_capi_CApi_SQLITE_VTAB_DIRECTONLY 3L
756
+ #undef org_sqlite_jni_capi_CApi_SQLITE_VTAB_USES_ALL_SCHEMAS
757
+ #define org_sqlite_jni_capi_CApi_SQLITE_VTAB_USES_ALL_SCHEMAS 4L
758
+ #undef org_sqlite_jni_capi_CApi_SQLITE_ROLLBACK
759
+ #define org_sqlite_jni_capi_CApi_SQLITE_ROLLBACK 1L
760
+ #undef org_sqlite_jni_capi_CApi_SQLITE_FAIL
761
+ #define org_sqlite_jni_capi_CApi_SQLITE_FAIL 3L
762
+ #undef org_sqlite_jni_capi_CApi_SQLITE_REPLACE
763
+ #define org_sqlite_jni_capi_CApi_SQLITE_REPLACE 5L
764
+ /*
765
+ * Class: org_sqlite_jni_capi_CApi
766
+ * Method: init
767
+ * Signature: ()V
768
+ */
769
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_init
770
+ (JNIEnv *, jclass);
771
+
772
+ /*
773
+ * Class: org_sqlite_jni_capi_CApi
774
+ * Method: sqlite3_java_uncache_thread
775
+ * Signature: ()Z
776
+ */
777
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1java_1uncache_1thread
778
+ (JNIEnv *, jclass);
779
+
780
+ /*
781
+ * Class: org_sqlite_jni_capi_CApi
782
+ * Method: sqlite3_jni_supports_nio
783
+ * Signature: ()Z
784
+ */
785
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1jni_1supports_1nio
786
+ (JNIEnv *, jclass);
787
+
788
+ /*
789
+ * Class: org_sqlite_jni_capi_CApi
790
+ * Method: sqlite3_jni_db_error
791
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;ILjava/lang/String;)I
792
+ */
793
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1jni_1db_1error
794
+ (JNIEnv *, jclass, jobject, jint, jstring);
795
+
796
+ /*
797
+ * Class: org_sqlite_jni_capi_CApi
798
+ * Method: sqlite3_aggregate_context
799
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;Z)J
800
+ */
801
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1aggregate_1context
802
+ (JNIEnv *, jclass, jobject, jboolean);
803
+
804
+ /*
805
+ * Class: org_sqlite_jni_capi_CApi
806
+ * Method: sqlite3_auto_extension
807
+ * Signature: (Lorg/sqlite/jni/capi/AutoExtensionCallback;)I
808
+ */
809
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1auto_1extension
810
+ (JNIEnv *, jclass, jobject);
811
+
812
+ /*
813
+ * Class: org_sqlite_jni_capi_CApi
814
+ * Method: sqlite3_backup_finish
815
+ * Signature: (J)I
816
+ */
817
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1backup_1finish
818
+ (JNIEnv *, jclass, jlong);
819
+
820
+ /*
821
+ * Class: org_sqlite_jni_capi_CApi
822
+ * Method: sqlite3_backup_init
823
+ * Signature: (JLjava/lang/String;JLjava/lang/String;)Lorg/sqlite/jni/capi/sqlite3_backup;
824
+ */
825
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1backup_1init
826
+ (JNIEnv *, jclass, jlong, jstring, jlong, jstring);
827
+
828
+ /*
829
+ * Class: org_sqlite_jni_capi_CApi
830
+ * Method: sqlite3_backup_pagecount
831
+ * Signature: (J)I
832
+ */
833
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1backup_1pagecount
834
+ (JNIEnv *, jclass, jlong);
835
+
836
+ /*
837
+ * Class: org_sqlite_jni_capi_CApi
838
+ * Method: sqlite3_backup_remaining
839
+ * Signature: (J)I
840
+ */
841
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1backup_1remaining
842
+ (JNIEnv *, jclass, jlong);
843
+
844
+ /*
845
+ * Class: org_sqlite_jni_capi_CApi
846
+ * Method: sqlite3_backup_step
847
+ * Signature: (JI)I
848
+ */
849
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1backup_1step
850
+ (JNIEnv *, jclass, jlong, jint);
851
+
852
+ /*
853
+ * Class: org_sqlite_jni_capi_CApi
854
+ * Method: sqlite3_bind_blob
855
+ * Signature: (JI[BI)I
856
+ */
857
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1blob
858
+ (JNIEnv *, jclass, jlong, jint, jbyteArray, jint);
859
+
860
+ /*
861
+ * Class: org_sqlite_jni_capi_CApi
862
+ * Method: sqlite3_bind_double
863
+ * Signature: (JID)I
864
+ */
865
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1double
866
+ (JNIEnv *, jclass, jlong, jint, jdouble);
867
+
868
+ /*
869
+ * Class: org_sqlite_jni_capi_CApi
870
+ * Method: sqlite3_bind_int
871
+ * Signature: (JII)I
872
+ */
873
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1int
874
+ (JNIEnv *, jclass, jlong, jint, jint);
875
+
876
+ /*
877
+ * Class: org_sqlite_jni_capi_CApi
878
+ * Method: sqlite3_bind_int64
879
+ * Signature: (JIJ)I
880
+ */
881
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1int64
882
+ (JNIEnv *, jclass, jlong, jint, jlong);
883
+
884
+ /*
885
+ * Class: org_sqlite_jni_capi_CApi
886
+ * Method: sqlite3_bind_java_object
887
+ * Signature: (JILjava/lang/Object;)I
888
+ */
889
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1java_1object
890
+ (JNIEnv *, jclass, jlong, jint, jobject);
891
+
892
+ /*
893
+ * Class: org_sqlite_jni_capi_CApi
894
+ * Method: sqlite3_bind_nio_buffer
895
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;ILjava/nio/ByteBuffer;II)I
896
+ */
897
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1nio_1buffer
898
+ (JNIEnv *, jclass, jobject, jint, jobject, jint, jint);
899
+
900
+ /*
901
+ * Class: org_sqlite_jni_capi_CApi
902
+ * Method: sqlite3_bind_null
903
+ * Signature: (JI)I
904
+ */
905
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1null
906
+ (JNIEnv *, jclass, jlong, jint);
907
+
908
+ /*
909
+ * Class: org_sqlite_jni_capi_CApi
910
+ * Method: sqlite3_bind_parameter_count
911
+ * Signature: (J)I
912
+ */
913
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1parameter_1count
914
+ (JNIEnv *, jclass, jlong);
915
+
916
+ /*
917
+ * Class: org_sqlite_jni_capi_CApi
918
+ * Method: sqlite3_bind_parameter_index
919
+ * Signature: (J[B)I
920
+ */
921
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1parameter_1index
922
+ (JNIEnv *, jclass, jlong, jbyteArray);
923
+
924
+ /*
925
+ * Class: org_sqlite_jni_capi_CApi
926
+ * Method: sqlite3_bind_parameter_name
927
+ * Signature: (JI)Ljava/lang/String;
928
+ */
929
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1parameter_1name
930
+ (JNIEnv *, jclass, jlong, jint);
931
+
932
+ /*
933
+ * Class: org_sqlite_jni_capi_CApi
934
+ * Method: sqlite3_bind_text
935
+ * Signature: (JI[BI)I
936
+ */
937
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1text
938
+ (JNIEnv *, jclass, jlong, jint, jbyteArray, jint);
939
+
940
+ /*
941
+ * Class: org_sqlite_jni_capi_CApi
942
+ * Method: sqlite3_bind_text16
943
+ * Signature: (JI[BI)I
944
+ */
945
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1text16
946
+ (JNIEnv *, jclass, jlong, jint, jbyteArray, jint);
947
+
948
+ /*
949
+ * Class: org_sqlite_jni_capi_CApi
950
+ * Method: sqlite3_bind_value
951
+ * Signature: (JIJ)I
952
+ */
953
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1value
954
+ (JNIEnv *, jclass, jlong, jint, jlong);
955
+
956
+ /*
957
+ * Class: org_sqlite_jni_capi_CApi
958
+ * Method: sqlite3_bind_zeroblob
959
+ * Signature: (JII)I
960
+ */
961
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1zeroblob
962
+ (JNIEnv *, jclass, jlong, jint, jint);
963
+
964
+ /*
965
+ * Class: org_sqlite_jni_capi_CApi
966
+ * Method: sqlite3_bind_zeroblob64
967
+ * Signature: (JIJ)I
968
+ */
969
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1bind_1zeroblob64
970
+ (JNIEnv *, jclass, jlong, jint, jlong);
971
+
972
+ /*
973
+ * Class: org_sqlite_jni_capi_CApi
974
+ * Method: sqlite3_blob_bytes
975
+ * Signature: (J)I
976
+ */
977
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1bytes
978
+ (JNIEnv *, jclass, jlong);
979
+
980
+ /*
981
+ * Class: org_sqlite_jni_capi_CApi
982
+ * Method: sqlite3_blob_close
983
+ * Signature: (J)I
984
+ */
985
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1close
986
+ (JNIEnv *, jclass, jlong);
987
+
988
+ /*
989
+ * Class: org_sqlite_jni_capi_CApi
990
+ * Method: sqlite3_blob_open
991
+ * Signature: (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;JILorg/sqlite/jni/capi/OutputPointer/sqlite3_blob;)I
992
+ */
993
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1open
994
+ (JNIEnv *, jclass, jlong, jstring, jstring, jstring, jlong, jint, jobject);
995
+
996
+ /*
997
+ * Class: org_sqlite_jni_capi_CApi
998
+ * Method: sqlite3_blob_read
999
+ * Signature: (J[BI)I
1000
+ */
1001
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1read
1002
+ (JNIEnv *, jclass, jlong, jbyteArray, jint);
1003
+
1004
+ /*
1005
+ * Class: org_sqlite_jni_capi_CApi
1006
+ * Method: sqlite3_blob_read_nio_buffer
1007
+ * Signature: (JILjava/nio/ByteBuffer;II)I
1008
+ */
1009
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1read_1nio_1buffer
1010
+ (JNIEnv *, jclass, jlong, jint, jobject, jint, jint);
1011
+
1012
+ /*
1013
+ * Class: org_sqlite_jni_capi_CApi
1014
+ * Method: sqlite3_blob_reopen
1015
+ * Signature: (JJ)I
1016
+ */
1017
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1reopen
1018
+ (JNIEnv *, jclass, jlong, jlong);
1019
+
1020
+ /*
1021
+ * Class: org_sqlite_jni_capi_CApi
1022
+ * Method: sqlite3_blob_write
1023
+ * Signature: (J[BI)I
1024
+ */
1025
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1write
1026
+ (JNIEnv *, jclass, jlong, jbyteArray, jint);
1027
+
1028
+ /*
1029
+ * Class: org_sqlite_jni_capi_CApi
1030
+ * Method: sqlite3_blob_write_nio_buffer
1031
+ * Signature: (JILjava/nio/ByteBuffer;II)I
1032
+ */
1033
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1blob_1write_1nio_1buffer
1034
+ (JNIEnv *, jclass, jlong, jint, jobject, jint, jint);
1035
+
1036
+ /*
1037
+ * Class: org_sqlite_jni_capi_CApi
1038
+ * Method: sqlite3_busy_handler
1039
+ * Signature: (JLorg/sqlite/jni/capi/BusyHandlerCallback;)I
1040
+ */
1041
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1busy_1handler
1042
+ (JNIEnv *, jclass, jlong, jobject);
1043
+
1044
+ /*
1045
+ * Class: org_sqlite_jni_capi_CApi
1046
+ * Method: sqlite3_busy_timeout
1047
+ * Signature: (JI)I
1048
+ */
1049
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1busy_1timeout
1050
+ (JNIEnv *, jclass, jlong, jint);
1051
+
1052
+ /*
1053
+ * Class: org_sqlite_jni_capi_CApi
1054
+ * Method: sqlite3_cancel_auto_extension
1055
+ * Signature: (Lorg/sqlite/jni/capi/AutoExtensionCallback;)Z
1056
+ */
1057
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1cancel_1auto_1extension
1058
+ (JNIEnv *, jclass, jobject);
1059
+
1060
+ /*
1061
+ * Class: org_sqlite_jni_capi_CApi
1062
+ * Method: sqlite3_changes
1063
+ * Signature: (J)I
1064
+ */
1065
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1changes
1066
+ (JNIEnv *, jclass, jlong);
1067
+
1068
+ /*
1069
+ * Class: org_sqlite_jni_capi_CApi
1070
+ * Method: sqlite3_changes64
1071
+ * Signature: (J)J
1072
+ */
1073
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1changes64
1074
+ (JNIEnv *, jclass, jlong);
1075
+
1076
+ /*
1077
+ * Class: org_sqlite_jni_capi_CApi
1078
+ * Method: sqlite3_clear_bindings
1079
+ * Signature: (J)I
1080
+ */
1081
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1clear_1bindings
1082
+ (JNIEnv *, jclass, jlong);
1083
+
1084
+ /*
1085
+ * Class: org_sqlite_jni_capi_CApi
1086
+ * Method: sqlite3_close
1087
+ * Signature: (J)I
1088
+ */
1089
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1close
1090
+ (JNIEnv *, jclass, jlong);
1091
+
1092
+ /*
1093
+ * Class: org_sqlite_jni_capi_CApi
1094
+ * Method: sqlite3_close_v2
1095
+ * Signature: (J)I
1096
+ */
1097
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1close_1v2
1098
+ (JNIEnv *, jclass, jlong);
1099
+
1100
+ /*
1101
+ * Class: org_sqlite_jni_capi_CApi
1102
+ * Method: sqlite3_column_blob
1103
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)[B
1104
+ */
1105
+ JNIEXPORT jbyteArray JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1blob
1106
+ (JNIEnv *, jclass, jobject, jint);
1107
+
1108
+ /*
1109
+ * Class: org_sqlite_jni_capi_CApi
1110
+ * Method: sqlite3_column_bytes
1111
+ * Signature: (JI)I
1112
+ */
1113
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1bytes
1114
+ (JNIEnv *, jclass, jlong, jint);
1115
+
1116
+ /*
1117
+ * Class: org_sqlite_jni_capi_CApi
1118
+ * Method: sqlite3_column_bytes16
1119
+ * Signature: (JI)I
1120
+ */
1121
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1bytes16
1122
+ (JNIEnv *, jclass, jlong, jint);
1123
+
1124
+ /*
1125
+ * Class: org_sqlite_jni_capi_CApi
1126
+ * Method: sqlite3_column_count
1127
+ * Signature: (J)I
1128
+ */
1129
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1count
1130
+ (JNIEnv *, jclass, jlong);
1131
+
1132
+ /*
1133
+ * Class: org_sqlite_jni_capi_CApi
1134
+ * Method: sqlite3_column_database_name
1135
+ * Signature: (JI)Ljava/lang/String;
1136
+ */
1137
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1database_1name
1138
+ (JNIEnv *, jclass, jlong, jint);
1139
+
1140
+ /*
1141
+ * Class: org_sqlite_jni_capi_CApi
1142
+ * Method: sqlite3_column_decltype
1143
+ * Signature: (JI)Ljava/lang/String;
1144
+ */
1145
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1decltype
1146
+ (JNIEnv *, jclass, jlong, jint);
1147
+
1148
+ /*
1149
+ * Class: org_sqlite_jni_capi_CApi
1150
+ * Method: sqlite3_column_double
1151
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)D
1152
+ */
1153
+ JNIEXPORT jdouble JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1double
1154
+ (JNIEnv *, jclass, jobject, jint);
1155
+
1156
+ /*
1157
+ * Class: org_sqlite_jni_capi_CApi
1158
+ * Method: sqlite3_column_int
1159
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)I
1160
+ */
1161
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1int
1162
+ (JNIEnv *, jclass, jobject, jint);
1163
+
1164
+ /*
1165
+ * Class: org_sqlite_jni_capi_CApi
1166
+ * Method: sqlite3_column_int64
1167
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)J
1168
+ */
1169
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1int64
1170
+ (JNIEnv *, jclass, jobject, jint);
1171
+
1172
+ /*
1173
+ * Class: org_sqlite_jni_capi_CApi
1174
+ * Method: sqlite3_column_java_object
1175
+ * Signature: (JI)Ljava/lang/Object;
1176
+ */
1177
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1java_1object
1178
+ (JNIEnv *, jclass, jlong, jint);
1179
+
1180
+ /*
1181
+ * Class: org_sqlite_jni_capi_CApi
1182
+ * Method: sqlite3_column_name
1183
+ * Signature: (JI)Ljava/lang/String;
1184
+ */
1185
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1name
1186
+ (JNIEnv *, jclass, jlong, jint);
1187
+
1188
+ /*
1189
+ * Class: org_sqlite_jni_capi_CApi
1190
+ * Method: sqlite3_column_nio_buffer
1191
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)Ljava/nio/ByteBuffer;
1192
+ */
1193
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1nio_1buffer
1194
+ (JNIEnv *, jclass, jobject, jint);
1195
+
1196
+ /*
1197
+ * Class: org_sqlite_jni_capi_CApi
1198
+ * Method: sqlite3_column_origin_name
1199
+ * Signature: (JI)Ljava/lang/String;
1200
+ */
1201
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1origin_1name
1202
+ (JNIEnv *, jclass, jlong, jint);
1203
+
1204
+ /*
1205
+ * Class: org_sqlite_jni_capi_CApi
1206
+ * Method: sqlite3_column_table_name
1207
+ * Signature: (JI)Ljava/lang/String;
1208
+ */
1209
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1table_1name
1210
+ (JNIEnv *, jclass, jlong, jint);
1211
+
1212
+ /*
1213
+ * Class: org_sqlite_jni_capi_CApi
1214
+ * Method: sqlite3_column_text
1215
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)[B
1216
+ */
1217
+ JNIEXPORT jbyteArray JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1text
1218
+ (JNIEnv *, jclass, jobject, jint);
1219
+
1220
+ /*
1221
+ * Class: org_sqlite_jni_capi_CApi
1222
+ * Method: sqlite3_column_text16
1223
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)Ljava/lang/String;
1224
+ */
1225
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1text16
1226
+ (JNIEnv *, jclass, jobject, jint);
1227
+
1228
+ /*
1229
+ * Class: org_sqlite_jni_capi_CApi
1230
+ * Method: sqlite3_column_type
1231
+ * Signature: (JI)I
1232
+ */
1233
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1type
1234
+ (JNIEnv *, jclass, jlong, jint);
1235
+
1236
+ /*
1237
+ * Class: org_sqlite_jni_capi_CApi
1238
+ * Method: sqlite3_column_value
1239
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;I)Lorg/sqlite/jni/capi/sqlite3_value;
1240
+ */
1241
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1column_1value
1242
+ (JNIEnv *, jclass, jobject, jint);
1243
+
1244
+ /*
1245
+ * Class: org_sqlite_jni_capi_CApi
1246
+ * Method: sqlite3_collation_needed
1247
+ * Signature: (JLorg/sqlite/jni/capi/CollationNeededCallback;)I
1248
+ */
1249
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1collation_1needed
1250
+ (JNIEnv *, jclass, jlong, jobject);
1251
+
1252
+ /*
1253
+ * Class: org_sqlite_jni_capi_CApi
1254
+ * Method: sqlite3_commit_hook
1255
+ * Signature: (JLorg/sqlite/jni/capi/CommitHookCallback;)Lorg/sqlite/jni/capi/CommitHookCallback;
1256
+ */
1257
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1commit_1hook
1258
+ (JNIEnv *, jclass, jlong, jobject);
1259
+
1260
+ /*
1261
+ * Class: org_sqlite_jni_capi_CApi
1262
+ * Method: sqlite3_compileoption_get
1263
+ * Signature: (I)Ljava/lang/String;
1264
+ */
1265
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1compileoption_1get
1266
+ (JNIEnv *, jclass, jint);
1267
+
1268
+ /*
1269
+ * Class: org_sqlite_jni_capi_CApi
1270
+ * Method: sqlite3_compileoption_used
1271
+ * Signature: (Ljava/lang/String;)Z
1272
+ */
1273
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1compileoption_1used
1274
+ (JNIEnv *, jclass, jstring);
1275
+
1276
+ /*
1277
+ * Class: org_sqlite_jni_capi_CApi
1278
+ * Method: sqlite3_complete
1279
+ * Signature: ([B)I
1280
+ */
1281
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1complete
1282
+ (JNIEnv *, jclass, jbyteArray);
1283
+
1284
+ /*
1285
+ * Class: org_sqlite_jni_capi_CApi
1286
+ * Method: sqlite3_config__enable
1287
+ * Signature: (I)I
1288
+ */
1289
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1config_1_1enable
1290
+ (JNIEnv *, jclass, jint);
1291
+
1292
+ /*
1293
+ * Class: org_sqlite_jni_capi_CApi
1294
+ * Method: sqlite3_config__CONFIG_LOG
1295
+ * Signature: (Lorg/sqlite/jni/capi/ConfigLogCallback;)I
1296
+ */
1297
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1config_1_1CONFIG_1LOG
1298
+ (JNIEnv *, jclass, jobject);
1299
+
1300
+ /*
1301
+ * Class: org_sqlite_jni_capi_CApi
1302
+ * Method: sqlite3_config__SQLLOG
1303
+ * Signature: (Lorg/sqlite/jni/capi/ConfigSqlLogCallback;)I
1304
+ */
1305
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1config_1_1SQLLOG
1306
+ (JNIEnv *, jclass, jobject);
1307
+
1308
+ /*
1309
+ * Class: org_sqlite_jni_capi_CApi
1310
+ * Method: sqlite3_context_db_handle
1311
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;)Lorg/sqlite/jni/capi/sqlite3;
1312
+ */
1313
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1context_1db_1handle
1314
+ (JNIEnv *, jclass, jobject);
1315
+
1316
+ /*
1317
+ * Class: org_sqlite_jni_capi_CApi
1318
+ * Method: sqlite3_create_collation
1319
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;ILorg/sqlite/jni/capi/CollationCallback;)I
1320
+ */
1321
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1create_1collation
1322
+ (JNIEnv *, jclass, jobject, jstring, jint, jobject);
1323
+
1324
+ /*
1325
+ * Class: org_sqlite_jni_capi_CApi
1326
+ * Method: sqlite3_create_function
1327
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;IILorg/sqlite/jni/capi/SQLFunction;)I
1328
+ */
1329
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1create_1function
1330
+ (JNIEnv *, jclass, jobject, jstring, jint, jint, jobject);
1331
+
1332
+ /*
1333
+ * Class: org_sqlite_jni_capi_CApi
1334
+ * Method: sqlite3_data_count
1335
+ * Signature: (J)I
1336
+ */
1337
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1data_1count
1338
+ (JNIEnv *, jclass, jlong);
1339
+
1340
+ /*
1341
+ * Class: org_sqlite_jni_capi_CApi
1342
+ * Method: sqlite3_db_config
1343
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;IILorg/sqlite/jni/capi/OutputPointer/Int32;)I
1344
+ */
1345
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1config__Lorg_sqlite_jni_capi_sqlite3_2IILorg_sqlite_jni_capi_OutputPointer_Int32_2
1346
+ (JNIEnv *, jclass, jobject, jint, jint, jobject);
1347
+
1348
+ /*
1349
+ * Class: org_sqlite_jni_capi_CApi
1350
+ * Method: sqlite3_db_config
1351
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;ILjava/lang/String;)I
1352
+ */
1353
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1config__Lorg_sqlite_jni_capi_sqlite3_2ILjava_lang_String_2
1354
+ (JNIEnv *, jclass, jobject, jint, jstring);
1355
+
1356
+ /*
1357
+ * Class: org_sqlite_jni_capi_CApi
1358
+ * Method: sqlite3_db_name
1359
+ * Signature: (JI)Ljava/lang/String;
1360
+ */
1361
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1name
1362
+ (JNIEnv *, jclass, jlong, jint);
1363
+
1364
+ /*
1365
+ * Class: org_sqlite_jni_capi_CApi
1366
+ * Method: sqlite3_db_filename
1367
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;)Ljava/lang/String;
1368
+ */
1369
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1filename
1370
+ (JNIEnv *, jclass, jobject, jstring);
1371
+
1372
+ /*
1373
+ * Class: org_sqlite_jni_capi_CApi
1374
+ * Method: sqlite3_db_handle
1375
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Lorg/sqlite/jni/capi/sqlite3;
1376
+ */
1377
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1handle
1378
+ (JNIEnv *, jclass, jobject);
1379
+
1380
+ /*
1381
+ * Class: org_sqlite_jni_capi_CApi
1382
+ * Method: sqlite3_db_readonly
1383
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;)I
1384
+ */
1385
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1readonly
1386
+ (JNIEnv *, jclass, jobject, jstring);
1387
+
1388
+ /*
1389
+ * Class: org_sqlite_jni_capi_CApi
1390
+ * Method: sqlite3_db_release_memory
1391
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)I
1392
+ */
1393
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1release_1memory
1394
+ (JNIEnv *, jclass, jobject);
1395
+
1396
+ /*
1397
+ * Class: org_sqlite_jni_capi_CApi
1398
+ * Method: sqlite3_db_status
1399
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;ILorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;Z)I
1400
+ */
1401
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1db_1status
1402
+ (JNIEnv *, jclass, jobject, jint, jobject, jobject, jboolean);
1403
+
1404
+ /*
1405
+ * Class: org_sqlite_jni_capi_CApi
1406
+ * Method: sqlite3_errcode
1407
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)I
1408
+ */
1409
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1errcode
1410
+ (JNIEnv *, jclass, jobject);
1411
+
1412
+ /*
1413
+ * Class: org_sqlite_jni_capi_CApi
1414
+ * Method: sqlite3_errmsg
1415
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)Ljava/lang/String;
1416
+ */
1417
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1errmsg
1418
+ (JNIEnv *, jclass, jobject);
1419
+
1420
+ /*
1421
+ * Class: org_sqlite_jni_capi_CApi
1422
+ * Method: sqlite3_error_offset
1423
+ * Signature: (J)I
1424
+ */
1425
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1error_1offset
1426
+ (JNIEnv *, jclass, jlong);
1427
+
1428
+ /*
1429
+ * Class: org_sqlite_jni_capi_CApi
1430
+ * Method: sqlite3_errstr
1431
+ * Signature: (I)Ljava/lang/String;
1432
+ */
1433
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1errstr
1434
+ (JNIEnv *, jclass, jint);
1435
+
1436
+ /*
1437
+ * Class: org_sqlite_jni_capi_CApi
1438
+ * Method: sqlite3_expanded_sql
1439
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Ljava/lang/String;
1440
+ */
1441
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1expanded_1sql
1442
+ (JNIEnv *, jclass, jobject);
1443
+
1444
+ /*
1445
+ * Class: org_sqlite_jni_capi_CApi
1446
+ * Method: sqlite3_extended_errcode
1447
+ * Signature: (J)I
1448
+ */
1449
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1extended_1errcode
1450
+ (JNIEnv *, jclass, jlong);
1451
+
1452
+ /*
1453
+ * Class: org_sqlite_jni_capi_CApi
1454
+ * Method: sqlite3_extended_result_codes
1455
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Z)I
1456
+ */
1457
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1extended_1result_1codes
1458
+ (JNIEnv *, jclass, jobject, jboolean);
1459
+
1460
+ /*
1461
+ * Class: org_sqlite_jni_capi_CApi
1462
+ * Method: sqlite3_get_autocommit
1463
+ * Signature: (J)Z
1464
+ */
1465
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1get_1autocommit
1466
+ (JNIEnv *, jclass, jlong);
1467
+
1468
+ /*
1469
+ * Class: org_sqlite_jni_capi_CApi
1470
+ * Method: sqlite3_get_auxdata
1471
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;I)Ljava/lang/Object;
1472
+ */
1473
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1get_1auxdata
1474
+ (JNIEnv *, jclass, jobject, jint);
1475
+
1476
+ /*
1477
+ * Class: org_sqlite_jni_capi_CApi
1478
+ * Method: sqlite3_finalize
1479
+ * Signature: (J)I
1480
+ */
1481
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1finalize
1482
+ (JNIEnv *, jclass, jlong);
1483
+
1484
+ /*
1485
+ * Class: org_sqlite_jni_capi_CApi
1486
+ * Method: sqlite3_initialize
1487
+ * Signature: ()I
1488
+ */
1489
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1initialize
1490
+ (JNIEnv *, jclass);
1491
+
1492
+ /*
1493
+ * Class: org_sqlite_jni_capi_CApi
1494
+ * Method: sqlite3_interrupt
1495
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)V
1496
+ */
1497
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1interrupt
1498
+ (JNIEnv *, jclass, jobject);
1499
+
1500
+ /*
1501
+ * Class: org_sqlite_jni_capi_CApi
1502
+ * Method: sqlite3_is_interrupted
1503
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)Z
1504
+ */
1505
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1is_1interrupted
1506
+ (JNIEnv *, jclass, jobject);
1507
+
1508
+ /*
1509
+ * Class: org_sqlite_jni_capi_CApi
1510
+ * Method: sqlite3_keyword_check
1511
+ * Signature: (Ljava/lang/String;)Z
1512
+ */
1513
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1keyword_1check
1514
+ (JNIEnv *, jclass, jstring);
1515
+
1516
+ /*
1517
+ * Class: org_sqlite_jni_capi_CApi
1518
+ * Method: sqlite3_keyword_count
1519
+ * Signature: ()I
1520
+ */
1521
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1keyword_1count
1522
+ (JNIEnv *, jclass);
1523
+
1524
+ /*
1525
+ * Class: org_sqlite_jni_capi_CApi
1526
+ * Method: sqlite3_keyword_name
1527
+ * Signature: (I)Ljava/lang/String;
1528
+ */
1529
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1keyword_1name
1530
+ (JNIEnv *, jclass, jint);
1531
+
1532
+ /*
1533
+ * Class: org_sqlite_jni_capi_CApi
1534
+ * Method: sqlite3_last_insert_rowid
1535
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)J
1536
+ */
1537
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1last_1insert_1rowid
1538
+ (JNIEnv *, jclass, jobject);
1539
+
1540
+ /*
1541
+ * Class: org_sqlite_jni_capi_CApi
1542
+ * Method: sqlite3_libversion
1543
+ * Signature: ()Ljava/lang/String;
1544
+ */
1545
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1libversion
1546
+ (JNIEnv *, jclass);
1547
+
1548
+ /*
1549
+ * Class: org_sqlite_jni_capi_CApi
1550
+ * Method: sqlite3_libversion_number
1551
+ * Signature: ()I
1552
+ */
1553
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1libversion_1number
1554
+ (JNIEnv *, jclass);
1555
+
1556
+ /*
1557
+ * Class: org_sqlite_jni_capi_CApi
1558
+ * Method: sqlite3_limit
1559
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;II)I
1560
+ */
1561
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1limit
1562
+ (JNIEnv *, jclass, jobject, jint, jint);
1563
+
1564
+ /*
1565
+ * Class: org_sqlite_jni_capi_CApi
1566
+ * Method: sqlite3_normalized_sql
1567
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Ljava/lang/String;
1568
+ */
1569
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1normalized_1sql
1570
+ (JNIEnv *, jclass, jobject);
1571
+
1572
+ /*
1573
+ * Class: org_sqlite_jni_capi_CApi
1574
+ * Method: sqlite3_open
1575
+ * Signature: (Ljava/lang/String;Lorg/sqlite/jni/capi/OutputPointer/sqlite3;)I
1576
+ */
1577
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1open
1578
+ (JNIEnv *, jclass, jstring, jobject);
1579
+
1580
+ /*
1581
+ * Class: org_sqlite_jni_capi_CApi
1582
+ * Method: sqlite3_open_v2
1583
+ * Signature: (Ljava/lang/String;Lorg/sqlite/jni/capi/OutputPointer/sqlite3;ILjava/lang/String;)I
1584
+ */
1585
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1open_1v2
1586
+ (JNIEnv *, jclass, jstring, jobject, jint, jstring);
1587
+
1588
+ /*
1589
+ * Class: org_sqlite_jni_capi_CApi
1590
+ * Method: sqlite3_prepare
1591
+ * Signature: (J[BILorg/sqlite/jni/capi/OutputPointer/sqlite3_stmt;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
1592
+ */
1593
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1prepare
1594
+ (JNIEnv *, jclass, jlong, jbyteArray, jint, jobject, jobject);
1595
+
1596
+ /*
1597
+ * Class: org_sqlite_jni_capi_CApi
1598
+ * Method: sqlite3_prepare_v2
1599
+ * Signature: (J[BILorg/sqlite/jni/capi/OutputPointer/sqlite3_stmt;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
1600
+ */
1601
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1prepare_1v2
1602
+ (JNIEnv *, jclass, jlong, jbyteArray, jint, jobject, jobject);
1603
+
1604
+ /*
1605
+ * Class: org_sqlite_jni_capi_CApi
1606
+ * Method: sqlite3_prepare_v3
1607
+ * Signature: (J[BIILorg/sqlite/jni/capi/OutputPointer/sqlite3_stmt;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
1608
+ */
1609
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1prepare_1v3
1610
+ (JNIEnv *, jclass, jlong, jbyteArray, jint, jint, jobject, jobject);
1611
+
1612
+ /*
1613
+ * Class: org_sqlite_jni_capi_CApi
1614
+ * Method: sqlite3_preupdate_blobwrite
1615
+ * Signature: (J)I
1616
+ */
1617
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1blobwrite
1618
+ (JNIEnv *, jclass, jlong);
1619
+
1620
+ /*
1621
+ * Class: org_sqlite_jni_capi_CApi
1622
+ * Method: sqlite3_preupdate_count
1623
+ * Signature: (J)I
1624
+ */
1625
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1count
1626
+ (JNIEnv *, jclass, jlong);
1627
+
1628
+ /*
1629
+ * Class: org_sqlite_jni_capi_CApi
1630
+ * Method: sqlite3_preupdate_depth
1631
+ * Signature: (J)I
1632
+ */
1633
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1depth
1634
+ (JNIEnv *, jclass, jlong);
1635
+
1636
+ /*
1637
+ * Class: org_sqlite_jni_capi_CApi
1638
+ * Method: sqlite3_preupdate_hook
1639
+ * Signature: (JLorg/sqlite/jni/capi/PreupdateHookCallback;)Lorg/sqlite/jni/capi/PreupdateHookCallback;
1640
+ */
1641
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1hook
1642
+ (JNIEnv *, jclass, jlong, jobject);
1643
+
1644
+ /*
1645
+ * Class: org_sqlite_jni_capi_CApi
1646
+ * Method: sqlite3_preupdate_new
1647
+ * Signature: (JILorg/sqlite/jni/capi/OutputPointer/sqlite3_value;)I
1648
+ */
1649
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1new
1650
+ (JNIEnv *, jclass, jlong, jint, jobject);
1651
+
1652
+ /*
1653
+ * Class: org_sqlite_jni_capi_CApi
1654
+ * Method: sqlite3_preupdate_old
1655
+ * Signature: (JILorg/sqlite/jni/capi/OutputPointer/sqlite3_value;)I
1656
+ */
1657
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1preupdate_1old
1658
+ (JNIEnv *, jclass, jlong, jint, jobject);
1659
+
1660
+ /*
1661
+ * Class: org_sqlite_jni_capi_CApi
1662
+ * Method: sqlite3_progress_handler
1663
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;ILorg/sqlite/jni/capi/ProgressHandlerCallback;)V
1664
+ */
1665
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1progress_1handler
1666
+ (JNIEnv *, jclass, jobject, jint, jobject);
1667
+
1668
+ /*
1669
+ * Class: org_sqlite_jni_capi_CApi
1670
+ * Method: sqlite3_randomness
1671
+ * Signature: ([B)V
1672
+ */
1673
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1randomness
1674
+ (JNIEnv *, jclass, jbyteArray);
1675
+
1676
+ /*
1677
+ * Class: org_sqlite_jni_capi_CApi
1678
+ * Method: sqlite3_release_memory
1679
+ * Signature: (I)I
1680
+ */
1681
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1release_1memory
1682
+ (JNIEnv *, jclass, jint);
1683
+
1684
+ /*
1685
+ * Class: org_sqlite_jni_capi_CApi
1686
+ * Method: sqlite3_reset
1687
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)I
1688
+ */
1689
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1reset
1690
+ (JNIEnv *, jclass, jobject);
1691
+
1692
+ /*
1693
+ * Class: org_sqlite_jni_capi_CApi
1694
+ * Method: sqlite3_reset_auto_extension
1695
+ * Signature: ()V
1696
+ */
1697
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1reset_1auto_1extension
1698
+ (JNIEnv *, jclass);
1699
+
1700
+ /*
1701
+ * Class: org_sqlite_jni_capi_CApi
1702
+ * Method: sqlite3_result_double
1703
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;D)V
1704
+ */
1705
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1double
1706
+ (JNIEnv *, jclass, jobject, jdouble);
1707
+
1708
+ /*
1709
+ * Class: org_sqlite_jni_capi_CApi
1710
+ * Method: sqlite3_result_error
1711
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;[BI)V
1712
+ */
1713
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1error
1714
+ (JNIEnv *, jclass, jobject, jbyteArray, jint);
1715
+
1716
+ /*
1717
+ * Class: org_sqlite_jni_capi_CApi
1718
+ * Method: sqlite3_result_error_toobig
1719
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;)V
1720
+ */
1721
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1error_1toobig
1722
+ (JNIEnv *, jclass, jobject);
1723
+
1724
+ /*
1725
+ * Class: org_sqlite_jni_capi_CApi
1726
+ * Method: sqlite3_result_error_nomem
1727
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;)V
1728
+ */
1729
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1error_1nomem
1730
+ (JNIEnv *, jclass, jobject);
1731
+
1732
+ /*
1733
+ * Class: org_sqlite_jni_capi_CApi
1734
+ * Method: sqlite3_result_error_code
1735
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;I)V
1736
+ */
1737
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1error_1code
1738
+ (JNIEnv *, jclass, jobject, jint);
1739
+
1740
+ /*
1741
+ * Class: org_sqlite_jni_capi_CApi
1742
+ * Method: sqlite3_result_int
1743
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;I)V
1744
+ */
1745
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1int
1746
+ (JNIEnv *, jclass, jobject, jint);
1747
+
1748
+ /*
1749
+ * Class: org_sqlite_jni_capi_CApi
1750
+ * Method: sqlite3_result_int64
1751
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;J)V
1752
+ */
1753
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1int64
1754
+ (JNIEnv *, jclass, jobject, jlong);
1755
+
1756
+ /*
1757
+ * Class: org_sqlite_jni_capi_CApi
1758
+ * Method: sqlite3_result_java_object
1759
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;Ljava/lang/Object;)V
1760
+ */
1761
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1java_1object
1762
+ (JNIEnv *, jclass, jobject, jobject);
1763
+
1764
+ /*
1765
+ * Class: org_sqlite_jni_capi_CApi
1766
+ * Method: sqlite3_result_nio_buffer
1767
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;Ljava/nio/ByteBuffer;II)V
1768
+ */
1769
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1nio_1buffer
1770
+ (JNIEnv *, jclass, jobject, jobject, jint, jint);
1771
+
1772
+ /*
1773
+ * Class: org_sqlite_jni_capi_CApi
1774
+ * Method: sqlite3_result_null
1775
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;)V
1776
+ */
1777
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1null
1778
+ (JNIEnv *, jclass, jobject);
1779
+
1780
+ /*
1781
+ * Class: org_sqlite_jni_capi_CApi
1782
+ * Method: sqlite3_result_subtype
1783
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;I)V
1784
+ */
1785
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1subtype
1786
+ (JNIEnv *, jclass, jobject, jint);
1787
+
1788
+ /*
1789
+ * Class: org_sqlite_jni_capi_CApi
1790
+ * Method: sqlite3_result_value
1791
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;Lorg/sqlite/jni/capi/sqlite3_value;)V
1792
+ */
1793
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1value
1794
+ (JNIEnv *, jclass, jobject, jobject);
1795
+
1796
+ /*
1797
+ * Class: org_sqlite_jni_capi_CApi
1798
+ * Method: sqlite3_result_zeroblob
1799
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;I)V
1800
+ */
1801
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1zeroblob
1802
+ (JNIEnv *, jclass, jobject, jint);
1803
+
1804
+ /*
1805
+ * Class: org_sqlite_jni_capi_CApi
1806
+ * Method: sqlite3_result_zeroblob64
1807
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;J)I
1808
+ */
1809
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1zeroblob64
1810
+ (JNIEnv *, jclass, jobject, jlong);
1811
+
1812
+ /*
1813
+ * Class: org_sqlite_jni_capi_CApi
1814
+ * Method: sqlite3_result_blob
1815
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;[BI)V
1816
+ */
1817
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1blob
1818
+ (JNIEnv *, jclass, jobject, jbyteArray, jint);
1819
+
1820
+ /*
1821
+ * Class: org_sqlite_jni_capi_CApi
1822
+ * Method: sqlite3_result_blob64
1823
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;[BJ)V
1824
+ */
1825
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1blob64
1826
+ (JNIEnv *, jclass, jobject, jbyteArray, jlong);
1827
+
1828
+ /*
1829
+ * Class: org_sqlite_jni_capi_CApi
1830
+ * Method: sqlite3_result_text
1831
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;[BI)V
1832
+ */
1833
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1text
1834
+ (JNIEnv *, jclass, jobject, jbyteArray, jint);
1835
+
1836
+ /*
1837
+ * Class: org_sqlite_jni_capi_CApi
1838
+ * Method: sqlite3_result_text64
1839
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;[BJI)V
1840
+ */
1841
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1result_1text64
1842
+ (JNIEnv *, jclass, jobject, jbyteArray, jlong, jint);
1843
+
1844
+ /*
1845
+ * Class: org_sqlite_jni_capi_CApi
1846
+ * Method: sqlite3_rollback_hook
1847
+ * Signature: (JLorg/sqlite/jni/capi/RollbackHookCallback;)Lorg/sqlite/jni/capi/RollbackHookCallback;
1848
+ */
1849
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1rollback_1hook
1850
+ (JNIEnv *, jclass, jlong, jobject);
1851
+
1852
+ /*
1853
+ * Class: org_sqlite_jni_capi_CApi
1854
+ * Method: sqlite3_set_authorizer
1855
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Lorg/sqlite/jni/capi/AuthorizerCallback;)I
1856
+ */
1857
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1set_1authorizer
1858
+ (JNIEnv *, jclass, jobject, jobject);
1859
+
1860
+ /*
1861
+ * Class: org_sqlite_jni_capi_CApi
1862
+ * Method: sqlite3_set_auxdata
1863
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_context;ILjava/lang/Object;)V
1864
+ */
1865
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1set_1auxdata
1866
+ (JNIEnv *, jclass, jobject, jint, jobject);
1867
+
1868
+ /*
1869
+ * Class: org_sqlite_jni_capi_CApi
1870
+ * Method: sqlite3_set_last_insert_rowid
1871
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;J)V
1872
+ */
1873
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1set_1last_1insert_1rowid
1874
+ (JNIEnv *, jclass, jobject, jlong);
1875
+
1876
+ /*
1877
+ * Class: org_sqlite_jni_capi_CApi
1878
+ * Method: sqlite3_shutdown
1879
+ * Signature: ()I
1880
+ */
1881
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1shutdown
1882
+ (JNIEnv *, jclass);
1883
+
1884
+ /*
1885
+ * Class: org_sqlite_jni_capi_CApi
1886
+ * Method: sqlite3_sleep
1887
+ * Signature: (I)I
1888
+ */
1889
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1sleep
1890
+ (JNIEnv *, jclass, jint);
1891
+
1892
+ /*
1893
+ * Class: org_sqlite_jni_capi_CApi
1894
+ * Method: sqlite3_sourceid
1895
+ * Signature: ()Ljava/lang/String;
1896
+ */
1897
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1sourceid
1898
+ (JNIEnv *, jclass);
1899
+
1900
+ /*
1901
+ * Class: org_sqlite_jni_capi_CApi
1902
+ * Method: sqlite3_sql
1903
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Ljava/lang/String;
1904
+ */
1905
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1sql
1906
+ (JNIEnv *, jclass, jobject);
1907
+
1908
+ /*
1909
+ * Class: org_sqlite_jni_capi_CApi
1910
+ * Method: sqlite3_status
1911
+ * Signature: (ILorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;Z)I
1912
+ */
1913
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1status
1914
+ (JNIEnv *, jclass, jint, jobject, jobject, jboolean);
1915
+
1916
+ /*
1917
+ * Class: org_sqlite_jni_capi_CApi
1918
+ * Method: sqlite3_status64
1919
+ * Signature: (ILorg/sqlite/jni/capi/OutputPointer/Int64;Lorg/sqlite/jni/capi/OutputPointer/Int64;Z)I
1920
+ */
1921
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1status64
1922
+ (JNIEnv *, jclass, jint, jobject, jobject, jboolean);
1923
+
1924
+ /*
1925
+ * Class: org_sqlite_jni_capi_CApi
1926
+ * Method: sqlite3_step
1927
+ * Signature: (J)I
1928
+ */
1929
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1step
1930
+ (JNIEnv *, jclass, jlong);
1931
+
1932
+ /*
1933
+ * Class: org_sqlite_jni_capi_CApi
1934
+ * Method: sqlite3_stmt_busy
1935
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Z
1936
+ */
1937
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1stmt_1busy
1938
+ (JNIEnv *, jclass, jobject);
1939
+
1940
+ /*
1941
+ * Class: org_sqlite_jni_capi_CApi
1942
+ * Method: sqlite3_stmt_explain
1943
+ * Signature: (JI)I
1944
+ */
1945
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1stmt_1explain
1946
+ (JNIEnv *, jclass, jlong, jint);
1947
+
1948
+ /*
1949
+ * Class: org_sqlite_jni_capi_CApi
1950
+ * Method: sqlite3_stmt_isexplain
1951
+ * Signature: (J)I
1952
+ */
1953
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1stmt_1isexplain
1954
+ (JNIEnv *, jclass, jlong);
1955
+
1956
+ /*
1957
+ * Class: org_sqlite_jni_capi_CApi
1958
+ * Method: sqlite3_stmt_readonly
1959
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;)Z
1960
+ */
1961
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1stmt_1readonly
1962
+ (JNIEnv *, jclass, jobject);
1963
+
1964
+ /*
1965
+ * Class: org_sqlite_jni_capi_CApi
1966
+ * Method: sqlite3_stmt_status
1967
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_stmt;IZ)I
1968
+ */
1969
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1stmt_1status
1970
+ (JNIEnv *, jclass, jobject, jint, jboolean);
1971
+
1972
+ /*
1973
+ * Class: org_sqlite_jni_capi_CApi
1974
+ * Method: sqlite3_strglob
1975
+ * Signature: ([B[B)I
1976
+ */
1977
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1strglob
1978
+ (JNIEnv *, jclass, jbyteArray, jbyteArray);
1979
+
1980
+ /*
1981
+ * Class: org_sqlite_jni_capi_CApi
1982
+ * Method: sqlite3_strlike
1983
+ * Signature: ([B[BI)I
1984
+ */
1985
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1strlike
1986
+ (JNIEnv *, jclass, jbyteArray, jbyteArray, jint);
1987
+
1988
+ /*
1989
+ * Class: org_sqlite_jni_capi_CApi
1990
+ * Method: sqlite3_system_errno
1991
+ * Signature: (J)I
1992
+ */
1993
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1system_1errno
1994
+ (JNIEnv *, jclass, jlong);
1995
+
1996
+ /*
1997
+ * Class: org_sqlite_jni_capi_CApi
1998
+ * Method: sqlite3_table_column_metadata
1999
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/sqlite/jni/capi/OutputPointer/String;Lorg/sqlite/jni/capi/OutputPointer/String;Lorg/sqlite/jni/capi/OutputPointer/Bool;Lorg/sqlite/jni/capi/OutputPointer/Bool;Lorg/sqlite/jni/capi/OutputPointer/Bool;)I
2000
+ */
2001
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1table_1column_1metadata
2002
+ (JNIEnv *, jclass, jobject, jstring, jstring, jstring, jobject, jobject, jobject, jobject, jobject);
2003
+
2004
+ /*
2005
+ * Class: org_sqlite_jni_capi_CApi
2006
+ * Method: sqlite3_threadsafe
2007
+ * Signature: ()I
2008
+ */
2009
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1threadsafe
2010
+ (JNIEnv *, jclass);
2011
+
2012
+ /*
2013
+ * Class: org_sqlite_jni_capi_CApi
2014
+ * Method: sqlite3_total_changes
2015
+ * Signature: (J)I
2016
+ */
2017
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1total_1changes
2018
+ (JNIEnv *, jclass, jlong);
2019
+
2020
+ /*
2021
+ * Class: org_sqlite_jni_capi_CApi
2022
+ * Method: sqlite3_total_changes64
2023
+ * Signature: (J)J
2024
+ */
2025
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1total_1changes64
2026
+ (JNIEnv *, jclass, jlong);
2027
+
2028
+ /*
2029
+ * Class: org_sqlite_jni_capi_CApi
2030
+ * Method: sqlite3_trace_v2
2031
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;ILorg/sqlite/jni/capi/TraceV2Callback;)I
2032
+ */
2033
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1trace_1v2
2034
+ (JNIEnv *, jclass, jobject, jint, jobject);
2035
+
2036
+ /*
2037
+ * Class: org_sqlite_jni_capi_CApi
2038
+ * Method: sqlite3_txn_state
2039
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;Ljava/lang/String;)I
2040
+ */
2041
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1txn_1state
2042
+ (JNIEnv *, jclass, jobject, jstring);
2043
+
2044
+ /*
2045
+ * Class: org_sqlite_jni_capi_CApi
2046
+ * Method: sqlite3_update_hook
2047
+ * Signature: (JLorg/sqlite/jni/capi/UpdateHookCallback;)Lorg/sqlite/jni/capi/UpdateHookCallback;
2048
+ */
2049
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1update_1hook
2050
+ (JNIEnv *, jclass, jlong, jobject);
2051
+
2052
+ /*
2053
+ * Class: org_sqlite_jni_capi_CApi
2054
+ * Method: sqlite3_value_blob
2055
+ * Signature: (J)[B
2056
+ */
2057
+ JNIEXPORT jbyteArray JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1blob
2058
+ (JNIEnv *, jclass, jlong);
2059
+
2060
+ /*
2061
+ * Class: org_sqlite_jni_capi_CApi
2062
+ * Method: sqlite3_value_bytes
2063
+ * Signature: (J)I
2064
+ */
2065
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1bytes
2066
+ (JNIEnv *, jclass, jlong);
2067
+
2068
+ /*
2069
+ * Class: org_sqlite_jni_capi_CApi
2070
+ * Method: sqlite3_value_bytes16
2071
+ * Signature: (J)I
2072
+ */
2073
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1bytes16
2074
+ (JNIEnv *, jclass, jlong);
2075
+
2076
+ /*
2077
+ * Class: org_sqlite_jni_capi_CApi
2078
+ * Method: sqlite3_value_double
2079
+ * Signature: (J)D
2080
+ */
2081
+ JNIEXPORT jdouble JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1double
2082
+ (JNIEnv *, jclass, jlong);
2083
+
2084
+ /*
2085
+ * Class: org_sqlite_jni_capi_CApi
2086
+ * Method: sqlite3_value_dup
2087
+ * Signature: (J)Lorg/sqlite/jni/capi/sqlite3_value;
2088
+ */
2089
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1dup
2090
+ (JNIEnv *, jclass, jlong);
2091
+
2092
+ /*
2093
+ * Class: org_sqlite_jni_capi_CApi
2094
+ * Method: sqlite3_value_encoding
2095
+ * Signature: (J)I
2096
+ */
2097
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1encoding
2098
+ (JNIEnv *, jclass, jlong);
2099
+
2100
+ /*
2101
+ * Class: org_sqlite_jni_capi_CApi
2102
+ * Method: sqlite3_value_free
2103
+ * Signature: (J)V
2104
+ */
2105
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1free
2106
+ (JNIEnv *, jclass, jlong);
2107
+
2108
+ /*
2109
+ * Class: org_sqlite_jni_capi_CApi
2110
+ * Method: sqlite3_value_frombind
2111
+ * Signature: (J)Z
2112
+ */
2113
+ JNIEXPORT jboolean JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1frombind
2114
+ (JNIEnv *, jclass, jlong);
2115
+
2116
+ /*
2117
+ * Class: org_sqlite_jni_capi_CApi
2118
+ * Method: sqlite3_value_int
2119
+ * Signature: (J)I
2120
+ */
2121
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1int
2122
+ (JNIEnv *, jclass, jlong);
2123
+
2124
+ /*
2125
+ * Class: org_sqlite_jni_capi_CApi
2126
+ * Method: sqlite3_value_int64
2127
+ * Signature: (J)J
2128
+ */
2129
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1int64
2130
+ (JNIEnv *, jclass, jlong);
2131
+
2132
+ /*
2133
+ * Class: org_sqlite_jni_capi_CApi
2134
+ * Method: sqlite3_value_java_object
2135
+ * Signature: (J)Ljava/lang/Object;
2136
+ */
2137
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1java_1object
2138
+ (JNIEnv *, jclass, jlong);
2139
+
2140
+ /*
2141
+ * Class: org_sqlite_jni_capi_CApi
2142
+ * Method: sqlite3_value_nio_buffer
2143
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3_value;)Ljava/nio/ByteBuffer;
2144
+ */
2145
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1nio_1buffer
2146
+ (JNIEnv *, jclass, jobject);
2147
+
2148
+ /*
2149
+ * Class: org_sqlite_jni_capi_CApi
2150
+ * Method: sqlite3_value_nochange
2151
+ * Signature: (J)I
2152
+ */
2153
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1nochange
2154
+ (JNIEnv *, jclass, jlong);
2155
+
2156
+ /*
2157
+ * Class: org_sqlite_jni_capi_CApi
2158
+ * Method: sqlite3_value_numeric_type
2159
+ * Signature: (J)I
2160
+ */
2161
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1numeric_1type
2162
+ (JNIEnv *, jclass, jlong);
2163
+
2164
+ /*
2165
+ * Class: org_sqlite_jni_capi_CApi
2166
+ * Method: sqlite3_value_subtype
2167
+ * Signature: (J)I
2168
+ */
2169
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1subtype
2170
+ (JNIEnv *, jclass, jlong);
2171
+
2172
+ /*
2173
+ * Class: org_sqlite_jni_capi_CApi
2174
+ * Method: sqlite3_value_text
2175
+ * Signature: (J)[B
2176
+ */
2177
+ JNIEXPORT jbyteArray JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1text
2178
+ (JNIEnv *, jclass, jlong);
2179
+
2180
+ /*
2181
+ * Class: org_sqlite_jni_capi_CApi
2182
+ * Method: sqlite3_value_text16
2183
+ * Signature: (J)Ljava/lang/String;
2184
+ */
2185
+ JNIEXPORT jstring JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1text16
2186
+ (JNIEnv *, jclass, jlong);
2187
+
2188
+ /*
2189
+ * Class: org_sqlite_jni_capi_CApi
2190
+ * Method: sqlite3_value_type
2191
+ * Signature: (J)I
2192
+ */
2193
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1value_1type
2194
+ (JNIEnv *, jclass, jlong);
2195
+
2196
+ /*
2197
+ * Class: org_sqlite_jni_capi_CApi
2198
+ * Method: sqlite3_jni_internal_details
2199
+ * Signature: ()V
2200
+ */
2201
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_CApi_sqlite3_1jni_1internal_1details
2202
+ (JNIEnv *, jclass);
2203
+
2204
+ #ifdef __cplusplus
2205
+ }
2206
+ #endif
2207
+ #endif
2208
+ /* DO NOT EDIT THIS FILE - it is machine generated */
2209
+ #include <jni.h>
2210
+ /* Header for class org_sqlite_jni_capi_SQLTester */
2211
+
2212
+ #ifndef _Included_org_sqlite_jni_capi_SQLTester
2213
+ #define _Included_org_sqlite_jni_capi_SQLTester
2214
+ #ifdef __cplusplus
2215
+ extern "C" {
2216
+ #endif
2217
+ /*
2218
+ * Class: org_sqlite_jni_capi_SQLTester
2219
+ * Method: strglob
2220
+ * Signature: ([B[B)I
2221
+ */
2222
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_capi_SQLTester_strglob
2223
+ (JNIEnv *, jclass, jbyteArray, jbyteArray);
2224
+
2225
+ /*
2226
+ * Class: org_sqlite_jni_capi_SQLTester
2227
+ * Method: installCustomExtensions
2228
+ * Signature: ()V
2229
+ */
2230
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_capi_SQLTester_installCustomExtensions
2231
+ (JNIEnv *, jclass);
2232
+
2233
+ #ifdef __cplusplus
2234
+ }
2235
+ #endif
2236
+ #endif
2237
+ /* DO NOT EDIT THIS FILE - it is machine generated */
2238
+ #include <jni.h>
2239
+ /* Header for class org_sqlite_jni_fts5_Fts5ExtensionApi */
2240
+
2241
+ #ifndef _Included_org_sqlite_jni_fts5_Fts5ExtensionApi
2242
+ #define _Included_org_sqlite_jni_fts5_Fts5ExtensionApi
2243
+ #ifdef __cplusplus
2244
+ extern "C" {
2245
+ #endif
2246
+ /*
2247
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2248
+ * Method: getInstance
2249
+ * Signature: ()Lorg/sqlite/jni/fts5/Fts5ExtensionApi;
2250
+ */
2251
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_getInstance
2252
+ (JNIEnv *, jclass);
2253
+
2254
+ /*
2255
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2256
+ * Method: xColumnCount
2257
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;)I
2258
+ */
2259
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xColumnCount
2260
+ (JNIEnv *, jobject, jobject);
2261
+
2262
+ /*
2263
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2264
+ * Method: xColumnSize
2265
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/capi/OutputPointer/Int32;)I
2266
+ */
2267
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xColumnSize
2268
+ (JNIEnv *, jobject, jobject, jint, jobject);
2269
+
2270
+ /*
2271
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2272
+ * Method: xColumnText
2273
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/capi/OutputPointer/String;)I
2274
+ */
2275
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xColumnText
2276
+ (JNIEnv *, jobject, jobject, jint, jobject);
2277
+
2278
+ /*
2279
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2280
+ * Method: xColumnTotalSize
2281
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/capi/OutputPointer/Int64;)I
2282
+ */
2283
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xColumnTotalSize
2284
+ (JNIEnv *, jobject, jobject, jint, jobject);
2285
+
2286
+ /*
2287
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2288
+ * Method: xGetAuxdata
2289
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Z)Ljava/lang/Object;
2290
+ */
2291
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xGetAuxdata
2292
+ (JNIEnv *, jobject, jobject, jboolean);
2293
+
2294
+ /*
2295
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2296
+ * Method: xInst
2297
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
2298
+ */
2299
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xInst
2300
+ (JNIEnv *, jobject, jobject, jint, jobject, jobject, jobject);
2301
+
2302
+ /*
2303
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2304
+ * Method: xInstCount
2305
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
2306
+ */
2307
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xInstCount
2308
+ (JNIEnv *, jobject, jobject, jobject);
2309
+
2310
+ /*
2311
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2312
+ * Method: xPhraseCount
2313
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;)I
2314
+ */
2315
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseCount
2316
+ (JNIEnv *, jobject, jobject);
2317
+
2318
+ /*
2319
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2320
+ * Method: xPhraseFirst
2321
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/fts5/Fts5PhraseIter;Lorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
2322
+ */
2323
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseFirst
2324
+ (JNIEnv *, jobject, jobject, jint, jobject, jobject, jobject);
2325
+
2326
+ /*
2327
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2328
+ * Method: xPhraseFirstColumn
2329
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/fts5/Fts5PhraseIter;Lorg/sqlite/jni/capi/OutputPointer/Int32;)I
2330
+ */
2331
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseFirstColumn
2332
+ (JNIEnv *, jobject, jobject, jint, jobject, jobject);
2333
+
2334
+ /*
2335
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2336
+ * Method: xPhraseNext
2337
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Lorg/sqlite/jni/fts5/Fts5PhraseIter;Lorg/sqlite/jni/capi/OutputPointer/Int32;Lorg/sqlite/jni/capi/OutputPointer/Int32;)V
2338
+ */
2339
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseNext
2340
+ (JNIEnv *, jobject, jobject, jobject, jobject, jobject);
2341
+
2342
+ /*
2343
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2344
+ * Method: xPhraseNextColumn
2345
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Lorg/sqlite/jni/fts5/Fts5PhraseIter;Lorg/sqlite/jni/capi/OutputPointer/Int32;)V
2346
+ */
2347
+ JNIEXPORT void JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseNextColumn
2348
+ (JNIEnv *, jobject, jobject, jobject, jobject);
2349
+
2350
+ /*
2351
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2352
+ * Method: xPhraseSize
2353
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;I)I
2354
+ */
2355
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xPhraseSize
2356
+ (JNIEnv *, jobject, jobject, jint);
2357
+
2358
+ /*
2359
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2360
+ * Method: xQueryPhrase
2361
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;ILorg/sqlite/jni/fts5/Fts5ExtensionApi/XQueryPhraseCallback;)I
2362
+ */
2363
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xQueryPhrase
2364
+ (JNIEnv *, jobject, jobject, jint, jobject);
2365
+
2366
+ /*
2367
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2368
+ * Method: xRowCount
2369
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Lorg/sqlite/jni/capi/OutputPointer/Int64;)I
2370
+ */
2371
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xRowCount
2372
+ (JNIEnv *, jobject, jobject, jobject);
2373
+
2374
+ /*
2375
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2376
+ * Method: xRowid
2377
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;)J
2378
+ */
2379
+ JNIEXPORT jlong JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xRowid
2380
+ (JNIEnv *, jobject, jobject);
2381
+
2382
+ /*
2383
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2384
+ * Method: xSetAuxdata
2385
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;Ljava/lang/Object;)I
2386
+ */
2387
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xSetAuxdata
2388
+ (JNIEnv *, jobject, jobject, jobject);
2389
+
2390
+ /*
2391
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2392
+ * Method: xTokenize
2393
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;[BLorg/sqlite/jni/fts5/XTokenizeCallback;)I
2394
+ */
2395
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xTokenize
2396
+ (JNIEnv *, jobject, jobject, jbyteArray, jobject);
2397
+
2398
+ /*
2399
+ * Class: org_sqlite_jni_fts5_Fts5ExtensionApi
2400
+ * Method: xUserData
2401
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Context;)Ljava/lang/Object;
2402
+ */
2403
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_fts5_Fts5ExtensionApi_xUserData
2404
+ (JNIEnv *, jobject, jobject);
2405
+
2406
+ #ifdef __cplusplus
2407
+ }
2408
+ #endif
2409
+ #endif
2410
+ /* DO NOT EDIT THIS FILE - it is machine generated */
2411
+ #include <jni.h>
2412
+ /* Header for class org_sqlite_jni_fts5_fts5_api */
2413
+
2414
+ #ifndef _Included_org_sqlite_jni_fts5_fts5_api
2415
+ #define _Included_org_sqlite_jni_fts5_fts5_api
2416
+ #ifdef __cplusplus
2417
+ extern "C" {
2418
+ #endif
2419
+ #undef org_sqlite_jni_fts5_fts5_api_iVersion
2420
+ #define org_sqlite_jni_fts5_fts5_api_iVersion 2L
2421
+ /*
2422
+ * Class: org_sqlite_jni_fts5_fts5_api
2423
+ * Method: getInstanceForDb
2424
+ * Signature: (Lorg/sqlite/jni/capi/sqlite3;)Lorg/sqlite/jni/fts5/fts5_api;
2425
+ */
2426
+ JNIEXPORT jobject JNICALL Java_org_sqlite_jni_fts5_fts5_1api_getInstanceForDb
2427
+ (JNIEnv *, jclass, jobject);
2428
+
2429
+ /*
2430
+ * Class: org_sqlite_jni_fts5_fts5_api
2431
+ * Method: xCreateFunction
2432
+ * Signature: (Ljava/lang/String;Ljava/lang/Object;Lorg/sqlite/jni/fts5/fts5_extension_function;)I
2433
+ */
2434
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_fts5_1api_xCreateFunction
2435
+ (JNIEnv *, jobject, jstring, jobject, jobject);
2436
+
2437
+ #ifdef __cplusplus
2438
+ }
2439
+ #endif
2440
+ #endif
2441
+ /* DO NOT EDIT THIS FILE - it is machine generated */
2442
+ #include <jni.h>
2443
+ /* Header for class org_sqlite_jni_fts5_fts5_tokenizer */
2444
+
2445
+ #ifndef _Included_org_sqlite_jni_fts5_fts5_tokenizer
2446
+ #define _Included_org_sqlite_jni_fts5_fts5_tokenizer
2447
+ #ifdef __cplusplus
2448
+ extern "C" {
2449
+ #endif
2450
+ /*
2451
+ * Class: org_sqlite_jni_fts5_fts5_tokenizer
2452
+ * Method: xTokenize
2453
+ * Signature: (Lorg/sqlite/jni/fts5/Fts5Tokenizer;I[BLorg/sqlite/jni/fts5/XTokenizeCallback;)I
2454
+ */
2455
+ JNIEXPORT jint JNICALL Java_org_sqlite_jni_fts5_fts5_1tokenizer_xTokenize
2456
+ (JNIEnv *, jobject, jobject, jint, jbyteArray, jobject);
2457
+
2458
+ #ifdef __cplusplus
2459
+ }
2460
+ #endif
2461
+ #endif
local-test-sqlite3-delta-03/afc-sqlite3/ext/wasm/common/SqliteTestUtil.js ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ 2022-05-22
3
+
4
+ The author disclaims copyright to this source code. In place of a
5
+ legal notice, here is a blessing:
6
+
7
+ * May you do good and not evil.
8
+ * May you find forgiveness for yourself and forgive others.
9
+ * May you share freely, never taking more than you give.
10
+
11
+ ***********************************************************************
12
+
13
+ This file contains bootstrapping code used by various test scripts
14
+ which live in this file's directory.
15
+ */
16
+ 'use strict';
17
+ (function(self){
18
+ /* querySelectorAll() proxy */
19
+ const EAll = function(/*[element=document,] cssSelector*/){
20
+ return (arguments.length>1 ? arguments[0] : document)
21
+ .querySelectorAll(arguments[arguments.length-1]);
22
+ };
23
+ /* querySelector() proxy */
24
+ const E = function(/*[element=document,] cssSelector*/){
25
+ return (arguments.length>1 ? arguments[0] : document)
26
+ .querySelector(arguments[arguments.length-1]);
27
+ };
28
+
29
+ /**
30
+ Helpers for writing sqlite3-specific tests.
31
+ */
32
+ self.SqliteTestUtil = {
33
+ /** Running total of the number of tests run via
34
+ this API. */
35
+ counter: 0,
36
+ /**
37
+ If expr is a function, it is called and its result
38
+ is returned, coerced to a bool, else expr, coerced to
39
+ a bool, is returned.
40
+ */
41
+ toBool: function(expr){
42
+ return (expr instanceof Function) ? !!expr() : !!expr;
43
+ },
44
+ /** abort() if expr is false. If expr is a function, it
45
+ is called and its result is evaluated.
46
+ */
47
+ assert: function f(expr, msg){
48
+ if(!f._){
49
+ f._ = ('undefined'===typeof abort
50
+ ? (msg)=>{throw new Error(msg)}
51
+ : abort);
52
+ }
53
+ ++this.counter;
54
+ if(!this.toBool(expr)){
55
+ f._(msg || "Assertion failed.");
56
+ }
57
+ return this;
58
+ },
59
+ /** Identical to assert() but throws instead of calling
60
+ abort(). */
61
+ affirm: function(expr, msg){
62
+ ++this.counter;
63
+ if(!this.toBool(expr)) throw new Error(msg || "Affirmation failed.");
64
+ return this;
65
+ },
66
+ /** Calls f() and squelches any exception it throws. If it
67
+ does not throw, this function throws. */
68
+ mustThrow: function(f, msg){
69
+ ++this.counter;
70
+ let err;
71
+ try{ f(); } catch(e){err=e;}
72
+ if(!err) throw new Error(msg || "Expected exception.");
73
+ return this;
74
+ },
75
+ /**
76
+ Works like mustThrow() but expects filter to be a regex,
77
+ function, or string to match/filter the resulting exception
78
+ against. If f() does not throw, this test fails and an Error is
79
+ thrown. If filter is a regex, the test passes if
80
+ filter.test(error.message) passes. If it's a function, the test
81
+ passes if filter(error) returns truthy. If it's a string, the
82
+ test passes if the filter matches the exception message
83
+ precisely. In all other cases the test fails, throwing an
84
+ Error.
85
+
86
+ If it throws, msg is used as the error report unless it's falsy,
87
+ in which case a default is used.
88
+ */
89
+ mustThrowMatching: function(f, filter, msg){
90
+ ++this.counter;
91
+ let err;
92
+ try{ f(); } catch(e){err=e;}
93
+ if(!err) throw new Error(msg || "Expected exception.");
94
+ let pass = false;
95
+ if(filter instanceof RegExp) pass = filter.test(err.message);
96
+ else if(filter instanceof Function) pass = filter(err);
97
+ else if('string' === typeof filter) pass = (err.message === filter);
98
+ if(!pass){
99
+ throw new Error(msg || ("Filter rejected this exception: "+err.message));
100
+ }
101
+ return this;
102
+ },
103
+ /** Throws if expr is truthy or expr is a function and expr()
104
+ returns truthy. */
105
+ throwIf: function(expr, msg){
106
+ ++this.counter;
107
+ if(this.toBool(expr)) throw new Error(msg || "throwIf() failed");
108
+ return this;
109
+ },
110
+ /** Throws if expr is falsy or expr is a function and expr()
111
+ returns falsy. */
112
+ throwUnless: function(expr, msg){
113
+ ++this.counter;
114
+ if(!this.toBool(expr)) throw new Error(msg || "throwUnless() failed");
115
+ return this;
116
+ },
117
+
118
+ /**
119
+ Parses window.location.search-style string into an object
120
+ containing key/value pairs of URL arguments (already
121
+ urldecoded). The object is created using Object.create(null),
122
+ so contains only parsed-out properties and has no prototype
123
+ (and thus no inherited properties).
124
+
125
+ If the str argument is not passed (arguments.length==0) then
126
+ window.location.search.substring(1) is used by default. If
127
+ neither str is passed in nor window exists then false is returned.
128
+
129
+ On success it returns an Object containing the key/value pairs
130
+ parsed from the string. Keys which have no value are treated
131
+ has having the boolean true value.
132
+
133
+ Pedantic licensing note: this code has appeared in other source
134
+ trees, but was originally written by the same person who pasted
135
+ it into those trees.
136
+ */
137
+ processUrlArgs: function(str) {
138
+ if( 0 === arguments.length ) {
139
+ if( ('undefined' === typeof window) ||
140
+ !window.location ||
141
+ !window.location.search ) return false;
142
+ else str = (''+window.location.search).substring(1);
143
+ }
144
+ if( ! str ) return false;
145
+ str = (''+str).split(/#/,2)[0]; // remove #... to avoid it being added as part of the last value.
146
+ const args = Object.create(null);
147
+ const sp = str.split(/&+/);
148
+ const rx = /^([^=]+)(=(.+))?/;
149
+ var i, m;
150
+ for( i in sp ) {
151
+ m = rx.exec( sp[i] );
152
+ if( ! m ) continue;
153
+ args[decodeURIComponent(m[1])] = (m[3] ? decodeURIComponent(m[3]) : true);
154
+ }
155
+ return args;
156
+ }
157
+ };
158
+
159
+ /**
160
+ This is a module object for use with the emscripten-installed
161
+ sqlite3InitModule() factory function.
162
+ */
163
+ self.sqlite3TestModule = {
164
+ /**
165
+ Array of functions to call after Emscripten has initialized the
166
+ wasm module. Each gets passed the Emscripten module object
167
+ (which is _this_ object).
168
+ */
169
+ postRun: [
170
+ /* function(theModule){...} */
171
+ ],
172
+ //onRuntimeInitialized: function(){},
173
+ /* Proxy for C-side stdout output. */
174
+ print: (...args)=>{console.log(...args)},
175
+ /* Proxy for C-side stderr output. */
176
+ printErr: (...args)=>{console.error(...args)},
177
+ /**
178
+ Called by the Emscripten module init bits to report loading
179
+ progress. It gets passed an empty argument when loading is done
180
+ (after onRuntimeInitialized() and any this.postRun callbacks
181
+ have been run).
182
+ */
183
+ setStatus: function f(text){
184
+ if(!f.last){
185
+ f.last = { text: '', step: 0 };
186
+ f.ui = {
187
+ status: E('#module-status'),
188
+ progress: E('#module-progress'),
189
+ spinner: E('#module-spinner')
190
+ };
191
+ }
192
+ if(text === f.last.text) return;
193
+ f.last.text = text;
194
+ if(f.ui.progress){
195
+ f.ui.progress.value = f.last.step;
196
+ f.ui.progress.max = f.last.step + 1;
197
+ }
198
+ ++f.last.step;
199
+ if(text) {
200
+ f.ui.status.classList.remove('hidden');
201
+ f.ui.status.innerText = text;
202
+ }else{
203
+ if(f.ui.progress){
204
+ f.ui.progress.remove();
205
+ f.ui.spinner.remove();
206
+ delete f.ui.progress;
207
+ delete f.ui.spinner;
208
+ }
209
+ f.ui.status.classList.add('hidden');
210
+ }
211
+ },
212
+ /**
213
+ Config options used by the Emscripten-dependent initialization
214
+ which happens via this.initSqlite3(). This object gets
215
+ (indirectly) passed to sqlite3ApiBootstrap() to configure the
216
+ sqlite3 API.
217
+ */
218
+ sqlite3ApiConfig: {
219
+ wasmfsOpfsDir: "/opfs"
220
+ },
221
+ /**
222
+ Intended to be called by apps which need to call the
223
+ Emscripten-installed sqlite3InitModule() routine. This function
224
+ temporarily installs this.sqlite3ApiConfig into the self
225
+ object, calls it sqlite3InitModule(), and removes
226
+ self.sqlite3ApiConfig after initialization is done. Returns the
227
+ promise from sqlite3InitModule(), and the next then() handler
228
+ will get the sqlite3 API object as its argument.
229
+ */
230
+ initSqlite3: function(){
231
+ self.sqlite3ApiConfig = this.sqlite3ApiConfig;
232
+ return self.sqlite3InitModule(this).finally(()=>delete self.sqlite3ApiConfig);
233
+ }
234
+ };
235
+ })(self/*window or worker*/);
local-test-sqlite3-delta-03/afc-sqlite3/ext/wasm/tests/opfs/concurrency/index.html ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en-us">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
+ <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
7
+ <link rel="stylesheet" href="../../../common/testing.css"/>
8
+ <title>sqlite3 OPFS Worker concurrency tester</title>
9
+ <style>
10
+ body { display: revert; }
11
+ body > * {}
12
+ #test-output {
13
+ font-family: monospace;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <h1></h1>
19
+ <p>
20
+ OPFS concurrency tester using multiple independent Workers.
21
+ Disclaimer: concurrency in OPFS is currently a pain point!
22
+ </p>
23
+ <p>
24
+ URL flags: pass a number of workers using
25
+ the <code>workers=N</code> URL flag. Set the time between each
26
+ workload with <code>interval=N</code> (milliseconds). Set the
27
+ number of worker iterations with <code>iterations=N</code>.
28
+ Enable OPFS VFS verbosity with <code>verbose=1-3</code> (output
29
+ goes to the dev console). Disable/enable "unlock ASAP" mode
30
+ (higher concurrency, lower speed) with <code>unlock-asap=0-1</code>.
31
+ </p>
32
+ <p>Achtung: if it does not start to do anything within a couple of
33
+ seconds, check the dev console: Chrome sometimes fails to load
34
+ the wasm module due to "cannot allocate WasmMemory." Closing and
35
+ re-opening the tab usually resolves it, but sometimes restarting
36
+ the browser is required.
37
+ </p>
38
+ <p>
39
+ Links for various testing options: <ul id='testlinks'></ul>
40
+ </p>
41
+ <div class='input-wrapper'>
42
+ <input type='checkbox' id='cb-log-reverse'>
43
+ <label for='cb-log-reverse'>Reverse log order?</label>
44
+ </div>
45
+ <div id='test-output'></div>
46
+ <script>(function(){
47
+ document.querySelector('h1').innerHTML =
48
+ document.querySelector('title').innerHTML;
49
+ })();</script>
50
+ <script src="test.js?sqlite3.dir=../../../jswasm"></script>
51
+ </body>
52
+ </html>
local-test-sqlite3-delta-03/afc-sqlite3/ext/wasm/tests/opfs/concurrency/test.js ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (async function(self){
2
+
3
+ const logCss = (function(){
4
+ const mapToString = (v)=>{
5
+ switch(typeof v){
6
+ case 'number': case 'string': case 'boolean':
7
+ case 'undefined': case 'bigint':
8
+ return ''+v;
9
+ default: break;
10
+ }
11
+ if(null===v) return 'null';
12
+ if(v instanceof Error){
13
+ v = {
14
+ message: v.message,
15
+ stack: v.stack,
16
+ errorClass: v.name
17
+ };
18
+ }
19
+ return JSON.stringify(v,undefined,2);
20
+ };
21
+ const normalizeArgs = (args)=>args.map(mapToString);
22
+ const logTarget = document.querySelector('#test-output');
23
+ const logCss = function(cssClass,...args){
24
+ const ln = document.createElement('div');
25
+ if(cssClass){
26
+ for(const c of (Array.isArray(cssClass) ? cssClass : [cssClass])){
27
+ ln.classList.add(c);
28
+ }
29
+ }
30
+ ln.append(document.createTextNode(normalizeArgs(args).join(' ')));
31
+ logTarget.append(ln);
32
+ };
33
+ const cbReverse = document.querySelector('#cb-log-reverse');
34
+ const cbReverseKey = 'tester1:cb-log-reverse';
35
+ const cbReverseIt = ()=>{
36
+ logTarget.classList[cbReverse.checked ? 'add' : 'remove']('reverse');
37
+ localStorage.setItem(cbReverseKey, cbReverse.checked ? 1 : 0);
38
+ };
39
+ cbReverse.addEventListener('change', cbReverseIt, true);
40
+ if(localStorage.getItem(cbReverseKey)){
41
+ cbReverse.checked = !!(+localStorage.getItem(cbReverseKey));
42
+ }
43
+ cbReverseIt();
44
+ return logCss;
45
+ })();
46
+ const stdout = (...args)=>logCss('',...args);
47
+ const stderr = (...args)=>logCss('error',...args);
48
+
49
+ const wait = async (ms)=>{
50
+ return new Promise((resolve)=>setTimeout(resolve,ms));
51
+ };
52
+
53
+ const urlArgsJs = new URL(document.currentScript.src).searchParams;
54
+ const urlArgsHtml = new URL(self.location.href).searchParams;
55
+ const options = Object.create(null);
56
+ options.sqlite3Dir = urlArgsJs.get('sqlite3.dir');
57
+ options.workerCount = (
58
+ urlArgsHtml.has('workers') ? +urlArgsHtml.get('workers') : 3
59
+ ) || 4;
60
+ options.opfsVerbose = (
61
+ urlArgsHtml.has('verbose') ? +urlArgsHtml.get('verbose') : 1
62
+ ) || 1;
63
+ options.interval = (
64
+ urlArgsHtml.has('interval') ? +urlArgsHtml.get('interval') : 1000
65
+ ) || 1000;
66
+ options.iterations = (
67
+ urlArgsHtml.has('iterations') ? +urlArgsHtml.get('iterations') : 10
68
+ ) || 10;
69
+ options.unlockAsap = (
70
+ urlArgsHtml.has('unlock-asap') ? +urlArgsHtml.get('unlock-asap') : 0
71
+ ) || 0;
72
+ options.noUnlink = !!urlArgsHtml.has('no-unlink');
73
+ const workers = [];
74
+ workers.post = (type,...args)=>{
75
+ for(const w of workers) w.postMessage({type, payload:args});
76
+ };
77
+ workers.counts = {loaded: 0, passed: 0, failed: 0};
78
+ const checkFinished = function(){
79
+ if(workers.counts.passed + workers.counts.failed !== workers.length){
80
+ return;
81
+ }
82
+ if(workers.counts.failed>0){
83
+ logCss('tests-fail',"Finished with",workers.counts.failed,"failure(s).");
84
+ }else{
85
+ logCss('tests-pass',"All",workers.length,"workers finished.");
86
+ }
87
+ };
88
+ workers.onmessage = function(msg){
89
+ msg = msg.data;
90
+ const prefix = 'Worker #'+msg.worker+':';
91
+ switch(msg.type){
92
+ case 'loaded':
93
+ stdout(prefix,"loaded");
94
+ if(++workers.counts.loaded === workers.length){
95
+ stdout("All",workers.length,"workers loaded. Telling them to run...");
96
+ workers.post('run');
97
+ }
98
+ break;
99
+ case 'stdout': stdout(prefix,...msg.payload); break;
100
+ case 'stderr': stderr(prefix,...msg.payload); break;
101
+ case 'error': stderr(prefix,"ERROR:",...msg.payload); break;
102
+ case 'finished':
103
+ ++workers.counts.passed;
104
+ logCss('tests-pass',prefix,...msg.payload);
105
+ checkFinished();
106
+ break;
107
+ case 'failed':
108
+ ++workers.counts.failed;
109
+ logCss('tests-fail',prefix,"FAILED:",...msg.payload);
110
+ checkFinished();
111
+ break;
112
+ default: logCss('error',"Unhandled message type:",msg); break;
113
+ }
114
+ };
115
+
116
+ /* Set up links to launch this tool with various combinations of
117
+ flags... */
118
+ const eTestLinks = document.querySelector('#testlinks');
119
+ const optArgs = function(obj){
120
+ const li = [];
121
+ for(const k of ['interval','iterations','workers','verbose','unlock-asap']){
122
+ if( obj.hasOwnProperty(k) ) li.push(k+'='+obj[k]);
123
+ }
124
+ return li.join('&');
125
+ };
126
+ for(const opt of [
127
+ {interval: 1000, workers: 5, iterations: 30},
128
+ {interval: 500, workers: 5, iterations: 30},
129
+ {interval: 250, workers: 3, iterations: 30},
130
+ {interval: 600, workers: 5, iterations: 100}
131
+ ]){
132
+ const li = document.createElement('li');
133
+ eTestLinks.appendChild(li);
134
+ const a = document.createElement('a');
135
+ li.appendChild(a);
136
+ const args = optArgs(opt);
137
+ a.setAttribute('href', '?'+args);
138
+ a.innerText = args;
139
+ }
140
+
141
+ stdout("Launching",options.workerCount,"workers. Options:",options);
142
+ workers.uri = (
143
+ 'worker.js?'
144
+ + 'sqlite3.dir='+options.sqlite3Dir
145
+ + '&interval='+options.interval
146
+ + '&iterations='+options.iterations
147
+ + '&opfs-verbose='+options.opfsVerbose
148
+ + '&opfs-unlock-asap='+options.unlockAsap
149
+ );
150
+ for(let i = 0; i < options.workerCount; ++i){
151
+ stdout("Launching worker...");
152
+ workers.push(new Worker(
153
+ workers.uri+'&workerId='+(i+1)+(
154
+ (i || options.noUnlink) ? '' : '&unlink-db'
155
+ )
156
+ ));
157
+ }
158
+ // Have to delay onmessage assignment until after the loop
159
+ // to avoid that early workers get an undue head start.
160
+ workers.forEach((w)=>w.onmessage = workers.onmessage);
161
+ })(self);
local-test-sqlite3-delta-03/afc-sqlite3/ext/wasm/tests/opfs/concurrency/worker.js ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ importScripts(
2
+ (new URL(self.location.href).searchParams).get('sqlite3.dir') + '/sqlite3.js'
3
+ );
4
+ self.sqlite3InitModule().then(async function(sqlite3){
5
+ const urlArgs = new URL(self.location.href).searchParams;
6
+ const options = {
7
+ workerName: urlArgs.get('workerId') || Math.round(Math.random()*10000),
8
+ unlockAsap: urlArgs.get('opfs-unlock-asap') || 0 /*EXPERIMENTAL*/
9
+ };
10
+ const wPost = (type,...payload)=>{
11
+ postMessage({type, worker: options.workerName, payload});
12
+ };
13
+ const stdout = (...args)=>wPost('stdout',...args);
14
+ const stderr = (...args)=>wPost('stderr',...args);
15
+ if(!sqlite3.opfs){
16
+ stderr("OPFS support not detected. Aborting.");
17
+ return;
18
+ }
19
+
20
+ const wait = async (ms)=>{
21
+ return new Promise((resolve)=>setTimeout(resolve,ms));
22
+ };
23
+
24
+ const dbName = 'concurrency-tester.db';
25
+ if(urlArgs.has('unlink-db')){
26
+ await sqlite3.opfs.unlink(dbName);
27
+ stdout("Unlinked",dbName);
28
+ }
29
+ wPost('loaded');
30
+ let db;
31
+ const interval = Object.assign(Object.create(null),{
32
+ delay: urlArgs.has('interval') ? (+urlArgs.get('interval') || 750) : 750,
33
+ handle: undefined,
34
+ count: 0
35
+ });
36
+ const finish = ()=>{
37
+ if(db){
38
+ if(!db.pointer) return;
39
+ db.close();
40
+ }
41
+ if(interval.error){
42
+ wPost('failed',"Ending work after interval #"+interval.count,
43
+ "due to error:",interval.error);
44
+ }else{
45
+ wPost('finished',"Ending work after",interval.count,"intervals.");
46
+ }
47
+ };
48
+ const run = async function(){
49
+ db = new sqlite3.oo1.OpfsDb({
50
+ filename: 'file:'+dbName+'?opfs-unlock-asap='+options.unlockAsap,
51
+ flags: 'c'
52
+ });
53
+ sqlite3.capi.sqlite3_busy_timeout(db.pointer, 5000);
54
+ db.transaction((db)=>{
55
+ db.exec([
56
+ "create table if not exists t1(w TEXT UNIQUE ON CONFLICT REPLACE,v);",
57
+ "create table if not exists t2(w TEXT UNIQUE ON CONFLICT REPLACE,v);"
58
+ ]);
59
+ });
60
+
61
+ const maxIterations =
62
+ urlArgs.has('iterations') ? (+urlArgs.get('iterations') || 10) : 10;
63
+ stdout("Starting interval-based db updates with delay of",interval.delay,"ms.");
64
+ const doWork = async ()=>{
65
+ const tm = new Date().getTime();
66
+ ++interval.count;
67
+ const prefix = "v(#"+interval.count+")";
68
+ stdout("Setting",prefix,"=",tm);
69
+ try{
70
+ db.exec({
71
+ sql:"INSERT OR REPLACE INTO t1(w,v) VALUES(?,?)",
72
+ bind: [options.workerName, new Date().getTime()]
73
+ });
74
+ //stdout("Set",prefix);
75
+ }catch(e){
76
+ interval.error = e;
77
+ }
78
+ };
79
+ if(1){/*use setInterval()*/
80
+ setTimeout(async function timer(){
81
+ await doWork();
82
+ if(interval.error || maxIterations === interval.count){
83
+ finish();
84
+ }else{
85
+ setTimeout(timer, interval.delay);
86
+ }
87
+ }, interval.delay);
88
+ }else{
89
+ /*This approach provides no concurrency whatsoever: each worker
90
+ is run to completion before any others can work.*/
91
+ let i;
92
+ for(i = 0; i < maxIterations; ++i){
93
+ await doWork();
94
+ if(interval.error) break;
95
+ await wait(interval.ms);
96
+ }
97
+ finish();
98
+ }
99
+ }/*run()*/;
100
+
101
+ self.onmessage = function({data}){
102
+ switch(data.type){
103
+ case 'run': run().catch((e)=>{
104
+ if(!interval.error) interval.error = e;
105
+ finish();
106
+ });
107
+ break;
108
+ default:
109
+ stderr("Unhandled message type '"+data.type+"'.");
110
+ break;
111
+ }
112
+ };
113
+ });
local-test-sqlite3-delta-03/fuzz-tooling/docs/404.html ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <style type="text/css" media="screen">
6
+ .container {
7
+ margin: 10px auto;
8
+ max-width: 600px;
9
+ text-align: center;
10
+ }
11
+ h1 {
12
+ margin: 30px 0;
13
+ font-size: 4em;
14
+ line-height: 1;
15
+ letter-spacing: -1px;
16
+ }
17
+ </style>
18
+
19
+ <div class="container">
20
+ <h1>404</h1>
21
+
22
+ <p><strong>Page not found :(</strong></p>
23
+ </div>
local-test-sqlite3-delta-03/fuzz-tooling/docs/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Readme
2
+
3
+ Use the following instructions to make documentation changes locally.
4
+
5
+ ## Prerequisites
6
+ ```bash
7
+ $ sudo apt install ruby bundler
8
+ $ bundle config set path 'vendor/bundle'
9
+ $ bundle install
10
+ ```
11
+
12
+ ## Serving locally
13
+ ```bash
14
+ $ bundle exec jekyll serve
15
+ ```
16
+
17
+ ## Theme documentation
18
+ We are using the [just the docs](https://just-the-docs.github.io/just-the-docs/)
19
+ theme.
local-test-sqlite3-delta-03/fuzz-tooling/docs/favicon.ico ADDED
local-test-sqlite3-delta-03/fuzz-tooling/docs/glossary.md ADDED
@@ -0,0 +1 @@
 
 
1
+ This page has moved [here](https://google.github.io/oss-fuzz/reference/glossary/)
local-test-sqlite3-delta-03/fuzz-tooling/docs/index.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ layout: default
3
+ title: OSS-Fuzz
4
+ permalink: /
5
+ nav_order: 1
6
+ has_children: true
7
+ has_toc: false
8
+ ---
9
+
10
+ # OSS-Fuzz
11
+
12
+ [Fuzz testing] is a well-known technique for uncovering programming errors in
13
+ software. Many of these detectable errors, like [buffer overflow], can have
14
+ serious security implications. Google has found [thousands] of security
15
+ vulnerabilities and stability bugs by deploying [guided in-process fuzzing of
16
+ Chrome components], and we now want to share that service with the open source
17
+ community.
18
+
19
+ [Fuzz testing]: https://en.wikipedia.org/wiki/Fuzz_testing
20
+ [buffer overflow]: https://en.wikipedia.org/wiki/Buffer_overflow
21
+ [thousands]: https://bugs.chromium.org/p/chromium/issues/list?q=label%3AStability-LibFuzzer%2CStability-AFL%20-status%3ADuplicate%2CWontFix&can=1
22
+ [guided in-process fuzzing of Chrome components]: https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html
23
+
24
+ In cooperation with the [Core Infrastructure Initiative] and the [OpenSSF],
25
+ OSS-Fuzz aims to make common open source software more secure and stable by
26
+ combining modern fuzzing techniques with scalable, distributed execution.
27
+ Projects that do not qualify for OSS-Fuzz (e.g. closed source) can run their own
28
+ instances of [ClusterFuzz] or [ClusterFuzzLite].
29
+
30
+ [Core Infrastructure Initiative]: https://www.coreinfrastructure.org/
31
+ [OpenSSF]: https://www.openssf.org/
32
+
33
+ We support the [libFuzzer], [AFL++], [Honggfuzz], and [Centipede] fuzzing engines in
34
+ combination with [Sanitizers], as well as [ClusterFuzz], a distributed fuzzer
35
+ execution environment and reporting tool.
36
+
37
+ [libFuzzer]: https://llvm.org/docs/LibFuzzer.html
38
+ [AFL++]: https://github.com/AFLplusplus/AFLplusplus
39
+ [Honggfuzz]: https://github.com/google/honggfuzz
40
+ [Centipede]: https://github.com/google/centipede
41
+ [Sanitizers]: https://github.com/google/sanitizers
42
+ [ClusterFuzz]: https://github.com/google/clusterfuzz
43
+ [ClusterFuzzLite]: https://google.github.io/clusterfuzzlite/
44
+
45
+ Currently, OSS-Fuzz supports C/C++, Rust, Go, Python and Java/JVM code. Other
46
+ languages supported by [LLVM] may work too. OSS-Fuzz supports fuzzing x86_64
47
+ and i386 builds.
48
+
49
+ [LLVM]: https://llvm.org
50
+
51
+
52
+ ## Project history
53
+ OSS-Fuzz was launched in 2016 in response to the
54
+ [Heartbleed] vulnerability, discovered in [OpenSSL], one of the
55
+ most popular open source projects for encrypting web traffic. The vulnerability
56
+ had the potential to affect almost every internet user, yet was caused by a
57
+ relatively simple memory buffer overflow bug that could have been detected by
58
+ fuzzing—that is, by running the code on randomized inputs to intentionally cause
59
+ unexpected behaviors or crashes. At the time, though, fuzzing
60
+ was not widely used and was cumbersome for developers, requiring extensive
61
+ manual effort.
62
+
63
+ Google created OSS-Fuzz to fill this gap: it's a free service that runs fuzzers
64
+ for open source projects and privately alerts developers to the bugs detected.
65
+ Since its launch, OSS-Fuzz has become a critical service for the open source
66
+ community, growing beyond C/C++ to
67
+ detect problems in memory-safe languages such as Go, Rust, and Python.
68
+
69
+ [Heartbleed]: https://heartbleed.com/
70
+ [OpenSSL]: https://www.openssl.org/
71
+
72
+ ## Learn more about fuzzing
73
+
74
+ This documentation describes how to use OSS-Fuzz service for your open source
75
+ project. To learn more about fuzzing in general, we recommend reading [libFuzzer
76
+ tutorial] and the other docs in [google/fuzzing] repository. These and some
77
+ other resources are listed on the [useful links] page.
78
+
79
+ [google/fuzzing]: https://github.com/google/fuzzing/tree/master/docs
80
+ [libFuzzer tutorial]: https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md
81
+ [useful links]: {{ site.baseurl }}/reference/useful-links/#tutorials
82
+
83
+ ## Trophies
84
+ As of August 2023, OSS-Fuzz has helped identify and fix over [10,000] vulnerabilities and [36,000] bugs across [1,000] projects.
85
+
86
+ [10,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug-Security%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
87
+ [36,000]: https://bugs.chromium.org/p/oss-fuzz/issues/list?q=Type%3DBug%20label%3Aclusterfuzz%20-status%3ADuplicate%2CWontFix&can=1
88
+ [1,000]: https://github.com/google/oss-fuzz/tree/master/projects
local-test-sqlite3-delta-03/fuzz-tooling/docs/reproducing.md ADDED
@@ -0,0 +1 @@
 
 
1
+ This page has moved [here](https://google.github.io/oss-fuzz/advanced-topics/reproducing)
local-test-sqlite3-delta-03/fuzz-tooling/infra/README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # infra
2
+ > OSS-Fuzz project infrastructure
3
+
4
+ Core infrastructure:
5
+ * [`base-images`](base-images/) - docker images for building fuzz targets & corresponding jenkins
6
+ pipeline.
7
+
8
+ Continuous Integration infrastructure:
9
+
10
+ * [`ci`](ci/) - script to build projects in CI.
11
+
12
+ ## helper.py
13
+ > script to automate common docker operations
14
+
15
+ | Command | Description |
16
+ |---------|-------------
17
+ | `generate` | Generates skeleton files for a new project |
18
+ | `build_image` | Builds a docker image for a given project |
19
+ | `build_fuzzers` | Builds fuzz targets for a given project |
20
+ | `run_fuzzer` | Runs a fuzz target in a docker container |
21
+ | `coverage` | Runs fuzz target(s) in a docker container and generates a code coverage report. See [Code Coverage doc](https://google.github.io/oss-fuzz/advanced-topics/code-coverage/) |
22
+ | `reproduce` | Runs a testcase to reproduce a crash |
23
+ | `shell` | Starts a shell inside the docker image for a project |
local-test-sqlite3-delta-03/fuzz-tooling/infra/__pycache__/constants.cpython-312.pyc ADDED
Binary file (802 Bytes). View file
 
local-test-sqlite3-delta-03/fuzz-tooling/infra/base-images/all.sh ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash -eux
2
+ # Copyright 2016 Google Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ ################################################################################
17
+
18
+ docker build --pull -t ghcr.io/aixcc-finals/base-image "$@" infra/base-images/base-image
19
+ docker build -t ghcr.io/aixcc-finals/base-clang "$@" infra/base-images/base-clang
20
+ docker build -t ghcr.io/aixcc-finals/base-builder "$@" infra/base-images/base-builder
21
+ docker build -t ghcr.io/aixcc-finals/base-builder-go "$@" infra/base-images/base-builder-go
22
+ docker build -t ghcr.io/aixcc-finals/base-builder-jvm "$@" infra/base-images/base-builder-jvm
23
+ docker build -t ghcr.io/aixcc-finals/base-builder-python "$@" infra/base-images/base-builder-python
24
+ docker build -t ghcr.io/aixcc-finals/base-builder-rust "$@" infra/base-images/base-builder-rust
25
+ docker build -t ghcr.io/aixcc-finals/base-builder-ruby "$@" infra/base-images/base-builder-ruby
26
+ docker build -t ghcr.io/aixcc-finals/base-builder-swift "$@" infra/base-images/base-builder-swift
27
+ docker build -t ghcr.io/aixcc-finals/base-runner "$@" infra/base-images/base-runner
28
+ docker build -t ghcr.io/aixcc-finals/base-runner-debug "$@" infra/base-images/base-runner-debug
local-test-sqlite3-delta-03/fuzz-tooling/infra/helper_test.py ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2021 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ """Tests for helper.py"""
15
+
16
+ import datetime
17
+ import os
18
+ import tempfile
19
+ import unittest
20
+ from unittest import mock
21
+
22
+ from pyfakefs import fake_filesystem_unittest
23
+
24
+ import constants
25
+ import helper
26
+ import templates
27
+
28
+ # pylint: disable=no-self-use,protected-access
29
+
30
+
31
+ class ShellTest(unittest.TestCase):
32
+ """Tests 'shell' command."""
33
+
34
+ @mock.patch('helper.docker_run')
35
+ @mock.patch('helper.build_image_impl')
36
+ def test_base_runner_debug(self, _, __):
37
+ """Tests that shell base-runner-debug works as intended."""
38
+ image_name = 'base-runner-debug'
39
+ unparsed_args = ['shell', image_name]
40
+ parser = helper.get_parser()
41
+ args = helper.parse_args(parser, unparsed_args)
42
+ args.sanitizer = 'address'
43
+ result = helper.shell(args)
44
+ self.assertTrue(result)
45
+
46
+
47
+ class BuildImageImplTest(unittest.TestCase):
48
+ """Tests for build_image_impl."""
49
+
50
+ @mock.patch('helper.docker_build')
51
+ def test_no_cache(self, mock_docker_build):
52
+ """Tests that cache=False is handled properly."""
53
+ image_name = 'base-image'
54
+ helper.build_image_impl(helper.Project(image_name), cache=False)
55
+ self.assertIn('--no-cache', mock_docker_build.call_args_list[0][0][0])
56
+
57
+ @mock.patch('helper.docker_build')
58
+ @mock.patch('helper.pull_images')
59
+ def test_pull(self, mock_pull_images, _):
60
+ """Tests that pull=True is handled properly."""
61
+ image_name = 'base-image'
62
+ project = helper.Project(image_name, is_external=True)
63
+ self.assertTrue(helper.build_image_impl(project, pull=True))
64
+ mock_pull_images.assert_called_with('c++')
65
+
66
+ @mock.patch('helper.docker_build')
67
+ def test_base_image(self, mock_docker_build):
68
+ """Tests that build_image_impl works as intended with a base-image."""
69
+ image_name = 'base-image'
70
+ self.assertTrue(helper.build_image_impl(helper.Project(image_name)))
71
+ build_dir = os.path.join(helper.OSS_FUZZ_DIR,
72
+ 'infra/base-images/base-image')
73
+ mock_docker_build.assert_called_with([
74
+ '-t', 'ghcr.io/aixcc-finals/base-image', '--file',
75
+ os.path.join(build_dir, 'Dockerfile'), build_dir
76
+ ])
77
+
78
+ @mock.patch('helper.docker_build')
79
+ def test_oss_fuzz_project(self, mock_docker_build):
80
+ """Tests that build_image_impl works as intended with an OSS-Fuzz
81
+ project."""
82
+ project_name = 'example'
83
+ self.assertTrue(helper.build_image_impl(helper.Project(project_name)))
84
+ build_dir = os.path.join(helper.OSS_FUZZ_DIR, 'projects', project_name)
85
+ mock_docker_build.assert_called_with([
86
+ '-t', 'gcr.io/oss-fuzz/example', '--file',
87
+ os.path.join(build_dir, 'Dockerfile'), build_dir
88
+ ])
89
+
90
+ @mock.patch('helper.docker_build')
91
+ def test_external_project(self, mock_docker_build):
92
+ """Tests that build_image_impl works as intended with a non-OSS-Fuzz
93
+ project."""
94
+ with tempfile.TemporaryDirectory() as temp_dir:
95
+ project_src_path = os.path.join(temp_dir, 'example')
96
+ os.mkdir(project_src_path)
97
+ build_integration_path = 'build-integration'
98
+ project = helper.Project(project_src_path,
99
+ is_external=True,
100
+ build_integration_path=build_integration_path)
101
+ self.assertTrue(helper.build_image_impl(project))
102
+ mock_docker_build.assert_called_with([
103
+ '-t', 'gcr.io/oss-fuzz/example', '--file',
104
+ os.path.join(project_src_path, build_integration_path, 'Dockerfile'),
105
+ project_src_path
106
+ ])
107
+
108
+
109
+ class GenerateImplTest(fake_filesystem_unittest.TestCase):
110
+ """Tests for _generate_impl."""
111
+ PROJECT_NAME = 'newfakeproject'
112
+ PROJECT_LANGUAGE = 'python'
113
+
114
+ def setUp(self):
115
+ self.maxDiff = None # pylint: disable=invalid-name
116
+ self.setUpPyfakefs()
117
+ self.fs.add_real_directory(helper.OSS_FUZZ_DIR)
118
+
119
+ def _verify_templated_files(self, template_dict, directory, language):
120
+ template_args = {
121
+ 'project_name': self.PROJECT_NAME,
122
+ 'year': 2021,
123
+ 'base_builder': helper._base_builder_from_language(language),
124
+ 'language': language,
125
+ }
126
+ for filename, template in template_dict.items():
127
+ file_path = os.path.join(directory, filename)
128
+ with open(file_path, 'r') as file_handle:
129
+ contents = file_handle.read()
130
+ self.assertEqual(contents, template % template_args)
131
+
132
+ @mock.patch('helper._get_current_datetime',
133
+ return_value=datetime.datetime(year=2021, month=1, day=1))
134
+ def test_generate_oss_fuzz_project(self, _):
135
+ """Tests that the correct files are generated for an OSS-Fuzz project."""
136
+ helper._generate_impl(helper.Project(self.PROJECT_NAME),
137
+ self.PROJECT_LANGUAGE)
138
+ self._verify_templated_files(
139
+ templates.TEMPLATES,
140
+ os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.PROJECT_NAME),
141
+ self.PROJECT_LANGUAGE)
142
+
143
+ def test_generate_external_project(self):
144
+ """Tests that the correct files are generated for a non-OSS-Fuzz project."""
145
+ build_integration_path = '/newfakeproject/build-integration'
146
+ helper._generate_impl(
147
+ helper.Project('/newfakeproject/',
148
+ is_external=True,
149
+ build_integration_path=build_integration_path),
150
+ self.PROJECT_LANGUAGE)
151
+ self._verify_templated_files(templates.EXTERNAL_TEMPLATES,
152
+ build_integration_path, self.PROJECT_LANGUAGE)
153
+
154
+ @mock.patch('helper._get_current_datetime',
155
+ return_value=datetime.datetime(year=2021, month=1, day=1))
156
+ def test_generate_swift_project(self, _):
157
+ """Tests that the swift project uses the correct base image."""
158
+ helper._generate_impl(helper.Project(self.PROJECT_NAME), 'swift')
159
+ self._verify_templated_files(
160
+ templates.TEMPLATES,
161
+ os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.PROJECT_NAME),
162
+ 'swift')
163
+
164
+
165
+ class ProjectTest(fake_filesystem_unittest.TestCase):
166
+ """Tests for Project class."""
167
+
168
+ def setUp(self):
169
+ self.project_name = 'project'
170
+ self.internal_project = helper.Project(self.project_name)
171
+ self.external_project_path = os.path.join('/path', 'to', self.project_name)
172
+ self.external_project = helper.Project(self.external_project_path,
173
+ is_external=True)
174
+ self.setUpPyfakefs()
175
+
176
+ def test_init_external_project(self):
177
+ """Tests __init__ method for external projects."""
178
+ self.assertEqual(self.external_project.name, self.project_name)
179
+ self.assertEqual(self.external_project.path, self.external_project_path)
180
+ self.assertEqual(
181
+ self.external_project.build_integration_path,
182
+ os.path.join(self.external_project_path,
183
+ constants.DEFAULT_EXTERNAL_BUILD_INTEGRATION_PATH))
184
+
185
+ def test_init_internal_project(self):
186
+ """Tests __init__ method for internal projects."""
187
+ self.assertEqual(self.internal_project.name, self.project_name)
188
+ path = os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.project_name)
189
+ self.assertEqual(self.internal_project.path, path)
190
+ self.assertEqual(self.internal_project.build_integration_path, path)
191
+
192
+ def test_dockerfile_path_internal_project(self):
193
+ """Tests that dockerfile_path works as intended."""
194
+ self.assertEqual(
195
+ self.internal_project.dockerfile_path,
196
+ os.path.join(helper.OSS_FUZZ_DIR, 'projects', self.project_name,
197
+ 'Dockerfile'))
198
+
199
+ def test_dockerfile_path_external_project(self):
200
+ """Tests that dockerfile_path works as intended."""
201
+ self.assertEqual(
202
+ self.external_project.dockerfile_path,
203
+ os.path.join(self.external_project_path,
204
+ constants.DEFAULT_EXTERNAL_BUILD_INTEGRATION_PATH,
205
+ 'Dockerfile'))
206
+
207
+ def test_out(self):
208
+ """Tests that out works as intended."""
209
+ out_dir = self.internal_project.out
210
+ self.assertEqual(
211
+ out_dir,
212
+ os.path.join(helper.OSS_FUZZ_DIR, 'build', 'out', self.project_name))
213
+ self.assertTrue(os.path.exists(out_dir))
214
+
215
+ def test_work(self):
216
+ """Tests that work works as intended."""
217
+ work_dir = self.internal_project.work
218
+ self.assertEqual(
219
+ work_dir,
220
+ os.path.join(helper.OSS_FUZZ_DIR, 'build', 'work', self.project_name))
221
+ self.assertTrue(os.path.exists(work_dir))
222
+
223
+ def test_corpus(self):
224
+ """Tests that corpus works as intended."""
225
+ corpus_dir = self.internal_project.corpus
226
+ self.assertEqual(
227
+ corpus_dir,
228
+ os.path.join(helper.OSS_FUZZ_DIR, 'build', 'corpus', self.project_name))
229
+ self.assertTrue(os.path.exists(corpus_dir))
230
+
231
+ def test_language_internal_project(self):
232
+ """Tests that language works as intended for an internal project."""
233
+ project_yaml_path = os.path.join(self.internal_project.path, 'project.yaml')
234
+ self.fs.create_file(project_yaml_path, contents='language: python')
235
+ self.assertEqual(self.internal_project.language, 'python')
236
+
237
+ def test_language_external_project(self):
238
+ """Tests that language works as intended for an external project."""
239
+ self.assertEqual(self.external_project.language, 'c++')
local-test-sqlite3-delta-03/fuzz-tooling/infra/manifest.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /usr/bin/env python3
2
+ # Copyright 2022 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ ################################################################################
17
+ """Script for pushing manifest files to docker that point to AMD64 and ARM
18
+ images."""
19
+ import logging
20
+ import subprocess
21
+ import sys
22
+
23
+
24
+ def push_manifest(image):
25
+ """Pushes a manifest file in place of |image| for ARM and AMD64 versions of
26
+ that image."""
27
+ subprocess.run(['docker', 'pull', image], check=True)
28
+ amd64_image = f'{image}:manifest-amd64'
29
+ subprocess.run(['docker', 'tag', image, amd64_image], check=True)
30
+ subprocess.run(['docker', 'push', amd64_image], check=True)
31
+
32
+ arm_version = f'{image}-testing-arm'
33
+ subprocess.run(['docker', 'pull', arm_version], check=True)
34
+ arm64_image = f'{image}:manifest-arm64v8'
35
+ subprocess.run(['docker', 'tag', arm_version, arm64_image], check=True)
36
+
37
+ subprocess.run([
38
+ 'docker', 'manifest', 'create', image, '--amend', arm64_image, '--amend',
39
+ amd64_image
40
+ ],
41
+ check=True)
42
+ subprocess.run(['docker', 'manifest', 'push', image], check=True)
43
+ return True
44
+
45
+
46
+ def main():
47
+ """Sets up manifests for base-builder and base-runner so they can be used for
48
+ ARM builds."""
49
+ logging.info('Doing simple gcloud command to ensure 2FA passes. '
50
+ 'Otherwise docker push fails.')
51
+ subprocess.run(['gcloud', 'projects', 'list', '--limit=1'], check=True)
52
+
53
+ images = [
54
+ 'ghcr.io/aixcc-finals/base-builder', 'ghcr.io/aixcc-finals/base-runner'
55
+ ]
56
+ results = [push_manifest(image) for image in images]
57
+ return 0 if all(results) else 1
58
+
59
+
60
+ if __name__ == '__main__':
61
+ sys.exit(main())
local-test-sqlite3-delta-03/fuzz-tooling/infra/pr_helper.py ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # Copyright 2023 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ ################################################################################
17
+ """Adds comments for PR to provide more information for approvers."""
18
+ import base64
19
+ import json
20
+ import os
21
+ import subprocess
22
+
23
+ import requests
24
+ import yaml
25
+
26
+ OWNER = 'google'
27
+ REPO = 'oss-fuzz'
28
+ GITHUB_URL = 'https://github.com/'
29
+ GITHUB_NONREF_URL = f'https://www.github.com/{OWNER}/{REPO}' # Github URL that doesn't send emails on linked issues.
30
+ API_URL = 'https://api.github.com'
31
+ BASE_URL = f'{API_URL}/repos/{OWNER}/{REPO}'
32
+ BRANCH = 'master'
33
+ CRITICALITY_SCORE_PATH = '/home/runner/go/bin/criticality_score'
34
+ COMMITS_LIMIT = 50 # Only process the most recent 50 commits.
35
+
36
+
37
+ def get_criticality_score(repo_url):
38
+ """Gets the criticality score of the project."""
39
+ # Criticality score does not support repo url ends with '.git'
40
+ if repo_url.endswith('.git'):
41
+ repo_url = repo_url[:-4]
42
+ report = subprocess.run([
43
+ CRITICALITY_SCORE_PATH, '--format', 'json',
44
+ '-gcp-project-id=clusterfuzz-external', '-depsdev-disable', repo_url
45
+ ],
46
+ capture_output=True,
47
+ text=True)
48
+
49
+ try:
50
+ report_dict = json.loads(report.stdout)
51
+ except:
52
+ print(f'Criticality score failed with stdout: {report.stdout}')
53
+ print(f'Criticality score failed with stderr: {report.stderr}')
54
+ return 'N/A'
55
+ return report_dict.get('default_score', 'N/A')
56
+
57
+
58
+ def is_known_contributor(content, email):
59
+ """Checks if the author is in the contact list."""
60
+ return (email == content.get('primary_contact') or
61
+ email in content.get('vendor_ccs', []) or
62
+ email in content.get('auto_ccs', []))
63
+
64
+
65
+ def save_env(message, is_ready_for_merge, is_internal=False):
66
+ """Saves the outputs as environment variables."""
67
+ with open(os.environ['GITHUB_ENV'], 'a') as github_env:
68
+ github_env.write(f'MESSAGE={message}\n')
69
+ github_env.write(f'IS_READY_FOR_MERGE={is_ready_for_merge}\n')
70
+ github_env.write(f'IS_INTERNAL={is_internal}')
71
+
72
+
73
+ def main():
74
+ """Verifies if a PR is ready to merge."""
75
+ github = GithubHandler()
76
+
77
+ # Bypasses PRs of the internal members.
78
+ if github.is_author_internal_member():
79
+ save_env(None, None, True)
80
+ return
81
+
82
+ message = ''
83
+ is_ready_for_merge = True
84
+ pr_author = github.get_pr_author()
85
+ # Gets all modified projects path.
86
+ projects_path = github.get_projects_path()
87
+ verified, email = github.get_author_email()
88
+
89
+ for project_path in projects_path:
90
+ project_url = f'{GITHUB_URL}/{OWNER}/{REPO}/tree/{BRANCH}/{project_path}'
91
+ content_dict = github.get_project_yaml(project_path)
92
+
93
+ # Gets information for the new integrating project.
94
+ if not content_dict:
95
+ is_ready_for_merge = False
96
+ new_project = github.get_integrated_project_info()
97
+ repo_url = new_project.get('main_repo')
98
+ if repo_url is None:
99
+ message += (f'{pr_author} is integrating a new project, '
100
+ 'but the `main_repo` is missing. '
101
+ 'The criticality score cannot be computed.<br/>')
102
+ else:
103
+ message += (f'{pr_author} is integrating a new project:<br/>'
104
+ f'- Main repo: {repo_url}<br/> - Criticality score: '
105
+ f'{get_criticality_score(repo_url)}<br/>')
106
+ continue
107
+
108
+ # Checks if the author is in the contact list.
109
+ if email:
110
+ if is_known_contributor(content_dict, email):
111
+ # Checks if the email is verified.
112
+ verified_marker = ' (verified)' if verified else ''
113
+ message += (
114
+ f'{pr_author}{verified_marker} is either the primary contact or '
115
+ f'is in the CCs list of [{project_path}]({project_url}).<br/>')
116
+ if verified:
117
+ continue
118
+
119
+ # Checks the previous commits.
120
+ commit_sha = github.has_author_modified_project(project_path)
121
+ if commit_sha is None:
122
+ history_message = ''
123
+ contributors = github.get_past_contributors(project_path)
124
+ if contributors:
125
+ history_message = 'The past contributors are: '
126
+ history_message += ', '.join(contributors)
127
+ message += (
128
+ f'{pr_author} is a new contributor to '
129
+ f'[{project_path}]({project_url}). The PR must be approved by known '
130
+ f'contributors before it can be merged. {history_message}<br/>')
131
+ is_ready_for_merge = False
132
+ continue
133
+
134
+ # If the previous commit is not associated with a pull request.
135
+ pr_message = (f'{pr_author} has previously contributed to '
136
+ f'[{project_path}]({project_url}). The previous commit was '
137
+ f'{GITHUB_NONREF_URL}/commit/{commit_sha}<br/>')
138
+
139
+ previous_pr_number = github.get_pull_request_number(commit_sha)
140
+ if previous_pr_number is not None:
141
+ pr_message = (f'{pr_author} has previously contributed to '
142
+ f'[{project_path}]({project_url}). '
143
+ f'The previous PR was [#{previous_pr_number}]'
144
+ f'({GITHUB_NONREF_URL}/pull/{previous_pr_number})<br/>')
145
+ message += pr_message
146
+
147
+ save_env(message, is_ready_for_merge, False)
148
+
149
+
150
+ class GithubHandler:
151
+ """Github requests handler."""
152
+
153
+ def __init__(self):
154
+ self._pr_author = os.environ['PRAUTHOR']
155
+ self._token = os.environ['GITHUBTOKEN']
156
+ self._pr_number = os.environ['PRNUMBER']
157
+ self._headers = {
158
+ 'Authorization': f'Bearer {self._token}',
159
+ 'X-GitHub-Api-Version': '2022-11-28'
160
+ }
161
+ self._maintainers = set()
162
+ os.environ['GITHUB_AUTH_TOKEN'] = self._token
163
+
164
+ def get_pr_author(self):
165
+ """Gets the pr author user name."""
166
+ return self._pr_author
167
+
168
+ def get_projects_path(self):
169
+ """Gets the current project path."""
170
+ response = requests.get(f'{BASE_URL}/pulls/{self._pr_number}/files',
171
+ headers=self._headers)
172
+ if not response.ok:
173
+ return []
174
+
175
+ projects_path = set()
176
+ for file in response.json():
177
+ file_path = file['filename']
178
+ dir_path = file_path.split(os.sep)
179
+ if len(dir_path) > 1 and dir_path[0] == 'projects':
180
+ projects_path.add(os.sep.join(dir_path[0:2]))
181
+ return list(projects_path)
182
+
183
+ def get_author_email(self):
184
+ """Retrieves the author's email address for a pull request,
185
+ including non-public emails."""
186
+ user_response = requests.get(f'{API_URL}/users/{self._pr_author}')
187
+ if user_response.ok:
188
+ email = user_response.json()['email']
189
+ if email:
190
+ return True, email
191
+
192
+ commits_response = requests.get(
193
+ f'{BASE_URL}/pulls/{self._pr_number}/commits', headers=self._headers)
194
+ if not commits_response.ok:
195
+ return False, None
196
+ email = commits_response.json()[0]['commit']['author']['email']
197
+ verified = commits_response.json()[0]['commit']['verification']['verified']
198
+ return verified, email
199
+
200
+ def get_project_yaml(self, project_path):
201
+ """Gets the project yaml file."""
202
+ contents_url = f'{BASE_URL}/contents/{project_path}/project.yaml'
203
+ return self.get_yaml_file_content(contents_url)
204
+
205
+ def get_yaml_file_content(self, contents_url):
206
+ """Gets yaml file content."""
207
+ response = requests.get(contents_url, headers=self._headers)
208
+ if not response.ok:
209
+ return {}
210
+ content = base64.b64decode(response.json()['content']).decode('UTF-8')
211
+ return yaml.safe_load(content)
212
+
213
+ def get_integrated_project_info(self):
214
+ """Gets the new integrated project."""
215
+ response = requests.get(f'{BASE_URL}/pulls/{self._pr_number}/files',
216
+ headers=self._headers)
217
+
218
+ for file in response.json():
219
+ file_path = file['filename']
220
+ if 'project.yaml' in file_path:
221
+ return self.get_yaml_file_content(file['contents_url'])
222
+
223
+ return {}
224
+
225
+ def get_pull_request_number(self, commit):
226
+ """Gets the pull request number."""
227
+ pr_response = requests.get(f'{BASE_URL}/commits/{commit}/pulls',
228
+ headers=self._headers)
229
+ if not pr_response.ok:
230
+ return None
231
+ return pr_response.json()[0]['number']
232
+
233
+ def get_past_contributors(self, project_path):
234
+ """Returns a list of past contributors of a certain project."""
235
+ commits_response = requests.get(f'{BASE_URL}/commits?path={project_path}',
236
+ headers=self._headers)
237
+
238
+ if not commits_response.ok:
239
+ return []
240
+ commits = commits_response.json()
241
+ contributors: dict[str, bool] = {}
242
+ for i, commit in enumerate(commits):
243
+ if i >= COMMITS_LIMIT:
244
+ break
245
+
246
+ if not commit['author'] or not commit['commit']:
247
+ continue
248
+
249
+ login = commit['author']['login']
250
+ verified = commit['commit']['verification']['verified']
251
+ if login in self._maintainers:
252
+ continue
253
+ if login not in contributors:
254
+ contributors[login] = verified
255
+ if verified:
256
+ # Override previous verification bit.
257
+ contributors[login] = True
258
+
259
+ all_contributors = []
260
+ for login, verified in contributors.items():
261
+ login_verify = login if verified else f'{login} (unverified)'
262
+ all_contributors.append(login_verify)
263
+
264
+ return all_contributors
265
+
266
+ def get_maintainers(self):
267
+ """Get a list of internal members."""
268
+ if self._maintainers:
269
+ return self._maintainers
270
+
271
+ response = requests.get(f'{BASE_URL}/contents/infra/MAINTAINERS.csv',
272
+ headers=self._headers)
273
+ if not response.ok:
274
+ return self._maintainers
275
+
276
+ maintainers_file = base64.b64decode(
277
+ response.json()['content']).decode('UTF-8')
278
+ for line in maintainers_file.split(os.linesep):
279
+ self._maintainers.add(line.split(',')[2])
280
+ return self._maintainers
281
+
282
+ def is_author_internal_member(self):
283
+ """Returns if the author is an internal member."""
284
+ return self._pr_author in self.get_maintainers()
285
+
286
+ def has_author_modified_project(self, project_path):
287
+ """Checks if the author has modified this project before."""
288
+ commits_response = requests.get(
289
+ f'{BASE_URL}/commits?path={project_path}&author={self._pr_author}',
290
+ headers=self._headers)
291
+
292
+ if not commits_response.ok or not commits_response.json():
293
+ return None
294
+
295
+ commit = commits_response.json()[0]
296
+ return commit['sha']
297
+
298
+
299
+ if __name__ == '__main__':
300
+ main()
local-test-sqlite3-delta-03/fuzz-tooling/infra/test ADDED
@@ -0,0 +1 @@
 
 
1
+
local-test-sqlite3-delta-03/fuzz-tooling/infra/uploader/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from ubuntu:16.04
2
+
3
+ RUN apt-get update && apt-get upgrade -y
4
+ RUN apt-get install -y curl
5
+
6
+ ENTRYPOINT ["curl", "--retry", "5", "-X", "PUT", "-T"]
7
+
local-test-sqlite3-delta-03/fuzz-tooling/infra/utils_test.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ """Tests the functionality of the utils module's functions"""
15
+
16
+ import os
17
+ import tempfile
18
+ import unittest
19
+ from unittest import mock
20
+
21
+ import utils
22
+ import helper
23
+
24
+ EXAMPLE_PROJECT = 'example'
25
+
26
+ TEST_OUT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
27
+ 'cifuzz', 'test_data', 'build-out')
28
+
29
+
30
+ class IsFuzzTargetLocalTest(unittest.TestCase):
31
+ """Tests the is_fuzz_target_local function."""
32
+
33
+ def test_invalid_filepath(self):
34
+ """Tests the function with an invalid file path."""
35
+ is_local = utils.is_fuzz_target_local('not/a/real/file')
36
+ self.assertFalse(is_local)
37
+ is_local = utils.is_fuzz_target_local('')
38
+ self.assertFalse(is_local)
39
+ is_local = utils.is_fuzz_target_local(' ')
40
+ self.assertFalse(is_local)
41
+
42
+ def test_valid_filepath(self):
43
+ """Checks is_fuzz_target_local function with a valid filepath."""
44
+
45
+ is_local = utils.is_fuzz_target_local(
46
+ os.path.join(TEST_OUT_DIR, 'example_crash_fuzzer'))
47
+ self.assertTrue(is_local)
48
+ is_local = utils.is_fuzz_target_local(TEST_OUT_DIR)
49
+ self.assertFalse(is_local)
50
+
51
+
52
+ class GetFuzzTargetsTest(unittest.TestCase):
53
+ """Tests the get_fuzz_targets function."""
54
+
55
+ def test_valid_filepath(self):
56
+ """Tests that fuzz targets can be retrieved once the fuzzers are built."""
57
+ fuzz_targets = utils.get_fuzz_targets(TEST_OUT_DIR)
58
+ crash_fuzzer_path = os.path.join(TEST_OUT_DIR, 'example_crash_fuzzer')
59
+ nocrash_fuzzer_path = os.path.join(TEST_OUT_DIR, 'example_nocrash_fuzzer')
60
+ self.assertCountEqual(fuzz_targets,
61
+ [crash_fuzzer_path, nocrash_fuzzer_path])
62
+
63
+ # Testing on a arbitrary directory with no fuzz targets in it.
64
+ fuzz_targets = utils.get_fuzz_targets(
65
+ os.path.join(helper.OSS_FUZZ_DIR, 'infra', 'travis'))
66
+ self.assertFalse(fuzz_targets)
67
+
68
+ def test_invalid_filepath(self):
69
+ """Tests what get_fuzz_targets return when invalid filepath is used."""
70
+ fuzz_targets = utils.get_fuzz_targets('not/a/valid/file/path')
71
+ self.assertFalse(fuzz_targets)
72
+
73
+
74
+ class ExecuteTest(unittest.TestCase):
75
+ """Tests the execute function."""
76
+
77
+ def test_valid_command(self):
78
+ """Tests that execute can produce valid output."""
79
+ with tempfile.TemporaryDirectory() as tmp_dir:
80
+ out, err, err_code = utils.execute(['ls', '.'],
81
+ location=tmp_dir,
82
+ check_result=False)
83
+ self.assertEqual(err_code, 0)
84
+ self.assertEqual(err, '')
85
+ self.assertEqual(out, '')
86
+ out, err, err_code = utils.execute(['mkdir', 'tmp'],
87
+ location=tmp_dir,
88
+ check_result=False)
89
+ self.assertEqual(err_code, 0)
90
+ self.assertEqual(err, '')
91
+ self.assertEqual(out, '')
92
+ out, err, err_code = utils.execute(['ls', '.'],
93
+ location=tmp_dir,
94
+ check_result=False)
95
+ self.assertEqual(err_code, 0)
96
+ self.assertEqual(err, '')
97
+ self.assertEqual(out, 'tmp\n')
98
+
99
+ def test_error_command(self):
100
+ """Tests that execute can correctly surface errors."""
101
+ with tempfile.TemporaryDirectory() as tmp_dir:
102
+ out, err, err_code = utils.execute(['ls', 'notarealdir'],
103
+ location=tmp_dir,
104
+ check_result=False)
105
+ self.assertEqual(err_code, 2)
106
+ self.assertIsNotNone(err)
107
+ self.assertEqual(out, '')
108
+ with self.assertRaises(RuntimeError):
109
+ out, err, err_code = utils.execute(['ls', 'notarealdir'],
110
+ location=tmp_dir,
111
+ check_result=True)
112
+
113
+
114
+ class BinaryPrintTest(unittest.TestCase):
115
+ """Tests for utils.binary_print."""
116
+
117
+ @unittest.skip('Causes spurious failures because of side-effects.')
118
+ def test_string(self): # pylint: disable=no-self-use
119
+ """Tests that utils.binary_print can print a regular string."""
120
+ # Should execute without raising any exceptions.
121
+ with mock.patch('sys.stdout.buffer.write') as mock_write:
122
+ utils.binary_print('hello')
123
+ mock_write.assert_called_with('hello\n')
124
+
125
+ @unittest.skip('Causes spurious failures because of side-effects.')
126
+ def test_binary_string(self): # pylint: disable=no-self-use
127
+ """Tests that utils.binary_print can print a bianry string."""
128
+ # Should execute without raising any exceptions.
129
+ with mock.patch('sys.stdout.buffer.write') as mock_write:
130
+ utils.binary_print(b'hello')
131
+ mock_write.assert_called_with(b'hello\n')
132
+
133
+
134
+ class CommandToStringTest(unittest.TestCase):
135
+ """Tests for command_to_string."""
136
+
137
+ def test_string(self):
138
+ """Tests that command_to_string returns the argument passed to it when it is
139
+ passed a string."""
140
+ command = 'command'
141
+ self.assertEqual(utils.command_to_string(command), command)
142
+
143
+ def test_list(self):
144
+ """Tests that command_to_string returns the correct stringwhen it is passed
145
+ a list."""
146
+ command = ['command', 'arg1', 'arg2']
147
+ self.assertEqual(utils.command_to_string(command), 'command arg1 arg2')
148
+
149
+
150
+ if __name__ == '__main__':
151
+ unittest.main()