CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
alter_injectable_functions.json252 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "isAlterableTable",4    "function_signature": "static int isAlterableTable(Parse *pParse, Table *pTab)",5    "test_filename": "tests_alter_isAlterableTable.c"6  },7  {8    "function_name": "renameTestSchema",9    "function_signature": "static void renameTestSchema(\n  Parse *pParse,                  /* Parse context */\n  const char *zDb,                /* Name of db to verify schema of */\n  int bTemp,                      /* True if this is the temp db */\n  const char *zWhen,              /* \"when\" part of error message */\n  int bNoDQS                      /* Do not allow DQS in the schema */\n)",10    "test_filename": "tests_alter_renameTestSchema.c"11  },12  {13    "function_name": "renameFixQuotes",14    "function_signature": "static void renameFixQuotes(Parse *pParse, const char *zDb, int bTemp)",15    "test_filename": "tests_alter_renameFixQuotes.c"16  },17  {18    "function_name": "sqlite3AlterRenameTable",19    "function_signature": "void sqlite3AlterRenameTable(\n  Parse *pParse,            /* Parser context. */\n  SrcList *pSrc,            /* The table to rename. */\n  Token *pName              /* The new table name. */\n)",20    "test_filename": "tests_alter_sqlite3AlterRenameTable.c"21  },22  {23    "function_name": "sqlite3ErrorIfNotEmpty",24    "function_signature": "static void sqlite3ErrorIfNotEmpty(\n  Parse *pParse,        /* Parsing context */\n  const char *zDb,      /* Schema holding the table */\n  const char *zTab,     /* Table to check for empty */\n  const char *zErr      /* Error message text */\n)",25    "test_filename": "tests_alter_sqlite3ErrorIfNotEmpty.c"26  },27  {28    "function_name": "sqlite3AlterFinishAddColumn",29    "function_signature": "void sqlite3AlterFinishAddColumn(Parse *pParse, Token *pColDef)",30    "test_filename": "tests_alter_sqlite3AlterFinishAddColumn.c"31  },32  {33    "function_name": "sqlite3AlterBeginAddColumn",34    "function_signature": "void sqlite3AlterBeginAddColumn(Parse *pParse, SrcList *pSrc)",35    "test_filename": "tests_alter_sqlite3AlterBeginAddColumn.c"36  },37  {38    "function_name": "isRealTable",39    "function_signature": "static int isRealTable(Parse *pParse, Table *pTab, int iOp)",40    "test_filename": "tests_alter_isRealTable.c"41  },42  {43    "function_name": "sqlite3AlterRenameColumn",44    "function_signature": "void sqlite3AlterRenameColumn(\n  Parse *pParse,                  /* Parsing context */\n  SrcList *pSrc,                  /* Table being altered.  pSrc->nSrc==1 */\n  Token *pOld,                    /* Name of column being changed */\n  Token *pNew                     /* New column name */\n)",45    "test_filename": "tests_alter_sqlite3AlterRenameColumn.c"46  },47  {48    "function_name": "renameTokenCheckAll",49    "function_signature": "static void renameTokenCheckAll(Parse *pParse, const void *pPtr)",50    "test_filename": "tests_alter_renameTokenCheckAll.c"51  },52  {53    "function_name": "sqlite3RenameTokenRemap",54    "function_signature": "void sqlite3RenameTokenRemap(Parse *pParse, const void *pTo, const void *pFrom)",55    "test_filename": "tests_alter_sqlite3RenameTokenRemap.c"56  },57  {58    "function_name": "renameWalkWith",59    "function_signature": "static void renameWalkWith(Walker *pWalker, Select *pSelect)",60    "test_filename": "tests_alter_renameWalkWith.c"61  },62  {63    "function_name": "unmapColumnIdlistNames",64    "function_signature": "static void unmapColumnIdlistNames(\n  Parse *pParse,\n  const IdList *pIdList\n)",65    "test_filename": "tests_alter_unmapColumnIdlistNames.c"66  },67  {68    "function_name": "renameUnmapSelectCb",69    "function_signature": "static int renameUnmapSelectCb(Walker *pWalker, Select *p)",70    "test_filename": "tests_alter_renameUnmapSelectCb.c"71  },72  {73    "function_name": "sqlite3RenameExprUnmap",74    "function_signature": "void sqlite3RenameExprUnmap(Parse *pParse, Expr *pExpr)",75    "test_filename": "tests_alter_sqlite3RenameExprUnmap.c"76  },77  {78    "function_name": "sqlite3RenameExprlistUnmap",79    "function_signature": "void sqlite3RenameExprlistUnmap(Parse *pParse, ExprList *pEList)",80    "test_filename": "tests_alter_sqlite3RenameExprlistUnmap.c"81  },82  {83    "function_name": "renameColumnExprCb",84    "function_signature": "static int renameColumnExprCb(Walker *pWalker, Expr *pExpr)",85    "test_filename": "tests_alter_renameColumnExprCb.c"86  },87  {88    "function_name": "errorMPrintf",89    "function_signature": "static void errorMPrintf(sqlite3_context *pCtx, const char *zFmt, ...)",90    "test_filename": "tests_alter_errorMPrintf.c"91  },92  {93    "function_name": "renameColumnParseError",94    "function_signature": "static void renameColumnParseError(\n  sqlite3_context *pCtx,\n  const char *zWhen,\n  sqlite3_value *pType,\n  sqlite3_value *pObject,\n  Parse *pParse\n)",95    "test_filename": "tests_alter_renameColumnParseError.c"96  },97  {98    "function_name": "renameColumnElistNames",99    "function_signature": "static void renameColumnElistNames(\n  Parse *pParse,\n  RenameCtx *pCtx,\n  const ExprList *pEList,\n  const char *zOld\n)",100    "test_filename": "tests_alter_renameColumnElistNames.c"101  },102  {103    "function_name": "renameColumnIdlistNames",104    "function_signature": "static void renameColumnIdlistNames(\n  Parse *pParse,\n  RenameCtx *pCtx,\n  const IdList *pIdList,\n  const char *zOld\n)",105    "test_filename": "tests_alter_renameColumnIdlistNames.c"106  },107  {108    "function_name": "renameParseSql",109    "function_signature": "static int renameParseSql(\n  Parse *p,                       /* Memory to use for Parse object */\n  const char *zDb,                /* Name of schema SQL belongs to */\n  sqlite3 *db,                    /* Database handle */\n  const char *zSql,               /* SQL to parse */\n  int bTemp                       /* True if SQL is from temp schema */\n)",110    "test_filename": "tests_alter_renameParseSql.c"111  },112  {113    "function_name": "renameEditSql",114    "function_signature": "static int renameEditSql(\n  sqlite3_context *pCtx,          /* Return result here */\n  RenameCtx *pRename,             /* Rename context */\n  const char *zSql,               /* SQL statement to edit */\n  const char *zNew,               /* New token text */\n  int bQuote                      /* True to always quote token */\n)",115    "test_filename": "tests_alter_renameEditSql.c"116  },117  {118    "function_name": "renameSetENames",119    "function_signature": "static void renameSetENames(ExprList *pEList, int val)",120    "test_filename": "tests_alter_renameSetENames.c"121  },122  {123    "function_name": "renameResolveTrigger",124    "function_signature": "static int renameResolveTrigger(Parse *pParse)",125    "test_filename": "tests_alter_renameResolveTrigger.c"126  },127  {128    "function_name": "renameWalkTrigger",129    "function_signature": "static void renameWalkTrigger(Walker *pWalker, Trigger *pTrigger)",130    "test_filename": "tests_alter_renameWalkTrigger.c"131  },132  {133    "function_name": "renameParseCleanup",134    "function_signature": "static void renameParseCleanup(Parse *pParse)",135    "test_filename": "tests_alter_renameParseCleanup.c"136  },137  {138    "function_name": "renameColumnFunc",139    "function_signature": "static void renameColumnFunc(\n  sqlite3_context *context,\n  int NotUsed,\n  sqlite3_value **argv\n)",140    "test_filename": "tests_alter_renameColumnFunc.c"141  },142  {143    "function_name": "renameTableExprCb",144    "function_signature": "static int renameTableExprCb(Walker *pWalker, Expr *pExpr)",145    "test_filename": "tests_alter_renameTableExprCb.c"146  },147  {148    "function_name": "renameTableSelectCb",149    "function_signature": "static int renameTableSelectCb(Walker *pWalker, Select *pSelect)",150    "test_filename": "tests_alter_renameTableSelectCb.c"151  },152  {153    "function_name": "renameTableFunc",154    "function_signature": "static void renameTableFunc(\n  sqlite3_context *context,\n  int NotUsed,\n  sqlite3_value **argv\n)",155    "test_filename": "tests_alter_renameTableFunc.c"156  },157  {158    "function_name": "renameQuotefixFunc",159    "function_signature": "static void renameQuotefixFunc(\n  sqlite3_context *context,\n  int NotUsed,\n  sqlite3_value **argv\n)",160    "test_filename": "tests_alter_renameQuotefixFunc.c"161  },162  {163    "function_name": "renameTableTest",164    "function_signature": "static void renameTableTest(\n  sqlite3_context *context,\n  int NotUsed,\n  sqlite3_value **argv\n)",165    "test_filename": "tests_alter_renameTableTest.c"166  },167  {168    "function_name": "getConstraintToken",169    "function_signature": "static int getConstraintToken(const u8 *z, int *piToken)",170    "test_filename": "tests_alter_getConstraintToken.c"171  },172  {173    "function_name": "dropColumnFunc",174    "function_signature": "static void dropColumnFunc(\n  sqlite3_context *context,\n  int NotUsed,\n  sqlite3_value **argv\n)",175    "test_filename": "tests_alter_dropColumnFunc.c"176  },177  {178    "function_name": "sqlite3AlterDropColumn",179    "function_signature": "void sqlite3AlterDropColumn(Parse *pParse, SrcList *pSrc, const Token *pName)",180    "test_filename": "tests_alter_sqlite3AlterDropColumn.c"181  },182  {183    "function_name": "getWhitespace",184    "function_signature": "static int getWhitespace(const u8 *z)",185    "test_filename": "tests_alter_getWhitespace.c"186  },187  {188    "function_name": "getConstraint",189    "function_signature": "static int getConstraint(const u8 *z)",190    "test_filename": "tests_alter_getConstraint.c"191  },192  {193    "function_name": "quotedCompare",194    "function_signature": "static int quotedCompare(\n  sqlite3_context *ctx,  /* Function context on which to report errors */\n  int t,                 /* Token type */\n  const u8 *zQuote,      /* Possibly quoted text.  Not zero-terminated. */\n  int nQuote,            /* Length of zQuote in bytes */\n  const u8 *zCmp,        /* Zero-terminated, unquoted name to compare against */\n  int *pRes              /* OUT: Set to 0 if equal, non-zero if unequal */\n)",195    "test_filename": "tests_alter_quotedCompare.c"196  },197  {198    "function_name": "skipCreateTable",199    "function_signature": "static int skipCreateTable(sqlite3_context *ctx, const u8 *zSql, int *piOff)",200    "test_filename": "tests_alter_skipCreateTable.c"201  },202  {203    "function_name": "dropConstraintFunc",204    "function_signature": "static void dropConstraintFunc(\n  sqlite3_context *ctx,\n  int NotUsed,\n  sqlite3_value **argv\n)",205    "test_filename": "tests_alter_dropConstraintFunc.c"206  },207  {208    "function_name": "addConstraintFunc",209    "function_signature": "static void addConstraintFunc(\n  sqlite3_context *ctx,\n  int NotUsed,\n  sqlite3_value **argv\n)",210    "test_filename": "tests_alter_addConstraintFunc.c"211  },212  {213    "function_name": "alterFindCol",214    "function_signature": "static int alterFindCol(Parse *pParse, Table *pTab, Token *pCol, int *piCol)",215    "test_filename": "tests_alter_alterFindCol.c"216  },217  {218    "function_name": "sqlite3AlterDropConstraint",219    "function_signature": "void sqlite3AlterDropConstraint(\n  Parse *pParse,    /* Parsing context */\n  SrcList *pSrc,    /* The table being altered */\n  Token *pCons,     /* Name of the constraint to drop */\n  Token *pCol       /* Name of the column from which to remove the NOT NULL */\n)",220    "test_filename": "tests_alter_sqlite3AlterDropConstraint.c"221  },222  {223    "function_name": "failConstraintFunc",224    "function_signature": "static void failConstraintFunc(\n  sqlite3_context *ctx,\n  int NotUsed,\n  sqlite3_value **argv\n)",225    "test_filename": "tests_alter_failConstraintFunc.c"226  },227  {228    "function_name": "alterRtrimConstraint",229    "function_signature": "static int alterRtrimConstraint(\n  sqlite3 *db,                    /* used to record OOM error */\n  const char *pCons,              /* Buffer containing constraint */\n  int nCons                       /* Size of pCons in bytes */\n)",230    "test_filename": "tests_alter_alterRtrimConstraint.c"231  },232  {233    "function_name": "sqlite3AlterSetNotNull",234    "function_signature": "void sqlite3AlterSetNotNull(\n  Parse *pParse,   /* Parsing context */\n  SrcList *pSrc,   /* Name of the table being altered */\n  Token *pCol,     /* Name of the column to add a NOT NULL constraint to */\n  Token *pFirst    /* The NOT token of the NOT NULL constraint text */\n)",235    "test_filename": "tests_alter_sqlite3AlterSetNotNull.c"236  },237  {238    "function_name": "findConstraintFunc",239    "function_signature": "static void findConstraintFunc(\n  sqlite3_context *ctx,\n  int NotUsed,\n  sqlite3_value **argv\n)",240    "test_filename": "tests_alter_findConstraintFunc.c"241  },242  {243    "function_name": "sqlite3AlterAddConstraint",244    "function_signature": "void sqlite3AlterAddConstraint(\n  Parse *pParse,           /* Parse context */\n  SrcList *pSrc,           /* Table to add constraint to */\n  Token *pFirst,           /* First token of new constraint */\n  Token *pName,            /* Name of new constraint. NULL if name omitted. */\n  const char *pExpr,       /* Text of CHECK expression */\n  int nExpr                /* Size of pExpr in bytes */\n)",245    "test_filename": "tests_alter_sqlite3AlterAddConstraint.c"246  },247  {248    "function_name": "sqlite3AlterFunctions",249    "function_signature": "void sqlite3AlterFunctions(void)",250    "test_filename": "tests_alter_sqlite3AlterFunctions.c"251  }252]