CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
analyze_injectable_functions.json122 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "openStatTable",4    "function_signature": "static void openStatTable(\n  Parse *pParse,          /* Parsing context */\n  int iDb,                /* The database we are looking in */\n  int iStatCur,           /* Open the sqlite_stat1 table on this cursor */\n  const char *zWhere,     /* Delete entries for this table or index */\n  const char *zWhereType  /* Either \"tbl\" or \"idx\" */\n)",5    "test_filename": "tests_analyze_openStatTable.c"6  },7  {8    "function_name": "sampleSetRowid",9    "function_signature": "static void sampleSetRowid(sqlite3 *db, StatSample *p, int n, const u8 *pData)",10    "test_filename": "tests_analyze_sampleSetRowid.c"11  },12  {13    "function_name": "sampleCopy",14    "function_signature": "static void sampleCopy(StatAccum *p, StatSample *pTo, StatSample *pFrom)",15    "test_filename": "tests_analyze_sampleCopy.c"16  },17  {18    "function_name": "statAccumDestructor",19    "function_signature": "static void statAccumDestructor(void *pOld)",20    "test_filename": "tests_analyze_statAccumDestructor.c"21  },22  {23    "function_name": "statInit",24    "function_signature": "static void statInit(\n  sqlite3_context *context,\n  int argc,\n  sqlite3_value **argv\n)",25    "test_filename": "tests_analyze_statInit.c"26  },27  {28    "function_name": "sampleIsBetterPost",29    "function_signature": "static int sampleIsBetterPost(\n  StatAccum *pAccum, \n  StatSample *pNew, \n  StatSample *pOld\n)",30    "test_filename": "tests_analyze_sampleIsBetterPost.c"31  },32  {33    "function_name": "sampleIsBetter",34    "function_signature": "static int sampleIsBetter(\n  StatAccum *pAccum, \n  StatSample *pNew, \n  StatSample *pOld\n)",35    "test_filename": "tests_analyze_sampleIsBetter.c"36  },37  {38    "function_name": "sampleInsert",39    "function_signature": "static void sampleInsert(StatAccum *p, StatSample *pNew, int nEqZero)",40    "test_filename": "tests_analyze_sampleInsert.c"41  },42  {43    "function_name": "samplePushPrevious",44    "function_signature": "static void samplePushPrevious(StatAccum *p, int iChng)",45    "test_filename": "tests_analyze_samplePushPrevious.c"46  },47  {48    "function_name": "statPush",49    "function_signature": "static void statPush(\n  sqlite3_context *context,\n  int argc,\n  sqlite3_value **argv\n)",50    "test_filename": "tests_analyze_statPush.c"51  },52  {53    "function_name": "statGet",54    "function_signature": "static void statGet(\n  sqlite3_context *context,\n  int argc,\n  sqlite3_value **argv\n)",55    "test_filename": "tests_analyze_statGet.c"56  },57  {58    "function_name": "if",59    "function_signature": "else if( eCall==STAT_GET_ROWID )",60    "test_filename": "tests_analyze_if.c"61  },62  {63    "function_name": "callStatGet",64    "function_signature": "static void callStatGet(Parse *pParse, int regStat, int iParam, int regOut)",65    "test_filename": "tests_analyze_callStatGet.c"66  },67  {68    "function_name": "analyzeVdbeCommentIndexWithColumnName",69    "function_signature": "static void analyzeVdbeCommentIndexWithColumnName(\n  Vdbe *v,         /* Prepared statement under construction */\n  Index *pIdx,     /* Index whose column is being loaded */\n  int k            /* Which column index */\n)",70    "test_filename": "tests_analyze_analyzeVdbeCommentIndexWithColumnName.c"71  },72  {73    "function_name": "analyzeOneTable",74    "function_signature": "static void analyzeOneTable(\n  Parse *pParse,   /* Parser context */\n  Table *pTab,     /* Table whose indices are to be analyzed */\n  Index *pOnlyIdx, /* If not NULL, only analyze this one index */\n  int iStatCur,    /* Index of VdbeCursor that writes the sqlite_stat1 table */\n  int iMem,        /* Available memory locations begin here */\n  int iTab         /* Next available cursor */\n)",75    "test_filename": "tests_analyze_analyzeOneTable.c"76  },77  {78    "function_name": "analyzeDatabase",79    "function_signature": "static void analyzeDatabase(Parse *pParse, int iDb)",80    "test_filename": "tests_analyze_analyzeDatabase.c"81  },82  {83    "function_name": "analyzeTable",84    "function_signature": "static void analyzeTable(Parse *pParse, Table *pTab, Index *pOnlyIdx)",85    "test_filename": "tests_analyze_analyzeTable.c"86  },87  {88    "function_name": "sqlite3Analyze",89    "function_signature": "void sqlite3Analyze(Parse *pParse, Token *pName1, Token *pName2)",90    "test_filename": "tests_analyze_sqlite3Analyze.c"91  },92  {93    "function_name": "analysisLoader",94    "function_signature": "static int analysisLoader(void *pData, int argc, char **argv, char **NotUsed)",95    "test_filename": "tests_analyze_analysisLoader.c"96  },97  {98    "function_name": "sqlite3DeleteIndexSamples",99    "function_signature": "void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx)",100    "test_filename": "tests_analyze_sqlite3DeleteIndexSamples.c"101  },102  {103    "function_name": "initAvgEq",104    "function_signature": "static void initAvgEq(Index *pIdx)",105    "test_filename": "tests_analyze_initAvgEq.c"106  },107  {108    "function_name": "loadStatTbl",109    "function_signature": "static int loadStatTbl(\n  sqlite3 *db,                  /* Database handle */\n  const char *zSql1,            /* SQL statement 1 (see above) */\n  const char *zSql2,            /* SQL statement 2 (see above) */\n  const char *zDb               /* Database name (e.g. \"main\") */\n)",110    "test_filename": "tests_analyze_loadStatTbl.c"111  },112  {113    "function_name": "loadStat4",114    "function_signature": "static int loadStat4(sqlite3 *db, const char *zDb)",115    "test_filename": "tests_analyze_loadStat4.c"116  },117  {118    "function_name": "sqlite3AnalysisLoad",119    "function_signature": "int sqlite3AnalysisLoad(sqlite3 *db, int iDb)",120    "test_filename": "tests_analyze_sqlite3AnalysisLoad.c"121  }122]