CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
whereexpr_injectable_functions.json127 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "whereClauseInsert",4    "function_signature": "static int whereClauseInsert(WhereClause *pWC, Expr *p, u16 wtFlags)",5    "test_filename": "tests_whereexpr_whereClauseInsert.c"6  },7  {8    "function_name": "allowedOp",9    "function_signature": "static int allowedOp(int op)",10    "test_filename": "tests_whereexpr_allowedOp.c"11  },12  {13    "function_name": "exprCommute",14    "function_signature": "static u16 exprCommute(Parse *pParse, Expr *pExpr)",15    "test_filename": "tests_whereexpr_exprCommute.c"16  },17  {18    "function_name": "operatorMask",19    "function_signature": "static u16 operatorMask(int op)",20    "test_filename": "tests_whereexpr_operatorMask.c"21  },22  {23    "function_name": "isLikeOrGlob",24    "function_signature": "static int isLikeOrGlob(\n  Parse *pParse,    /* Parsing and code generating context */\n  Expr *pExpr,      /* Test this expression */\n  Expr **ppPrefix,  /* Pointer to TK_STRING expression with pattern prefix */\n  int *pisComplete, /* True if the only wildcard is % in the last character */\n  int *pnoCase      /* True if uppercase is equivalent to lowercase */\n)",25    "test_filename": "tests_whereexpr_isLikeOrGlob.c"26  },27  {28    "function_name": "isAuxiliaryVtabOperator",29    "function_signature": "static int isAuxiliaryVtabOperator(\n  sqlite3 *db,                    /* Parsing context */\n  Expr *pExpr,                    /* Test this expression */\n  unsigned char *peOp2,           /* OUT: 0 for MATCH, or else an op2 value */\n  Expr **ppLeft,                  /* Column expression to left of MATCH/op2 */\n  Expr **ppRight                  /* Expression to left of MATCH/op2 */\n)",30    "test_filename": "tests_whereexpr_isAuxiliaryVtabOperator.c"31  },32  {33    "function_name": "whereCombineDisjuncts",34    "function_signature": "static void whereCombineDisjuncts(\n  SrcList *pSrc,         /* the FROM clause */\n  WhereClause *pWC,      /* The complete WHERE clause */\n  WhereTerm *pOne,       /* First disjunct */\n  WhereTerm *pTwo        /* Second disjunct */\n)",35    "test_filename": "tests_whereexpr_whereCombineDisjuncts.c"36  },37  {38    "function_name": "exprAnalyzeOrTerm",39    "function_signature": "static void exprAnalyzeOrTerm(\n  SrcList *pSrc,            /* the FROM clause */\n  WhereClause *pWC,         /* the complete WHERE clause */\n  int idxTerm               /* Index of the OR-term to be analyzed */\n)",40    "test_filename": "tests_whereexpr_exprAnalyzeOrTerm.c"41  },42  {43    "function_name": "termIsEquivalence",44    "function_signature": "static int termIsEquivalence(Parse *pParse, Expr *pExpr, SrcList *pSrc)",45    "test_filename": "tests_whereexpr_termIsEquivalence.c"46  },47  {48    "function_name": "exprSelectUsage",49    "function_signature": "static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS)",50    "test_filename": "tests_whereexpr_exprSelectUsage.c"51  },52  {53    "function_name": "exprMightBeIndexed2",54    "function_signature": "static SQLITE_NOINLINE int exprMightBeIndexed2(\n  SrcList *pFrom,        /* The FROM clause */\n  int *aiCurCol,         /* Write the referenced table cursor and column here */\n  Expr *pExpr,           /* An operand of a comparison operator */\n  int j                  /* Start looking with the j-th pFrom entry */\n)",55    "test_filename": "tests_whereexpr_exprMightBeIndexed2.c"56  },57  {58    "function_name": "exprMightBeIndexed",59    "function_signature": "static int exprMightBeIndexed(\n  SrcList *pFrom,        /* The FROM clause */\n  int *aiCurCol,         /* Write the referenced table cursor & column here */\n  Expr *pExpr,           /* An operand of a comparison operator */\n  int op                 /* The specific comparison operator */\n)",60    "test_filename": "tests_whereexpr_exprMightBeIndexed.c"61  },62  {63    "function_name": "exprAnalyze",64    "function_signature": "static void exprAnalyze(\n  SrcList *pSrc,            /* the FROM clause */\n  WhereClause *pWC,         /* the WHERE clause */\n  int idxTerm               /* Index of the term to be analyzed */\n)",65    "test_filename": "tests_whereexpr_exprAnalyze.c"66  },67  {68    "function_name": "if",69    "function_signature": "else if( pExpr->op==TK_BETWEEN && pWC->op==TK_AND )",70    "test_filename": "tests_whereexpr_if.c"71  },72  {73    "function_name": "if",74    "function_signature": "else if( pExpr->op==TK_NOTNULL )",75    "test_filename": "tests_whereexpr_if.c"76  },77  {78    "function_name": "if",79    "function_signature": "else if( pExpr->op==TK_FUNCTION\n   && pWC->op==TK_AND\n   && isLikeOrGlob(pParse, pExpr, &pStr1, &isComplete, &noCase)\n  )",80    "test_filename": "tests_whereexpr_if.c"81  },82  {83    "function_name": "if",84    "function_signature": "else if( pWC->op==TK_AND )",85    "test_filename": "tests_whereexpr_if.c"86  },87  {88    "function_name": "sqlite3WhereSplit",89    "function_signature": "void sqlite3WhereSplit(WhereClause *pWC, Expr *pExpr, u8 op)",90    "test_filename": "tests_whereexpr_sqlite3WhereSplit.c"91  },92  {93    "function_name": "whereAddLimitExpr",94    "function_signature": "static void whereAddLimitExpr(\n  WhereClause *pWC,   /* Add the constraint to this WHERE clause */\n  int iReg,           /* Register that will hold value of the limit/offset */\n  Expr *pExpr,        /* Expression that defines the limit/offset */\n  int iCsr,           /* Cursor to which the constraint applies */\n  int eMatchOp        /* SQLITE_INDEX_CONSTRAINT_LIMIT or _OFFSET */\n)",95    "test_filename": "tests_whereexpr_whereAddLimitExpr.c"96  },97  {98    "function_name": "sqlite3WhereAddLimit",99    "function_signature": "void SQLITE_NOINLINE sqlite3WhereAddLimit(WhereClause *pWC, Select *p)",100    "test_filename": "tests_whereexpr_sqlite3WhereAddLimit.c"101  },102  {103    "function_name": "sqlite3WhereClauseInit",104    "function_signature": "void sqlite3WhereClauseInit(\n  WhereClause *pWC,        /* The WhereClause to be initialized */\n  WhereInfo *pWInfo        /* The WHERE processing context */\n)",105    "test_filename": "tests_whereexpr_sqlite3WhereClauseInit.c"106  },107  {108    "function_name": "sqlite3WhereClauseClear",109    "function_signature": "void sqlite3WhereClauseClear(WhereClause *pWC)",110    "test_filename": "tests_whereexpr_sqlite3WhereClauseClear.c"111  },112  {113    "function_name": "sqlite3WhereExprUsageFull",114    "function_signature": "static SQLITE_NOINLINE Bitmask sqlite3WhereExprUsageFull(\n  WhereMaskSet *pMaskSet,\n  Expr *p\n)",115    "test_filename": "tests_whereexpr_sqlite3WhereExprUsageFull.c"116  },117  {118    "function_name": "sqlite3WhereExprListUsage",119    "function_signature": "Bitmask sqlite3WhereExprListUsage(WhereMaskSet *pMaskSet, ExprList *pList)",120    "test_filename": "tests_whereexpr_sqlite3WhereExprListUsage.c"121  },122  {123    "function_name": "sqlite3WhereTabFuncArgs",124    "function_signature": "void sqlite3WhereTabFuncArgs(\n  Parse *pParse,                    /* Parsing context */\n  SrcItem *pItem,                   /* The FROM clause term to process */\n  WhereClause *pWC                  /* Xfer function arguments to here */\n)",125    "test_filename": "tests_whereexpr_sqlite3WhereTabFuncArgs.c"126  }127]