CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
json_injectable_functions.json352 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "jsonCacheInsert",4    "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)",5    "test_filename": "tests_json_jsonCacheInsert.c"6  },7  {8    "function_name": "jsonStringGrow",9    "function_signature": "static int jsonStringGrow(JsonString *p, u32 N)",10    "test_filename": "tests_json_jsonStringGrow.c"11  },12  {13    "function_name": "jsonStringExpandAndAppend",14    "function_signature": "static SQLITE_NOINLINE void jsonStringExpandAndAppend(\n  JsonString *p,\n  const char *zIn,\n  u32 N\n)",15    "test_filename": "tests_json_jsonStringExpandAndAppend.c"16  },17  {18    "function_name": "jsonAppendControlChar",19    "function_signature": "static void jsonAppendControlChar(JsonString *p, u8 c)",20    "test_filename": "tests_json_jsonAppendControlChar.c"21  },22  {23    "function_name": "jsonAppendString",24    "function_signature": "static void jsonAppendString(JsonString *p, const char *zIn, u32 N)",25    "test_filename": "tests_json_jsonAppendString.c"26  },27  {28    "function_name": "jsonAppendSqlValue",29    "function_signature": "static void jsonAppendSqlValue(\n  JsonString *p,                 /* Append to this JSON string */\n  sqlite3_value *pValue          /* Value to append */\n)",30    "test_filename": "tests_json_jsonAppendSqlValue.c"31  },32  {33    "function_name": "jsonReturnString",34    "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)",35    "test_filename": "tests_json_jsonReturnString.c"36  },37  {38    "function_name": "jsonParseReset",39    "function_signature": "static void jsonParseReset(JsonParse *pParse)",40    "test_filename": "tests_json_jsonParseReset.c"41  },42  {43    "function_name": "jsonParseFree",44    "function_signature": "static void jsonParseFree(JsonParse *pParse)",45    "test_filename": "tests_json_jsonParseFree.c"46  },47  {48    "function_name": "json5Whitespace",49    "function_signature": "static int json5Whitespace(const char *zIn)",50    "test_filename": "tests_json_json5Whitespace.c"51  },52  {53    "function_name": "jsonBlobExpand",54    "function_signature": "static int jsonBlobExpand(JsonParse *pParse, u32 N)",55    "test_filename": "tests_json_jsonBlobExpand.c"56  },57  {58    "function_name": "jsonBlobMakeEditable",59    "function_signature": "static int jsonBlobMakeEditable(JsonParse *pParse, u32 nExtra)",60    "test_filename": "tests_json_jsonBlobMakeEditable.c"61  },62  {63    "function_name": "jsonBlobExpandAndAppendOneByte",64    "function_signature": "static SQLITE_NOINLINE void jsonBlobExpandAndAppendOneByte(\n  JsonParse *pParse,\n  u8 c\n)",65    "test_filename": "tests_json_jsonBlobExpandAndAppendOneByte.c"66  },67  {68    "function_name": "jsonBlobAppendNode",69    "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)",70    "test_filename": "tests_json_jsonBlobAppendNode.c"71  },72  {73    "function_name": "jsonBlobChangePayloadSize",74    "function_signature": "static int jsonBlobChangePayloadSize(\n  JsonParse *pParse,\n  u32 i,\n  u32 szPayload\n)",75    "test_filename": "tests_json_jsonBlobChangePayloadSize.c"76  },77  {78    "function_name": "jsonbValidityCheck",79    "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)",80    "test_filename": "tests_json_jsonbValidityCheck.c"81  },82  {83    "function_name": "jsonTranslateTextToBlob",84    "function_signature": "static int jsonTranslateTextToBlob(JsonParse *pParse, u32 i)",85    "test_filename": null86  },87  {88    "function_name": "jsonConvertTextToBlob",89    "function_signature": "static int jsonConvertTextToBlob(\n  JsonParse *pParse,           /* Initialize and fill this JsonParse object */\n  sqlite3_context *pCtx        /* Report errors here */\n)",90    "test_filename": "tests_json_jsonConvertTextToBlob.c"91  },92  {93    "function_name": "jsonReturnStringAsBlob",94    "function_signature": "static void jsonReturnStringAsBlob(JsonString *pStr)",95    "test_filename": "tests_json_jsonReturnStringAsBlob.c"96  },97  {98    "function_name": "jsonbPayloadSize",99    "function_signature": "static u32 jsonbPayloadSize(const JsonParse *pParse, u32 i, u32 *pSz)",100    "test_filename": "tests_json_jsonbPayloadSize.c"101  },102  {103    "function_name": "jsonTranslateBlobToText",104    "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)",105    "test_filename": "tests_json_jsonTranslateBlobToText.c"106  },107  {108    "function_name": "jsonTranslateBlobToPrettyText",109    "function_signature": "static u32 jsonTranslateBlobToPrettyText(\n  JsonPretty *pPretty,       /* Pretty-printing context */\n  u32 i                      /* Start rendering at this index */\n)",110    "test_filename": "tests_json_jsonTranslateBlobToPrettyText.c"111  },112  {113    "function_name": "jsonbArrayCount",114    "function_signature": "static u32 jsonbArrayCount(JsonParse *pParse, u32 iRoot)",115    "test_filename": "tests_json_jsonbArrayCount.c"116  },117  {118    "function_name": "jsonAfterEditSizeAdjust",119    "function_signature": "static void jsonAfterEditSizeAdjust(JsonParse *pParse, u32 iRoot)",120    "test_filename": "tests_json_jsonAfterEditSizeAdjust.c"121  },122  {123    "function_name": "jsonBlobOverwrite",124    "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)",125    "test_filename": "tests_json_jsonBlobOverwrite.c"126  },127  {128    "function_name": "jsonBlobEdit",129    "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)",130    "test_filename": "tests_json_jsonBlobEdit.c"131  },132  {133    "function_name": "jsonBytesToBypass",134    "function_signature": "static u32 jsonBytesToBypass(const char *z, u32 n)",135    "test_filename": "tests_json_jsonBytesToBypass.c"136  },137  {138    "function_name": "jsonUnescapeOneChar",139    "function_signature": "static u32 jsonUnescapeOneChar(const char *z, u32 n, u32 *piOut)",140    "test_filename": "tests_json_jsonUnescapeOneChar.c"141  },142  {143    "function_name": "jsonLabelCompareEscaped",144    "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)",145    "test_filename": "tests_json_jsonLabelCompareEscaped.c"146  },147  {148    "function_name": "jsonLabelCompare",149    "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)",150    "test_filename": "tests_json_jsonLabelCompare.c"151  },152  {153    "function_name": "jsonCreateEditSubstructure",154    "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)",155    "test_filename": "tests_json_jsonCreateEditSubstructure.c"156  },157  {158    "function_name": "jsonLookupStep",159    "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)",160    "test_filename": "tests_json_jsonLookupStep.c"161  },162  {163    "function_name": "jsonReturnTextJsonFromBlob",164    "function_signature": "static void jsonReturnTextJsonFromBlob(\n  sqlite3_context *ctx,\n  const u8 *aBlob,\n  u32 nBlob\n)",165    "test_filename": "tests_json_jsonReturnTextJsonFromBlob.c"166  },167  {168    "function_name": "jsonReturnFromBlob",169    "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)",170    "test_filename": "tests_json_jsonReturnFromBlob.c"171  },172  {173    "function_name": "jsonFunctionArgToBlob",174    "function_signature": "static int jsonFunctionArgToBlob(\n  sqlite3_context *ctx,\n  sqlite3_value *pArg,\n  JsonParse *pParse\n)",175    "test_filename": "tests_json_jsonFunctionArgToBlob.c"176  },177  {178    "function_name": "jsonInsertIntoBlob",179    "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)",180    "test_filename": "tests_json_jsonInsertIntoBlob.c"181  },182  {183    "function_name": "jsonArgIsJsonb",184    "function_signature": "static int jsonArgIsJsonb(sqlite3_value *pArg, JsonParse *p)",185    "test_filename": "tests_json_jsonArgIsJsonb.c"186  },187  {188    "function_name": "jsonReturnParse",189    "function_signature": "static void jsonReturnParse(\n  sqlite3_context *ctx,\n  JsonParse *p\n)",190    "test_filename": "tests_json_jsonReturnParse.c"191  },192  {193    "function_name": "jsonDebugPrintBlob",194    "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)",195    "test_filename": "tests_json_jsonDebugPrintBlob.c"196  },197  {198    "function_name": "jsonShowParse",199    "function_signature": "static void jsonShowParse(JsonParse *pParse)",200    "test_filename": "tests_json_jsonShowParse.c"201  },202  {203    "function_name": "jsonParseFunc",204    "function_signature": "static void jsonParseFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",205    "test_filename": "tests_json_jsonParseFunc.c"206  },207  {208    "function_name": "jsonQuoteFunc",209    "function_signature": "static void jsonQuoteFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",210    "test_filename": "tests_json_jsonQuoteFunc.c"211  },212  {213    "function_name": "jsonArrayFunc",214    "function_signature": "static void jsonArrayFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",215    "test_filename": "tests_json_jsonArrayFunc.c"216  },217  {218    "function_name": "jsonArrayLengthFunc",219    "function_signature": "static void jsonArrayLengthFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",220    "test_filename": "tests_json_jsonArrayLengthFunc.c"221  },222  {223    "function_name": "jsonExtractFunc",224    "function_signature": "static void jsonExtractFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",225    "test_filename": "tests_json_jsonExtractFunc.c"226  },227  {228    "function_name": "jsonMergePatch",229    "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)",230    "test_filename": "tests_json_jsonMergePatch.c"231  },232  {233    "function_name": "jsonPatchFunc",234    "function_signature": "static void jsonPatchFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",235    "test_filename": "tests_json_jsonPatchFunc.c"236  },237  {238    "function_name": "jsonObjectFunc",239    "function_signature": "static void jsonObjectFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",240    "test_filename": "tests_json_jsonObjectFunc.c"241  },242  {243    "function_name": "jsonRemoveFunc",244    "function_signature": "static void jsonRemoveFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",245    "test_filename": "tests_json_jsonRemoveFunc.c"246  },247  {248    "function_name": "jsonReplaceFunc",249    "function_signature": "static void jsonReplaceFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",250    "test_filename": "tests_json_jsonReplaceFunc.c"251  },252  {253    "function_name": "jsonSetFunc",254    "function_signature": "static void jsonSetFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",255    "test_filename": "tests_json_jsonSetFunc.c"256  },257  {258    "function_name": "jsonTypeFunc",259    "function_signature": "static void jsonTypeFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",260    "test_filename": "tests_json_jsonTypeFunc.c"261  },262  {263    "function_name": "jsonPrettyFunc",264    "function_signature": "static void jsonPrettyFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",265    "test_filename": "tests_json_jsonPrettyFunc.c"266  },267  {268    "function_name": "jsonValidFunc",269    "function_signature": "static void jsonValidFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",270    "test_filename": "tests_json_jsonValidFunc.c"271  },272  {273    "function_name": "jsonErrorFunc",274    "function_signature": "static void jsonErrorFunc(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",275    "test_filename": "tests_json_jsonErrorFunc.c"276  },277  {278    "function_name": "jsonArrayStep",279    "function_signature": "static void jsonArrayStep(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",280    "test_filename": "tests_json_jsonArrayStep.c"281  },282  {283    "function_name": "jsonArrayCompute",284    "function_signature": "static void jsonArrayCompute(sqlite3_context *ctx, int isFinal)",285    "test_filename": "tests_json_jsonArrayCompute.c"286  },287  {288    "function_name": "jsonGroupInverse",289    "function_signature": "static void jsonGroupInverse(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",290    "test_filename": "tests_json_jsonGroupInverse.c"291  },292  {293    "function_name": "jsonObjectStep",294    "function_signature": "static void jsonObjectStep(\n  sqlite3_context *ctx,\n  int argc,\n  sqlite3_value **argv\n)",295    "test_filename": "tests_json_jsonObjectStep.c"296  },297  {298    "function_name": "jsonObjectCompute",299    "function_signature": "static void jsonObjectCompute(sqlite3_context *ctx, int isFinal)",300    "test_filename": "tests_json_jsonObjectCompute.c"301  },302  {303    "function_name": "jsonEachConnect",304    "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)",305    "test_filename": "tests_json_jsonEachConnect.c"306  },307  {308    "function_name": "jsonEachOpen",309    "function_signature": "static int jsonEachOpen(sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor)",310    "test_filename": "tests_json_jsonEachOpen.c"311  },312  {313    "function_name": "jsonEachCursorReset",314    "function_signature": "static void jsonEachCursorReset(JsonEachCursor *p)",315    "test_filename": "tests_json_jsonEachCursorReset.c"316  },317  {318    "function_name": "jsonAppendPathName",319    "function_signature": "static void jsonAppendPathName(JsonEachCursor *p)",320    "test_filename": "tests_json_jsonAppendPathName.c"321  },322  {323    "function_name": "jsonEachNext",324    "function_signature": "static int jsonEachNext(sqlite3_vtab_cursor *cur)",325    "test_filename": "tests_json_jsonEachNext.c"326  },327  {328    "function_name": "jsonEachPathLength",329    "function_signature": "static int jsonEachPathLength(JsonEachCursor *p)",330    "test_filename": "tests_json_jsonEachPathLength.c"331  },332  {333    "function_name": "jsonEachColumn",334    "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)",335    "test_filename": null336  },337  {338    "function_name": "jsonEachBestIndex",339    "function_signature": "static int jsonEachBestIndex(\n  sqlite3_vtab *tab,\n  sqlite3_index_info *pIdxInfo\n)",340    "test_filename": "tests_json_jsonEachBestIndex.c"341  },342  {343    "function_name": "jsonEachFilter",344    "function_signature": "static int jsonEachFilter(\n  sqlite3_vtab_cursor *cur,\n  int idxNum, const char *idxStr,\n  int argc, sqlite3_value **argv\n)",345    "test_filename": null346  },347  {348    "function_name": "sqlite3RegisterJsonFunctions",349    "function_signature": "void sqlite3RegisterJsonFunctions(void)",350    "test_filename": "tests_json_sqlite3RegisterJsonFunctions.c"351  }352]