CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
where_injectable_functions.json337 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "sqlite3WhereOrderByLimitOptLabel",4    "function_signature": "int sqlite3WhereOrderByLimitOptLabel(WhereInfo *pWInfo)",5    "test_filename": "tests_where_sqlite3WhereOrderByLimitOptLabel.c"6  },7  {8    "function_name": "sqlite3WhereMinMaxOptEarlyOut",9    "function_signature": "void sqlite3WhereMinMaxOptEarlyOut(Vdbe *v, WhereInfo *pWInfo)",10    "test_filename": "tests_where_sqlite3WhereMinMaxOptEarlyOut.c"11  },12  {13    "function_name": "sqlite3WhereOkOnePass",14    "function_signature": "int sqlite3WhereOkOnePass(WhereInfo *pWInfo, int *aiCur)",15    "test_filename": "tests_where_sqlite3WhereOkOnePass.c"16  },17  {18    "function_name": "whereOrInsert",19    "function_signature": "static int whereOrInsert(\n  WhereOrSet *pSet,      /* The WhereOrSet to be updated */\n  Bitmask prereq,        /* Prerequisites of the new entry */\n  LogEst rRun,           /* Run-cost of the new entry */\n  LogEst nOut            /* Number of outputs for the new entry */\n)",20    "test_filename": "tests_where_whereOrInsert.c"21  },22  {23    "function_name": "sqlite3WhereGetMask",24    "function_signature": "Bitmask sqlite3WhereGetMask(WhereMaskSet *pMaskSet, int iCursor)",25    "test_filename": "tests_where_sqlite3WhereGetMask.c"26  },27  {28    "function_name": "findIndexCol",29    "function_signature": "static int findIndexCol(\n  Parse *pParse,                  /* Parse context */\n  ExprList *pList,                /* Expression list to search */\n  int iBase,                      /* Cursor for table associated with pIdx */\n  Index *pIdx,                    /* Index to match column of */\n  int iCol                        /* Column of index to match */\n)",30    "test_filename": "tests_where_findIndexCol.c"31  },32  {33    "function_name": "indexColumnNotNull",34    "function_signature": "static int indexColumnNotNull(Index *pIdx, int iCol)",35    "test_filename": "tests_where_indexColumnNotNull.c"36  },37  {38    "function_name": "isDistinctRedundant",39    "function_signature": "static int isDistinctRedundant(\n  Parse *pParse,            /* Parsing context */\n  SrcList *pTabList,        /* The FROM clause */\n  WhereClause *pWC,         /* The WHERE clause */\n  ExprList *pDistinct       /* The result set that needs to be DISTINCT */\n)",40    "test_filename": "tests_where_isDistinctRedundant.c"41  },42  {43    "function_name": "translateColumnToCopy",44    "function_signature": "static void translateColumnToCopy(\n  Parse *pParse,      /* Parsing context */\n  int iStart,         /* Translate from this opcode to the end */\n  int iTabCur,        /* OP_Column/OP_Rowid references to this table */\n  int iRegister,      /* The first column is in this register */\n  int iAutoidxCur     /* If non-zero, cursor of autoindex being generated */\n)",45    "test_filename": "tests_where_translateColumnToCopy.c"46  },47  {48    "function_name": "whereTraceIndexInfoInputs",49    "function_signature": "static void whereTraceIndexInfoInputs(\n  sqlite3_index_info *p,   /* The IndexInfo object */\n  Table *pTab              /* The TABLE that is the virtual table */\n)",50    "test_filename": "tests_where_whereTraceIndexInfoInputs.c"51  },52  {53    "function_name": "whereTraceIndexInfoOutputs",54    "function_signature": "static void whereTraceIndexInfoOutputs(\n  sqlite3_index_info *p,   /* The IndexInfo object */\n  Table *pTab              /* The TABLE that is the virtual table */\n)",55    "test_filename": "tests_where_whereTraceIndexInfoOutputs.c"56  },57  {58    "function_name": "constraintCompatibleWithOuterJoin",59    "function_signature": "static int constraintCompatibleWithOuterJoin(\n  const WhereTerm *pTerm,       /* WHERE clause term to check */\n  const SrcItem *pSrc           /* Table we are trying to access */\n)",60    "test_filename": "tests_where_constraintCompatibleWithOuterJoin.c"61  },62  {63    "function_name": "columnIsGoodIndexCandidate",64    "function_signature": "static SQLITE_NOINLINE int columnIsGoodIndexCandidate(\n  const Table *pTab,\n  int iCol\n)",65    "test_filename": "tests_where_columnIsGoodIndexCandidate.c"66  },67  {68    "function_name": "termCanDriveIndex",69    "function_signature": "static int termCanDriveIndex(\n  const WhereTerm *pTerm,        /* WHERE clause term to check */\n  const SrcItem *pSrc,           /* Table we are trying to access */\n  const Bitmask notReady         /* Tables in outer loops of the join */\n)",70    "test_filename": "tests_where_termCanDriveIndex.c"71  },72  {73    "function_name": "explainAutomaticIndex",74    "function_signature": "static void explainAutomaticIndex(\n  Parse *pParse,\n  Index *pIdx,                    /* Automatic index to explain */\n  int bPartial,                   /* True if pIdx is a partial index */\n  int *pAddrExplain               /* OUT: Address of OP_Explain */\n)",75    "test_filename": "tests_where_explainAutomaticIndex.c"76  },77  {78    "function_name": "constructAutomaticIndex",79    "function_signature": "static SQLITE_NOINLINE void constructAutomaticIndex(\n  Parse *pParse,              /* The parsing context */\n  WhereClause *pWC,           /* The WHERE clause */\n  const Bitmask notReady,     /* Mask of cursors that are not available */\n  WhereLevel *pLevel          /* Write new index here */\n)",80    "test_filename": "tests_where_constructAutomaticIndex.c"81  },82  {83    "function_name": "sqlite3ConstructBloomFilter",84    "function_signature": "static SQLITE_NOINLINE void sqlite3ConstructBloomFilter(\n  WhereInfo *pWInfo,    /* The WHERE clause */\n  int iLevel,           /* Index in pWInfo->a[] that is pLevel */\n  WhereLevel *pLevel,   /* Make a Bloom filter for this FROM term */\n  Bitmask notReady      /* Loops that are not ready */\n)",85    "test_filename": "tests_where_sqlite3ConstructBloomFilter.c"86  },87  {88    "function_name": "freeIndexInfo",89    "function_signature": "static void freeIndexInfo(sqlite3 *db, sqlite3_index_info *pIdxInfo)",90    "test_filename": "tests_where_freeIndexInfo.c"91  },92  {93    "function_name": "vtabBestIndex",94    "function_signature": "static int vtabBestIndex(Parse *pParse, Table *pTab, sqlite3_index_info *p)",95    "test_filename": "tests_where_vtabBestIndex.c"96  },97  {98    "function_name": "whereKeyStats",99    "function_signature": "static int whereKeyStats(\n  Parse *pParse,              /* Database connection */\n  Index *pIdx,                /* Index to consider domain of */\n  UnpackedRecord *pRec,       /* Vector of values to consider */\n  int roundUp,                /* Round up if true.  Round down if false */\n  tRowcnt *aStat              /* OUT: stats written here */\n)",100    "test_filename": "tests_where_whereKeyStats.c"101  },102  {103    "function_name": "whereRangeAdjust",104    "function_signature": "static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew)",105    "test_filename": "tests_where_whereRangeAdjust.c"106  },107  {108    "function_name": "whereRangeSkipScanEst",109    "function_signature": "static int whereRangeSkipScanEst(\n  Parse *pParse,       /* Parsing & code generating context */\n  WhereTerm *pLower,   /* Lower bound on the range. ex: \"x>123\" Might be NULL */\n  WhereTerm *pUpper,   /* Upper bound on the range. ex: \"x<455\" Might be NULL */\n  WhereLoop *pLoop,    /* Update the .nOut value of this loop */\n  int *pbDone          /* Set to true if at least one expr. value extracted */\n)",110    "test_filename": "tests_where_whereRangeSkipScanEst.c"111  },112  {113    "function_name": "whereRangeScanEst",114    "function_signature": "static int whereRangeScanEst(\n  Parse *pParse,       /* Parsing & code generating context */\n  WhereLoopBuilder *pBuilder,\n  WhereTerm *pLower,   /* Lower bound on the range. ex: \"x>123\" Might be NULL */\n  WhereTerm *pUpper,   /* Upper bound on the range. ex: \"x<455\" Might be NULL */\n  WhereLoop *pLoop     /* Modify the .nOut and maybe .rRun fields */\n)",115    "test_filename": "tests_where_whereRangeScanEst.c"116  },117  {118    "function_name": "whereEqualScanEst",119    "function_signature": "static int whereEqualScanEst(\n  Parse *pParse,       /* Parsing & code generating context */\n  WhereLoopBuilder *pBuilder,\n  Expr *pExpr,         /* Expression for VALUE in the x=VALUE constraint */\n  tRowcnt *pnRow       /* Write the revised row estimate here */\n)",120    "test_filename": "tests_where_whereEqualScanEst.c"121  },122  {123    "function_name": "whereInScanEst",124    "function_signature": "static int whereInScanEst(\n  Parse *pParse,       /* Parsing & code generating context */\n  WhereLoopBuilder *pBuilder,\n  ExprList *pList,     /* The value list on the RHS of \"x IN (v1,v2,v3,...)\" */\n  tRowcnt *pnRow       /* Write the revised row estimate here */\n)",125    "test_filename": "tests_where_whereInScanEst.c"126  },127  {128    "function_name": "sqlite3WhereTermPrint",129    "function_signature": "void sqlite3WhereTermPrint(WhereTerm *pTerm, int iTerm)",130    "test_filename": "tests_where_sqlite3WhereTermPrint.c"131  },132  {133    "function_name": "sqlite3WhereLoopPrint",134    "function_signature": "void sqlite3WhereLoopPrint(const WhereLoop *p, const WhereClause *pWC)",135    "test_filename": "tests_where_sqlite3WhereLoopPrint.c"136  },137  {138    "function_name": "whereLoopClearUnion",139    "function_signature": "static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p)",140    "test_filename": "tests_where_whereLoopClearUnion.c"141  },142  {143    "function_name": "whereLoopClear",144    "function_signature": "static void whereLoopClear(sqlite3 *db, WhereLoop *p)",145    "test_filename": "tests_where_whereLoopClear.c"146  },147  {148    "function_name": "whereLoopResize",149    "function_signature": "static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n)",150    "test_filename": "tests_where_whereLoopResize.c"151  },152  {153    "function_name": "whereLoopXfer",154    "function_signature": "static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom)",155    "test_filename": "tests_where_whereLoopXfer.c"156  },157  {158    "function_name": "whereInfoFree",159    "function_signature": "static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo)",160    "test_filename": "tests_where_whereInfoFree.c"161  },162  {163    "function_name": "whereLoopCheaperProperSubset",164    "function_signature": "static int whereLoopCheaperProperSubset(\n  const WhereLoop *pX,       /* First WhereLoop to compare */\n  const WhereLoop *pY        /* Compare against this WhereLoop */\n)",165    "test_filename": "tests_where_whereLoopCheaperProperSubset.c"166  },167  {168    "function_name": "whereLoopAdjustCost",169    "function_signature": "static void whereLoopAdjustCost(const WhereLoop *p, WhereLoop *pTemplate)",170    "test_filename": "tests_where_whereLoopAdjustCost.c"171  },172  {173    "function_name": "whereLoopInsert",174    "function_signature": "static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate)",175    "test_filename": "tests_where_whereLoopInsert.c"176  },177  {178    "function_name": "whereLoopOutputAdjust",179    "function_signature": "static void whereLoopOutputAdjust(\n  WhereClause *pWC,      /* The WHERE clause */\n  WhereLoop *pLoop,      /* The loop to adjust downward */\n  LogEst nRow            /* Number of rows in the entire table */\n)",180    "test_filename": "tests_where_whereLoopOutputAdjust.c"181  },182  {183    "function_name": "whereRangeVectorLen",184    "function_signature": "static int whereRangeVectorLen(\n  Parse *pParse,       /* Parsing context */\n  int iCur,            /* Cursor open on pIdx */\n  Index *pIdx,         /* The index to be used for a inequality constraint */\n  int nEq,             /* Number of prior equality constraints on same index */\n  WhereTerm *pTerm     /* The vector inequality constraint */\n)",185    "test_filename": "tests_where_whereRangeVectorLen.c"186  },187  {188    "function_name": "whereLoopAddBtreeIndex",189    "function_signature": "static int whereLoopAddBtreeIndex(\n  WhereLoopBuilder *pBuilder,     /* The WhereLoop factory */\n  SrcItem *pSrc,                  /* FROM clause term being analyzed */\n  Index *pProbe,                  /* An index on pSrc */\n  LogEst nInMul                   /* log(Number of iterations due to IN) */\n)",190    "test_filename": "tests_where_whereLoopAddBtreeIndex.c"191  },192  {193    "function_name": "indexMightHelpWithOrderBy",194    "function_signature": "static int indexMightHelpWithOrderBy(\n  WhereLoopBuilder *pBuilder,\n  Index *pIndex,\n  int iCursor\n)",195    "test_filename": "tests_where_indexMightHelpWithOrderBy.c"196  },197  {198    "function_name": "whereUsablePartialIndex",199    "function_signature": "static int whereUsablePartialIndex(\n  int iTab,             /* The table for which we want an index */\n  u8 jointype,          /* The JT_* flags on the join */\n  WhereClause *pWC,     /* The WHERE clause of the query */\n  Expr *pWhere          /* The WHERE clause from the partial index */\n)",200    "test_filename": "tests_where_whereUsablePartialIndex.c"201  },202  {203    "function_name": "exprIsCoveredByIndex",204    "function_signature": "static int exprIsCoveredByIndex(\n  const Expr *pExpr,\n  const Index *pIdx,\n  int iTabCur\n)",205    "test_filename": "tests_where_exprIsCoveredByIndex.c"206  },207  {208    "function_name": "whereIsCoveringIndexWalkCallback",209    "function_signature": "static int whereIsCoveringIndexWalkCallback(Walker *pWalk, Expr *pExpr)",210    "test_filename": "tests_where_whereIsCoveringIndexWalkCallback.c"211  },212  {213    "function_name": "whereIsCoveringIndex",214    "function_signature": "static SQLITE_NOINLINE u32 whereIsCoveringIndex(\n  WhereInfo *pWInfo,     /* The WHERE clause context */\n  Index *pIdx,           /* Index that is being tested */\n  int iTabCur            /* Cursor for the table being indexed */\n)",215    "test_filename": "tests_where_whereIsCoveringIndex.c"216  },217  {218    "function_name": "wherePartIdxExpr",219    "function_signature": "static void wherePartIdxExpr(\n  Parse *pParse,                  /* Parse context */\n  Index *pIdx,                    /* Partial index being processed */\n  Expr *pPart,                    /* WHERE clause being processed */\n  Bitmask *pMask,                 /* Mask to clear bits in */\n  int iIdxCur,                    /* Cursor number for index */\n  SrcItem *pItem                  /* The FROM clause entry for the table */\n)",220    "test_filename": "tests_where_wherePartIdxExpr.c"221  },222  {223    "function_name": "whereLoopAddBtree",224    "function_signature": "static int whereLoopAddBtree(\n  WhereLoopBuilder *pBuilder, /* WHERE clause information */\n  Bitmask mPrereq             /* Extra prerequisites for using this table */\n)",225    "test_filename": "tests_where_whereLoopAddBtree.c"226  },227  {228    "function_name": "allConstraintsUsed",229    "function_signature": "static int allConstraintsUsed(\n  struct sqlite3_index_constraint_usage *aUsage, \n  int nCons\n)",230    "test_filename": "tests_where_allConstraintsUsed.c"231  },232  {233    "function_name": "whereLoopAddVirtualOne",234    "function_signature": "static int whereLoopAddVirtualOne(\n  WhereLoopBuilder *pBuilder,\n  Bitmask mPrereq,                /* Mask of tables that must be used. */\n  Bitmask mUsable,                /* Mask of usable tables */\n  u16 mExclude,                   /* Exclude terms using these operators */\n  sqlite3_index_info *pIdxInfo,   /* Populated object for xBestIndex */\n  u16 mNoOmit,                    /* Do not omit these constraints */\n  int *pbIn,                      /* OUT: True if plan uses an IN(...) op */\n  int *pbRetryLimit               /* OUT: Retry without LIMIT/OFFSET */\n)",235    "test_filename": null236  },237  {238    "function_name": "sqlite3_vtab_in",239    "function_signature": "int sqlite3_vtab_in(sqlite3_index_info *pIdxInfo, int iCons, int bHandle)",240    "test_filename": "tests_where_sqlite3_vtab_in.c"241  },242  {243    "function_name": "sqlite3_vtab_rhs_value",244    "function_signature": "int sqlite3_vtab_rhs_value(\n  sqlite3_index_info *pIdxInfo,   /* Copy of first argument to xBestIndex */\n  int iCons,                      /* Constraint for which RHS is wanted */\n  sqlite3_value **ppVal           /* Write value extracted here */\n)",245    "test_filename": "tests_where_sqlite3_vtab_rhs_value.c"246  },247  {248    "function_name": "sqlite3VtabUsesAllSchemas",249    "function_signature": "void sqlite3VtabUsesAllSchemas(Parse *pParse)",250    "test_filename": "tests_where_sqlite3VtabUsesAllSchemas.c"251  },252  {253    "function_name": "whereLoopAddVirtual",254    "function_signature": "static int whereLoopAddVirtual(\n  WhereLoopBuilder *pBuilder,  /* WHERE clause information */\n  Bitmask mPrereq,             /* Tables that must be scanned before this one */\n  Bitmask mUnusable            /* Tables that must be scanned after this one */\n)",255    "test_filename": "tests_where_whereLoopAddVirtual.c"256  },257  {258    "function_name": "whereLoopAddOr",259    "function_signature": "static int whereLoopAddOr(\n  WhereLoopBuilder *pBuilder,\n  Bitmask mPrereq,\n  Bitmask mUnusable\n)",260    "test_filename": "tests_where_whereLoopAddOr.c"261  },262  {263    "function_name": "whereLoopAddAll",264    "function_signature": "static int whereLoopAddAll(WhereLoopBuilder *pBuilder)",265    "test_filename": "tests_where_whereLoopAddAll.c"266  },267  {268    "function_name": "wherePathMatchSubqueryOB",269    "function_signature": "static SQLITE_NOINLINE int wherePathMatchSubqueryOB(\n  WhereInfo *pWInfo,      /* The WHERE clause */\n  WhereLoop *pLoop,       /* The nested loop term that is a subquery */\n  int iLoop,              /* Which level of the nested loop.  0==outermost */\n  int iCur,               /* Cursor used by the this loop */\n  ExprList *pOrderBy,     /* The ORDER BY clause on the whole query */\n  Bitmask *pRevMask,      /* When loops need to go in reverse order */\n  Bitmask *pOBSat         /* Which terms of pOrderBy are satisfied so far */\n)",270    "test_filename": "tests_where_wherePathMatchSubqueryOB.c"271  },272  {273    "function_name": "wherePathSatisfiesOrderBy",274    "function_signature": "static i8 wherePathSatisfiesOrderBy(\n  WhereInfo *pWInfo,    /* The WHERE clause */\n  ExprList *pOrderBy,   /* ORDER BY or GROUP BY or DISTINCT clause to check */\n  WherePath *pPath,     /* The WherePath to check */\n  u16 wctrlFlags,       /* WHERE_GROUPBY or _DISTINCTBY or _ORDERBY_LIMIT */\n  u16 nLoop,            /* Number of entries in pPath->aLoop[] */\n  WhereLoop *pLast,     /* Add this WhereLoop to the end of pPath->aLoop[] */\n  Bitmask *pRevMask     /* OUT: Mask of WhereLoops to run in reverse order */\n)",275    "test_filename": "tests_where_wherePathSatisfiesOrderBy.c"276  },277  {278    "function_name": "whereSortingCost",279    "function_signature": "static LogEst whereSortingCost(\n  WhereInfo *pWInfo, /* Query planning context */\n  LogEst nRow,       /* Estimated number of rows to sort */\n  int nOrderBy,      /* Number of ORDER BY clause terms */\n  int nSorted        /* Number of initial ORDER BY terms naturally in order */\n)",280    "test_filename": "tests_where_whereSortingCost.c"281  },282  {283    "function_name": "computeMxChoice",284    "function_signature": "static int computeMxChoice(WhereInfo *pWInfo)",285    "test_filename": "tests_where_computeMxChoice.c"286  },287  {288    "function_name": "whereLoopIsNoBetter",289    "function_signature": "static SQLITE_NOINLINE int whereLoopIsNoBetter(\n  const WhereLoop *pCandidate,\n  const WhereLoop *pBaseline\n)",290    "test_filename": "tests_where_whereLoopIsNoBetter.c"291  },292  {293    "function_name": "wherePathSolver",294    "function_signature": "static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst)",295    "test_filename": "tests_where_wherePathSolver.c"296  },297  {298    "function_name": "whereInterstageHeuristic",299    "function_signature": "static SQLITE_NOINLINE void whereInterstageHeuristic(WhereInfo *pWInfo)",300    "test_filename": "tests_where_whereInterstageHeuristic.c"301  },302  {303    "function_name": "whereShortCut",304    "function_signature": "static int whereShortCut(WhereLoopBuilder *pBuilder)",305    "test_filename": "tests_where_whereShortCut.c"306  },307  {308    "function_name": "showAllWhereLoops",309    "function_signature": "static void showAllWhereLoops(WhereInfo *pWInfo, WhereClause *pWC)",310    "test_filename": "tests_where_showAllWhereLoops.c"311  },312  {313    "function_name": "whereOmitNoopJoin",314    "function_signature": "static SQLITE_NOINLINE Bitmask whereOmitNoopJoin(\n  WhereInfo *pWInfo,\n  Bitmask notReady\n)",315    "test_filename": "tests_where_whereOmitNoopJoin.c"316  },317  {318    "function_name": "whereCheckIfBloomFilterIsUseful",319    "function_signature": "static SQLITE_NOINLINE void whereCheckIfBloomFilterIsUseful(\n  const WhereInfo *pWInfo\n)",320    "test_filename": "tests_where_whereCheckIfBloomFilterIsUseful.c"321  },322  {323    "function_name": "whereAddIndexedExpr",324    "function_signature": "static SQLITE_NOINLINE void whereAddIndexedExpr(\n  Parse *pParse,     /* Add IndexedExpr entries to pParse->pIdxEpr */\n  Index *pIdx,       /* The index-on-expression that contains the expressions */\n  int iIdxCur,       /* Cursor number for pIdx */\n  SrcItem *pTabItem  /* The FROM clause entry for the table */\n)",325    "test_filename": "tests_where_whereAddIndexedExpr.c"326  },327  {328    "function_name": "whereReverseScanOrder",329    "function_signature": "static SQLITE_NOINLINE void whereReverseScanOrder(WhereInfo *pWInfo)",330    "test_filename": "tests_where_whereReverseScanOrder.c"331  },332  {333    "function_name": "sqlite3WhereEnd",334    "function_signature": "void sqlite3WhereEnd(WhereInfo *pWInfo)",335    "test_filename": "tests_where_sqlite3WhereEnd.c"336  }337]