CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
insert_injectable_functions.json97 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "sqlite3OpenTable",4    "function_signature": "void sqlite3OpenTable(\n  Parse *pParse,  /* Generate code into this VDBE */\n  int iCur,       /* The cursor number of the table */\n  int iDb,        /* The database index in sqlite3.aDb[] */\n  Table *pTab,    /* The table to be opened */\n  int opcode      /* OP_OpenRead or OP_OpenWrite */\n)",5    "test_filename": "tests_insert_sqlite3OpenTable.c"6  },7  {8    "function_name": "sqlite3TableAffinity",9    "function_signature": "void sqlite3TableAffinity(Vdbe *v, Table *pTab, int iReg)",10    "test_filename": "tests_insert_sqlite3TableAffinity.c"11  },12  {13    "function_name": "readsTable",14    "function_signature": "static int readsTable(Parse *p, int iDb, Table *pTab)",15    "test_filename": "tests_insert_readsTable.c"16  },17  {18    "function_name": "sqlite3ComputeGeneratedColumns",19    "function_signature": "void sqlite3ComputeGeneratedColumns(\n  Parse *pParse,    /* Parsing context */\n  int iRegStore,    /* Register holding the first column */\n  Table *pTab       /* The table */\n)",20    "test_filename": "tests_insert_sqlite3ComputeGeneratedColumns.c"21  },22  {23    "function_name": "autoIncBegin",24    "function_signature": "static int autoIncBegin(\n  Parse *pParse,      /* Parsing context */\n  int iDb,            /* Index of the database holding pTab */\n  Table *pTab         /* The table we are writing to */\n)",25    "test_filename": "tests_insert_autoIncBegin.c"26  },27  {28    "function_name": "sqlite3AutoincrementBegin",29    "function_signature": "void sqlite3AutoincrementBegin(Parse *pParse)",30    "test_filename": "tests_insert_sqlite3AutoincrementBegin.c"31  },32  {33    "function_name": "autoIncrementEnd",34    "function_signature": "static SQLITE_NOINLINE void autoIncrementEnd(Parse *pParse)",35    "test_filename": "tests_insert_autoIncrementEnd.c"36  },37  {38    "function_name": "sqlite3MultiValuesEnd",39    "function_signature": "void sqlite3MultiValuesEnd(Parse *pParse, Select *pVal)",40    "test_filename": "tests_insert_sqlite3MultiValuesEnd.c"41  },42  {43    "function_name": "exprListIsNoAffinity",44    "function_signature": "static int exprListIsNoAffinity(Parse *pParse, ExprList *pRow)",45    "test_filename": "tests_insert_exprListIsNoAffinity.c"46  },47  {48    "function_name": "sqlite3Insert",49    "function_signature": "void sqlite3Insert(\n  Parse *pParse,        /* Parser context */\n  SrcList *pTabList,    /* Name of table into which we are inserting */\n  Select *pSelect,      /* A SELECT statement to use as the data source */\n  IdList *pColumn,      /* Column names corresponding to IDLIST, or NULL. */\n  int onError,          /* How to handle constraint errors */\n  Upsert *pUpsert       /* ON CONFLICT clauses for upsert, or NULL */\n)",50    "test_filename": "tests_insert_sqlite3Insert.c"51  },52  {53    "function_name": "checkConstraintExprNode",54    "function_signature": "static int checkConstraintExprNode(Walker *pWalker, Expr *pExpr)",55    "test_filename": "tests_insert_checkConstraintExprNode.c"56  },57  {58    "function_name": "sqlite3ExprReferencesUpdatedColumn",59    "function_signature": "int sqlite3ExprReferencesUpdatedColumn(\n  Expr *pExpr,    /* The expression to be checked */\n  int *aiChng,    /* aiChng[x]>=0 if column x changed by the UPDATE */\n  int chngRowid   /* True if UPDATE changes the rowid */\n)",60    "test_filename": "tests_insert_sqlite3ExprReferencesUpdatedColumn.c"61  },62  {63    "function_name": "sqlite3GenerateConstraintChecks",64    "function_signature": "void sqlite3GenerateConstraintChecks(\n  Parse *pParse,       /* The parser context */\n  Table *pTab,         /* The table being inserted or updated */\n  int *aRegIdx,        /* Use register aRegIdx[i] for index i.  0 for unused */\n  int iDataCur,        /* Canonical data cursor (main table or PK index) */\n  int iIdxCur,         /* First index cursor */\n  int regNewData,      /* First register in a range holding values to insert */\n  int regOldData,      /* Previous content.  0 for INSERTs */\n  u8 pkChng,           /* Non-zero if the rowid or PRIMARY KEY changed */\n  u8 overrideError,    /* Override onError to this if not OE_Default */\n  int ignoreDest,      /* Jump to this label on an OE_Ignore resolution */\n  int *pbMayReplace,   /* OUT: Set to true if constraint may cause a replace */\n  int *aiChng,         /* column i is unchanged if aiChng[i]<0 */\n  Upsert *pUpsert      /* ON CONFLICT clauses, if any.  NULL otherwise */\n)",65    "test_filename": "tests_insert_sqlite3GenerateConstraintChecks.c"66  },67  {68    "function_name": "sqlite3SetMakeRecordP5",69    "function_signature": "void sqlite3SetMakeRecordP5(Vdbe *v, Table *pTab)",70    "test_filename": "tests_insert_sqlite3SetMakeRecordP5.c"71  },72  {73    "function_name": "codeWithoutRowidPreupdate",74    "function_signature": "static void codeWithoutRowidPreupdate(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab,                    /* Table being updated */\n  int iCur,                       /* Cursor number for table */\n  int regData                     /* Data containing new record */\n)",75    "test_filename": "tests_insert_codeWithoutRowidPreupdate.c"76  },77  {78    "function_name": "sqlite3CompleteInsertion",79    "function_signature": "void sqlite3CompleteInsertion(\n  Parse *pParse,      /* The parser context */\n  Table *pTab,        /* the table into which we are inserting */\n  int iDataCur,       /* Cursor of the canonical data source */\n  int iIdxCur,        /* First index cursor */\n  int regNewData,     /* Range of content */\n  int *aRegIdx,       /* Register used by each index.  0 for unused indices */\n  int update_flags,   /* True for UPDATE, False for INSERT */\n  int appendBias,     /* True if this is likely to be an append */\n  int useSeekResult   /* True to set the USESEEKRESULT flag on OP_[Idx]Insert */\n)",80    "test_filename": "tests_insert_sqlite3CompleteInsertion.c"81  },82  {83    "function_name": "sqlite3OpenTableAndIndices",84    "function_signature": "int sqlite3OpenTableAndIndices(\n  Parse *pParse,   /* Parsing context */\n  Table *pTab,     /* Table to be opened */\n  int op,          /* OP_OpenRead or OP_OpenWrite */\n  u8 p5,           /* P5 value for OP_Open* opcodes (except on WITHOUT ROWID) */\n  int iBase,       /* Use this for the table cursor, if there is one */\n  u8 *aToOpen,     /* If not NULL: boolean for each table and index */\n  int *piDataCur,  /* Write the database source cursor number here */\n  int *piIdxCur    /* Write the first index cursor number here */\n)",85    "test_filename": "tests_insert_sqlite3OpenTableAndIndices.c"86  },87  {88    "function_name": "xferCompatibleIndex",89    "function_signature": "static int xferCompatibleIndex(Index *pDest, Index *pSrc)",90    "test_filename": "tests_insert_xferCompatibleIndex.c"91  },92  {93    "function_name": "xferOptimization",94    "function_signature": "static int xferOptimization(\n  Parse *pParse,        /* Parser context */\n  Table *pDest,         /* The table we are inserting into */\n  Select *pSelect,      /* A SELECT statement to use as the data source */\n  int onError,          /* How to handle constraint errors */\n  int iDbDest           /* The database of pDest */\n)",95    "test_filename": "tests_insert_xferOptimization.c"96  }97]