File size: 18,234 Bytes
7510827
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
[
  {
    "function_name": "jsonCacheInsert",
    "function_signature": "static int jsonCacheInsert(\n  sqlite3_context *ctx,   /* The SQL statement context holding the cache */\n  JsonParse *pParse       /* The parse object to be added to the cache */\n)",
    "test_filename": "tests_json_jsonCacheInsert.c"
  },
  {
    "function_name": "jsonStringGrow",
    "function_signature": "static int jsonStringGrow(JsonString *p, u32 N)",
    "test_filename": "tests_json_jsonStringGrow.c"
  },
  {
    "function_name": "jsonStringExpandAndAppend",
    "function_signature": "static SQLITE_NOINLINE void jsonStringExpandAndAppend(\n  JsonString *p,\n  const char *zIn,\n  u32 N\n)",
    "test_filename": "tests_json_jsonStringExpandAndAppend.c"
  },
  {
    "function_name": "jsonAppendControlChar",
    "function_signature": "static void jsonAppendControlChar(JsonString *p, u8 c)",
    "test_filename": "tests_json_jsonAppendControlChar.c"
  },
  {
    "function_name": "jsonAppendString",
    "function_signature": "static void jsonAppendString(JsonString *p, const char *zIn, u32 N)",
    "test_filename": "tests_json_jsonAppendString.c"
  },
  {
    "function_name": "jsonAppendSqlValue",
    "function_signature": "static void jsonAppendSqlValue(\n  JsonString *p,                 /* Append to this JSON string */\n  sqlite3_value *pValue          /* Value to append */\n)",
    "test_filename": "tests_json_jsonAppendSqlValue.c"
  },
  {
    "function_name": "jsonReturnString",
    "function_signature": "static void jsonReturnString(\n  JsonString *p,            /* String to return */\n  JsonParse *pParse,        /* JSONB source or NULL */\n  sqlite3_context *ctx      /* Where to cache */\n)",
    "test_filename": "tests_json_jsonReturnString.c"
  },
  {
    "function_name": "jsonParseReset",
    "function_signature": "static void jsonParseReset(JsonParse *pParse)",
    "test_filename": "tests_json_jsonParseReset.c"
  },
  {
    "function_name": "jsonParseFree",
    "function_signature": "static void jsonParseFree(JsonParse *pParse)",
    "test_filename": "tests_json_jsonParseFree.c"
  },
  {
    "function_name": "json5Whitespace",
    "function_signature": "static int json5Whitespace(const char *zIn)",
    "test_filename": "tests_json_json5Whitespace.c"
  },
  {
    "function_name": "jsonBlobExpand",
    "function_signature": "static int jsonBlobExpand(JsonParse *pParse, u32 N)",
    "test_filename": "tests_json_jsonBlobExpand.c"
  },
  {
    "function_name": "jsonBlobMakeEditable",
    "function_signature": "static int jsonBlobMakeEditable(JsonParse *pParse, u32 nExtra)",
    "test_filename": "tests_json_jsonBlobMakeEditable.c"
  },
  {
    "function_name": "jsonBlobExpandAndAppendOneByte",
    "function_signature": "static SQLITE_NOINLINE void jsonBlobExpandAndAppendOneByte(\n  JsonParse *pParse,\n  u8 c\n)",
    "test_filename": "tests_json_jsonBlobExpandAndAppendOneByte.c"
  },
  {
    "function_name": "jsonBlobAppendNode",
    "function_signature": "static void jsonBlobAppendNode(\n  JsonParse *pParse,          /* The JsonParse object under construction */\n  u8 eType,                   /* Node type.  One of JSONB_* */\n  u32 szPayload,              /* Number of bytes of payload */\n  const void *aPayload        /* The payload.  Might be NULL */\n)",
    "test_filename": "tests_json_jsonBlobAppendNode.c"
  },
  {
    "function_name": "jsonBlobChangePayloadSize",
    "function_signature": "static int jsonBlobChangePayloadSize(\n  JsonParse *pParse,\n  u32 i,\n  u32 szPayload\n)",
    "test_filename": "tests_json_jsonBlobChangePayloadSize.c"
  },
  {
    "function_name": "jsonbValidityCheck",
    "function_signature": "static u32 jsonbValidityCheck(\n  const JsonParse *pParse,    /* Input JSONB.  Only aBlob and nBlob are used */\n  u32 i,                      /* Start of element as pParse->aBlob[i] */\n  u32 iEnd,                   /* One more than the last byte of the element */\n  u32 iDepth                  /* Current nesting depth */\n)",
    "test_filename": "tests_json_jsonbValidityCheck.c"
  },
  {
    "function_name": "jsonTranslateTextToBlob",
    "function_signature": "static int jsonTranslateTextToBlob(JsonParse *pParse, u32 i)",
    "test_filename": null
  },
  {
    "function_name": "jsonConvertTextToBlob",
    "function_signature": "static int jsonConvertTextToBlob(\n  JsonParse *pParse,           /* Initialize and fill this JsonParse object */\n  sqlite3_context *pCtx        /* Report errors here */\n)",
    "test_filename": "tests_json_jsonConvertTextToBlob.c"
  },
  {
    "function_name": "jsonReturnStringAsBlob",
    "function_signature": "static void jsonReturnStringAsBlob(JsonString *pStr)",
    "test_filename": "tests_json_jsonReturnStringAsBlob.c"
  },
  {
    "function_name": "jsonbPayloadSize",
    "function_signature": "static u32 jsonbPayloadSize(const JsonParse *pParse, u32 i, u32 *pSz)",
    "test_filename": "tests_json_jsonbPayloadSize.c"
  },
  {
    "function_name": "jsonTranslateBlobToText",
    "function_signature": "static u32 jsonTranslateBlobToText(\n  const JsonParse *pParse,       /* the complete parse of the JSON */\n  u32 i,                         /* Start rendering at this index */\n  JsonString *pOut               /* Write JSON here */\n)",
    "test_filename": "tests_json_jsonTranslateBlobToText.c"
  },
  {
    "function_name": "jsonTranslateBlobToPrettyText",
    "function_signature": "static u32 jsonTranslateBlobToPrettyText(\n  JsonPretty *pPretty,       /* Pretty-printing context */\n  u32 i                      /* Start rendering at this index */\n)",
    "test_filename": "tests_json_jsonTranslateBlobToPrettyText.c"
  },
  {
    "function_name": "jsonbArrayCount",
    "function_signature": "static u32 jsonbArrayCount(JsonParse *pParse, u32 iRoot)",
    "test_filename": "tests_json_jsonbArrayCount.c"
  },
  {
    "function_name": "jsonAfterEditSizeAdjust",
    "function_signature": "static void jsonAfterEditSizeAdjust(JsonParse *pParse, u32 iRoot)",
    "test_filename": "tests_json_jsonAfterEditSizeAdjust.c"
  },
  {
    "function_name": "jsonBlobOverwrite",
    "function_signature": "static int jsonBlobOverwrite(\n  u8 *aOut,                 /* Overwrite here */\n  const u8 *aIns,           /* New content */\n  u32 nIns,                 /* Bytes of new content */\n  u32 d                     /* Need to expand new content by this much */\n)",
    "test_filename": "tests_json_jsonBlobOverwrite.c"
  },
  {
    "function_name": "jsonBlobEdit",
    "function_signature": "static void jsonBlobEdit(\n  JsonParse *pParse,     /* The JSONB to be modified is in pParse->aBlob */\n  u32 iDel,              /* First byte to be removed */\n  u32 nDel,              /* Number of bytes to remove */\n  const u8 *aIns,        /* Content to insert */\n  u32 nIns               /* Bytes of content to insert */\n)",
    "test_filename": "tests_json_jsonBlobEdit.c"
  },
  {
    "function_name": "jsonBytesToBypass",
    "function_signature": "static u32 jsonBytesToBypass(const char *z, u32 n)",
    "test_filename": "tests_json_jsonBytesToBypass.c"
  },
  {
    "function_name": "jsonUnescapeOneChar",
    "function_signature": "static u32 jsonUnescapeOneChar(const char *z, u32 n, u32 *piOut)",
    "test_filename": "tests_json_jsonUnescapeOneChar.c"
  },
  {
    "function_name": "jsonLabelCompareEscaped",
    "function_signature": "static SQLITE_NOINLINE int jsonLabelCompareEscaped(\n  const char *zLeft,          /* The left label */\n  u32 nLeft,                  /* Size of the left label in bytes */\n  int rawLeft,                /* True if zLeft contains no escapes */\n  const char *zRight,         /* The right label */\n  u32 nRight,                 /* Size of the right label in bytes */\n  int rawRight                /* True if zRight is escape-free */\n)",
    "test_filename": "tests_json_jsonLabelCompareEscaped.c"
  },
  {
    "function_name": "jsonLabelCompare",
    "function_signature": "static int jsonLabelCompare(\n  const char *zLeft,          /* The left label */\n  u32 nLeft,                  /* Size of the left label in bytes */\n  int rawLeft,                /* True if zLeft contains no escapes */\n  const char *zRight,         /* The right label */\n  u32 nRight,                 /* Size of the right label in bytes */\n  int rawRight                /* True if zRight is escape-free */\n)",
    "test_filename": "tests_json_jsonLabelCompare.c"
  },
  {
    "function_name": "jsonCreateEditSubstructure",
    "function_signature": "static u32 jsonCreateEditSubstructure(\n  JsonParse *pParse,  /* The original JSONB that is being edited */\n  JsonParse *pIns,    /* Populate this with the blob data to insert */\n  const char *zTail   /* Tail of the path that determins substructure */\n)",
    "test_filename": "tests_json_jsonCreateEditSubstructure.c"
  },
  {
    "function_name": "jsonLookupStep",
    "function_signature": "static u32 jsonLookupStep(\n  JsonParse *pParse,      /* The JSON to search */\n  u32 iRoot,              /* Begin the search at this element of aBlob[] */\n  const char *zPath,      /* The path to search */\n  u32 iLabel              /* Label if iRoot is a value of in an object */\n)",
    "test_filename": "tests_json_jsonLookupStep.c"
  },
  {
    "function_name": "jsonReturnTextJsonFromBlob",
    "function_signature": "static void jsonReturnTextJsonFromBlob(\n  sqlite3_context *ctx,\n  const u8 *aBlob,\n  u32 nBlob\n)",
    "test_filename": "tests_json_jsonReturnTextJsonFromBlob.c"
  },
  {
    "function_name": "jsonReturnFromBlob",
    "function_signature": "static void jsonReturnFromBlob(\n  JsonParse *pParse,          /* Complete JSON parse tree */\n  u32 i,                      /* Index of the node */\n  sqlite3_context *pCtx,      /* Return value for this function */\n  int eMode                   /* Format of return: text of JSONB */\n)",
    "test_filename": "tests_json_jsonReturnFromBlob.c"
  },
  {
    "function_name": "jsonFunctionArgToBlob",
    "function_signature": "static int jsonFunctionArgToBlob(\n  sqlite3_context *ctx,\n  sqlite3_value *pArg,\n  JsonParse *pParse\n)",
    "test_filename": "tests_json_jsonFunctionArgToBlob.c"
  },
  {
    "function_name": "jsonInsertIntoBlob",
    "function_signature": "static void jsonInsertIntoBlob(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv,\n  int eEdit                /* JEDIT_INS, JEDIT_REPL, or JEDIT_SET */\n)",
    "test_filename": "tests_json_jsonInsertIntoBlob.c"
  },
  {
    "function_name": "jsonArgIsJsonb",
    "function_signature": "static int jsonArgIsJsonb(sqlite3_value *pArg, JsonParse *p)",
    "test_filename": "tests_json_jsonArgIsJsonb.c"
  },
  {
    "function_name": "jsonReturnParse",
    "function_signature": "static void jsonReturnParse(\n  sqlite3_context *ctx,\n  JsonParse *p\n)",
    "test_filename": "tests_json_jsonReturnParse.c"
  },
  {
    "function_name": "jsonDebugPrintBlob",
    "function_signature": "static void jsonDebugPrintBlob(\n  JsonParse *pParse, /* JSON content */\n  u32 iStart,        /* Start rendering here */\n  u32 iEnd,          /* Do not render this byte or any byte after this one */\n  int nIndent,       /* Indent by this many spaces */\n  sqlite3_str *pOut  /* Generate output into this sqlite3_str object */\n)",
    "test_filename": "tests_json_jsonDebugPrintBlob.c"
  },
  {
    "function_name": "jsonShowParse",
    "function_signature": "static void jsonShowParse(JsonParse *pParse)",
    "test_filename": "tests_json_jsonShowParse.c"
  },
  {
    "function_name": "jsonParseFunc",
    "function_signature": "static void jsonParseFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonParseFunc.c"
  },
  {
    "function_name": "jsonQuoteFunc",
    "function_signature": "static void jsonQuoteFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonQuoteFunc.c"
  },
  {
    "function_name": "jsonArrayFunc",
    "function_signature": "static void jsonArrayFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonArrayFunc.c"
  },
  {
    "function_name": "jsonArrayLengthFunc",
    "function_signature": "static void jsonArrayLengthFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonArrayLengthFunc.c"
  },
  {
    "function_name": "jsonExtractFunc",
    "function_signature": "static void jsonExtractFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonExtractFunc.c"
  },
  {
    "function_name": "jsonMergePatch",
    "function_signature": "static int jsonMergePatch(\n  JsonParse *pTarget,      /* The JSON parser that contains the TARGET */\n  u32 iTarget,             /* Index of TARGET in pTarget->aBlob[] */\n  const JsonParse *pPatch, /* The PATCH */\n  u32 iPatch               /* Index of PATCH in pPatch->aBlob[] */\n)",
    "test_filename": "tests_json_jsonMergePatch.c"
  },
  {
    "function_name": "jsonPatchFunc",
    "function_signature": "static void jsonPatchFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonPatchFunc.c"
  },
  {
    "function_name": "jsonObjectFunc",
    "function_signature": "static void jsonObjectFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonObjectFunc.c"
  },
  {
    "function_name": "jsonRemoveFunc",
    "function_signature": "static void jsonRemoveFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonRemoveFunc.c"
  },
  {
    "function_name": "jsonReplaceFunc",
    "function_signature": "static void jsonReplaceFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonReplaceFunc.c"
  },
  {
    "function_name": "jsonSetFunc",
    "function_signature": "static void jsonSetFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonSetFunc.c"
  },
  {
    "function_name": "jsonTypeFunc",
    "function_signature": "static void jsonTypeFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonTypeFunc.c"
  },
  {
    "function_name": "jsonPrettyFunc",
    "function_signature": "static void jsonPrettyFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonPrettyFunc.c"
  },
  {
    "function_name": "jsonValidFunc",
    "function_signature": "static void jsonValidFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonValidFunc.c"
  },
  {
    "function_name": "jsonErrorFunc",
    "function_signature": "static void jsonErrorFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonErrorFunc.c"
  },
  {
    "function_name": "jsonArrayStep",
    "function_signature": "static void jsonArrayStep(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonArrayStep.c"
  },
  {
    "function_name": "jsonArrayCompute",
    "function_signature": "static void jsonArrayCompute(sqlite3_context *ctx, int isFinal)",
    "test_filename": "tests_json_jsonArrayCompute.c"
  },
  {
    "function_name": "jsonGroupInverse",
    "function_signature": "static void jsonGroupInverse(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonGroupInverse.c"
  },
  {
    "function_name": "jsonObjectStep",
    "function_signature": "static void jsonObjectStep(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",
    "test_filename": "tests_json_jsonObjectStep.c"
  },
  {
    "function_name": "jsonObjectCompute",
    "function_signature": "static void jsonObjectCompute(sqlite3_context *ctx, int isFinal)",
    "test_filename": "tests_json_jsonObjectCompute.c"
  },
  {
    "function_name": "jsonEachConnect",
    "function_signature": "static int jsonEachConnect(\n  sqlite3 *db,\n  void *pAux,\n  int argc, const char *const*argv,\n  sqlite3_vtab **ppVtab,\n  char **pzErr\n)",
    "test_filename": "tests_json_jsonEachConnect.c"
  },
  {
    "function_name": "jsonEachOpen",
    "function_signature": "static int jsonEachOpen(sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor)",
    "test_filename": "tests_json_jsonEachOpen.c"
  },
  {
    "function_name": "jsonEachCursorReset",
    "function_signature": "static void jsonEachCursorReset(JsonEachCursor *p)",
    "test_filename": "tests_json_jsonEachCursorReset.c"
  },
  {
    "function_name": "jsonAppendPathName",
    "function_signature": "static void jsonAppendPathName(JsonEachCursor *p)",
    "test_filename": "tests_json_jsonAppendPathName.c"
  },
  {
    "function_name": "jsonEachNext",
    "function_signature": "static int jsonEachNext(sqlite3_vtab_cursor *cur)",
    "test_filename": "tests_json_jsonEachNext.c"
  },
  {
    "function_name": "jsonEachPathLength",
    "function_signature": "static int jsonEachPathLength(JsonEachCursor *p)",
    "test_filename": "tests_json_jsonEachPathLength.c"
  },
  {
    "function_name": "jsonEachColumn",
    "function_signature": "static int jsonEachColumn(\n  sqlite3_vtab_cursor *cur,   /* The cursor */\n  sqlite3_context *ctx,       /* First argument to sqlite3_result_...() */\n  int iColumn                 /* Which column to return */\n)",
    "test_filename": null
  },
  {
    "function_name": "jsonEachBestIndex",
    "function_signature": "static int jsonEachBestIndex(\n  sqlite3_vtab *tab,\n  sqlite3_index_info *pIdxInfo\n)",
    "test_filename": "tests_json_jsonEachBestIndex.c"
  },
  {
    "function_name": "jsonEachFilter",
    "function_signature": "static int jsonEachFilter(\n  sqlite3_vtab_cursor *cur,\n  int idxNum, const char *idxStr,\n  int argc, sqlite3_value **argv\n)",
    "test_filename": null
  },
  {
    "function_name": "sqlite3RegisterJsonFunctions",
    "function_signature": "void sqlite3RegisterJsonFunctions(void)",
    "test_filename": "tests_json_sqlite3RegisterJsonFunctions.c"
  }
]