CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
wherecode_injectable_functions.json127 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "explainAppendTerm",4    "function_signature": "static void explainAppendTerm(\n  StrAccum *pStr,             /* The text expression being built */\n  Index *pIdx,                /* Index to read column names from */\n  int nTerm,                  /* Number of terms */\n  int iTerm,                  /* Zero-based index of first term. */\n  int bAnd,                   /* Non-zero to append \" AND \" */\n  const char *zOp             /* Name of the operator */\n)",5    "test_filename": "tests_wherecode_explainAppendTerm.c"6  },7  {8    "function_name": "explainIndexRange",9    "function_signature": "static void explainIndexRange(StrAccum *pStr, WhereLoop *pLoop)",10    "test_filename": "tests_wherecode_explainIndexRange.c"11  },12  {13    "function_name": "sqlite3WhereAddExplainText",14    "function_signature": "void sqlite3WhereAddExplainText(\n  Parse *pParse,                  /* Parse context */\n  int addr,                       /* Address of OP_Explain opcode */\n  SrcList *pTabList,              /* Table list this loop refers to */\n  WhereLevel *pLevel,             /* Scan to write OP_Explain opcode for */\n  u16 wctrlFlags                  /* Flags passed to sqlite3WhereBegin() */\n)",15    "test_filename": "tests_wherecode_sqlite3WhereAddExplainText.c"16  },17  {18    "function_name": "sqlite3WhereExplainOneScan",19    "function_signature": "int sqlite3WhereExplainOneScan(\n  Parse *pParse,                  /* Parse context */\n  SrcList *pTabList,              /* Table list this loop refers to */\n  WhereLevel *pLevel,             /* Scan to write OP_Explain opcode for */\n  u16 wctrlFlags                  /* Flags passed to sqlite3WhereBegin() */\n)",20    "test_filename": "tests_wherecode_sqlite3WhereExplainOneScan.c"21  },22  {23    "function_name": "sqlite3WhereExplainBloomFilter",24    "function_signature": "int sqlite3WhereExplainBloomFilter(\n  const Parse *pParse,               /* Parse context */\n  const WhereInfo *pWInfo,           /* WHERE clause */\n  const WhereLevel *pLevel           /* Bloom filter on this level */\n)",25    "test_filename": "tests_wherecode_sqlite3WhereExplainBloomFilter.c"26  },27  {28    "function_name": "sqlite3WhereAddScanStatus",29    "function_signature": "void sqlite3WhereAddScanStatus(\n  Vdbe *v,                        /* Vdbe to add scanstatus entry to */\n  SrcList *pSrclist,              /* FROM clause pLvl reads data from */\n  WhereLevel *pLvl,               /* Level to add scanstatus() entry for */\n  int addrExplain                 /* Address of OP_Explain (or 0) */\n)",30    "test_filename": "tests_wherecode_sqlite3WhereAddScanStatus.c"31  },32  {33    "function_name": "disableTerm",34    "function_signature": "static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm)",35    "test_filename": "tests_wherecode_disableTerm.c"36  },37  {38    "function_name": "codeApplyAffinity",39    "function_signature": "static void codeApplyAffinity(Parse *pParse, int base, int n, char *zAff)",40    "test_filename": "tests_wherecode_codeApplyAffinity.c"41  },42  {43    "function_name": "updateRangeAffinityStr",44    "function_signature": "static void updateRangeAffinityStr(\n  Expr *pRight,                   /* RHS of comparison */\n  int n,                          /* Number of vector elements in comparison */\n  char *zAff                      /* Affinity string to modify */\n)",45    "test_filename": "tests_wherecode_updateRangeAffinityStr.c"46  },47  {48    "function_name": "adjustOrderByCol",49    "function_signature": "static void adjustOrderByCol(ExprList *pOrderBy, ExprList *pEList)",50    "test_filename": "tests_wherecode_adjustOrderByCol.c"51  },52  {53    "function_name": "codeINTerm",54    "function_signature": "static SQLITE_NOINLINE void codeINTerm(\n  Parse *pParse,      /* The parsing context */\n  WhereTerm *pTerm,   /* The term of the WHERE clause to be coded */\n  WhereLevel *pLevel, /* The level of the FROM clause we are working on */\n  int iEq,            /* Index of the equality term within this level */\n  int bRev,           /* True for reverse-order IN operations */\n  int iTarget         /* Attempt to leave results in this register */\n)",55    "test_filename": "tests_wherecode_codeINTerm.c"56  },57  {58    "function_name": "codeEqualityTerm",59    "function_signature": "static int codeEqualityTerm(\n  Parse *pParse,      /* The parsing context */\n  WhereTerm *pTerm,   /* The term of the WHERE clause to be coded */\n  WhereLevel *pLevel, /* The level of the FROM clause we are working on */\n  int iEq,            /* Index of the equality term within this level */\n  int bRev,           /* True for reverse-order IN operations */\n  int iTarget         /* Attempt to leave results in this register */\n)",60    "test_filename": "tests_wherecode_codeEqualityTerm.c"61  },62  {63    "function_name": "codeAllEqualityTerms",64    "function_signature": "static int codeAllEqualityTerms(\n  Parse *pParse,        /* Parsing context */\n  WhereLevel *pLevel,   /* Which nested loop of the FROM we are coding */\n  int bRev,             /* Reverse the order of IN operators */\n  int nExtraReg,        /* Number of extra registers to allocate */\n  char **pzAff          /* OUT: Set to point to affinity string */\n)",65    "test_filename": "tests_wherecode_codeAllEqualityTerms.c"66  },67  {68    "function_name": "whereLikeOptimizationStringFixup",69    "function_signature": "static void whereLikeOptimizationStringFixup(\n  Vdbe *v,                /* prepared statement under construction */\n  WhereLevel *pLevel,     /* The loop that contains the LIKE operator */\n  WhereTerm *pTerm        /* The upper or lower bound just coded */\n)",70    "test_filename": "tests_wherecode_whereLikeOptimizationStringFixup.c"71  },72  {73    "function_name": "codeCursorHintCheckExpr",74    "function_signature": "static int codeCursorHintCheckExpr(Walker *pWalker, Expr *pExpr)",75    "test_filename": "tests_wherecode_codeCursorHintCheckExpr.c"76  },77  {78    "function_name": "codeCursorHintIsOrFunction",79    "function_signature": "static int codeCursorHintIsOrFunction(Walker *pWalker, Expr *pExpr)",80    "test_filename": "tests_wherecode_codeCursorHintIsOrFunction.c"81  },82  {83    "function_name": "codeCursorHintFixExpr",84    "function_signature": "static int codeCursorHintFixExpr(Walker *pWalker, Expr *pExpr)",85    "test_filename": "tests_wherecode_codeCursorHintFixExpr.c"86  },87  {88    "function_name": "codeCursorHint",89    "function_signature": "static void codeCursorHint(\n  SrcItem *pTabItem,  /* FROM clause item */\n  WhereInfo *pWInfo,    /* The where clause */\n  WhereLevel *pLevel,   /* Which loop to provide hints for */\n  WhereTerm *pEndRange  /* Hint this end-of-scan boundary term if not NULL */\n)",90    "test_filename": "tests_wherecode_codeCursorHint.c"91  },92  {93    "function_name": "codeDeferredSeek",94    "function_signature": "static void codeDeferredSeek(\n  WhereInfo *pWInfo,              /* Where clause context */\n  Index *pIdx,                    /* Index scan is using */\n  int iCur,                       /* Cursor for IPK b-tree */\n  int iIdxCur                     /* Index cursor */\n)",95    "test_filename": "tests_wherecode_codeDeferredSeek.c"96  },97  {98    "function_name": "codeExprOrVector",99    "function_signature": "static void codeExprOrVector(Parse *pParse, Expr *p, int iReg, int nReg)",100    "test_filename": "tests_wherecode_codeExprOrVector.c"101  },102  {103    "function_name": "whereApplyPartialIndexConstraints",104    "function_signature": "static void whereApplyPartialIndexConstraints(\n  Expr *pTruth,\n  int iTabCur,\n  WhereClause *pWC\n)",105    "test_filename": "tests_wherecode_whereApplyPartialIndexConstraints.c"106  },107  {108    "function_name": "filterPullDown",109    "function_signature": "static SQLITE_NOINLINE void filterPullDown(\n  Parse *pParse,       /* Parsing context */\n  WhereInfo *pWInfo,   /* Complete information about the WHERE clause */\n  int iLevel,          /* Which level of pWInfo->a[] should be coded */\n  int addrNxt,         /* Jump here to bypass inner loops */\n  Bitmask notReady     /* Loops that are not ready */\n)",110    "test_filename": "tests_wherecode_filterPullDown.c"111  },112  {113    "function_name": "whereLoopIsOneRow",114    "function_signature": "static int whereLoopIsOneRow(WhereLoop *pLoop)",115    "test_filename": "tests_wherecode_whereLoopIsOneRow.c"116  },117  {118    "function_name": "sqlite3WhereCodeOneLoopStart",119    "function_signature": "Bitmask sqlite3WhereCodeOneLoopStart(\n  Parse *pParse,       /* Parsing context */\n  Vdbe *v,             /* Prepared statement under construction */\n  WhereInfo *pWInfo,   /* Complete information about the WHERE clause */\n  int iLevel,          /* Which level of pWInfo->a[] should be coded */\n  WhereLevel *pLevel,  /* The current level pointer */\n  Bitmask notReady     /* Which tables are currently available */\n)",120    "test_filename": "tests_wherecode_sqlite3WhereCodeOneLoopStart.c"121  },122  {123    "function_name": "sqlite3WhereRightJoinLoop",124    "function_signature": "SQLITE_NOINLINE void sqlite3WhereRightJoinLoop(\n  WhereInfo *pWInfo,\n  int iLevel,\n  WhereLevel *pLevel\n)",125    "test_filename": "tests_wherecode_sqlite3WhereRightJoinLoop.c"126  }127]