sqlite / injectable_functions /json_injectable_functions.json
AryaWu's picture
Upload folder using huggingface_hub
7510827 verified
[
{
"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"
}
]