CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
build_injectable_functions.json407 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "lockTable",4    "function_signature": "static SQLITE_NOINLINE void lockTable(\n  Parse *pParse,     /* Parsing context */\n  int iDb,           /* Index of the database containing the table to lock */\n  Pgno iTab,         /* Root page number of the table to be locked */\n  u8 isWriteLock,    /* True for a write lock */\n  const char *zName  /* Name of the table to be locked */\n)",5    "test_filename": "tests_build_lockTable.c"6  },7  {8    "function_name": "sqlite3TableLock",9    "function_signature": "void sqlite3TableLock(\n  Parse *pParse,     /* Parsing context */\n  int iDb,           /* Index of the database containing the table to lock */\n  Pgno iTab,         /* Root page number of the table to be locked */\n  u8 isWriteLock,    /* True for a write lock */\n  const char *zName  /* Name of the table to be locked */\n)",10    "test_filename": "tests_build_sqlite3TableLock.c"11  },12  {13    "function_name": "codeTableLocks",14    "function_signature": "static void codeTableLocks(Parse *pParse)",15    "test_filename": "tests_build_codeTableLocks.c"16  },17  {18    "function_name": "sqlite3FinishCoding",19    "function_signature": "void sqlite3FinishCoding(Parse *pParse)",20    "test_filename": "tests_build_sqlite3FinishCoding.c"21  },22  {23    "function_name": "sqlite3NestedParse",24    "function_signature": "void sqlite3NestedParse(Parse *pParse, const char *zFormat, ...)",25    "test_filename": "tests_build_sqlite3NestedParse.c"26  },27  {28    "function_name": "sqlite3FreeIndex",29    "function_signature": "void sqlite3FreeIndex(sqlite3 *db, Index *p)",30    "test_filename": "tests_build_sqlite3FreeIndex.c"31  },32  {33    "function_name": "sqlite3UnlinkAndDeleteIndex",34    "function_signature": "void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName)",35    "test_filename": "tests_build_sqlite3UnlinkAndDeleteIndex.c"36  },37  {38    "function_name": "sqlite3CollapseDatabaseArray",39    "function_signature": "void sqlite3CollapseDatabaseArray(sqlite3 *db)",40    "test_filename": "tests_build_sqlite3CollapseDatabaseArray.c"41  },42  {43    "function_name": "sqlite3ResetOneSchema",44    "function_signature": "void sqlite3ResetOneSchema(sqlite3 *db, int iDb)",45    "test_filename": "tests_build_sqlite3ResetOneSchema.c"46  },47  {48    "function_name": "sqlite3ResetAllSchemasOfConnection",49    "function_signature": "void sqlite3ResetAllSchemasOfConnection(sqlite3 *db)",50    "test_filename": "tests_build_sqlite3ResetAllSchemasOfConnection.c"51  },52  {53    "function_name": "sqlite3ColumnSetExpr",54    "function_signature": "void sqlite3ColumnSetExpr(\n  Parse *pParse,    /* Parsing context */\n  Table *pTab,      /* The table containing the column */\n  Column *pCol,     /* The column to receive the new DEFAULT expression */\n  Expr *pExpr       /* The new default expression */\n)",55    "test_filename": "tests_build_sqlite3ColumnSetExpr.c"56  },57  {58    "function_name": "sqlite3ColumnSetColl",59    "function_signature": "void sqlite3ColumnSetColl(\n  sqlite3 *db,\n  Column *pCol,\n  const char *zColl\n)",60    "test_filename": "tests_build_sqlite3ColumnSetColl.c"61  },62  {63    "function_name": "sqlite3DeleteColumnNames",64    "function_signature": "void sqlite3DeleteColumnNames(sqlite3 *db, Table *pTable)",65    "test_filename": "tests_build_sqlite3DeleteColumnNames.c"66  },67  {68    "function_name": "deleteTable",69    "function_signature": "static void SQLITE_NOINLINE deleteTable(sqlite3 *db, Table *pTable)",70    "test_filename": "tests_build_deleteTable.c"71  },72  {73    "function_name": "sqlite3UnlinkAndDeleteTable",74    "function_signature": "void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName)",75    "test_filename": "tests_build_sqlite3UnlinkAndDeleteTable.c"76  },77  {78    "function_name": "sqlite3FindDbName",79    "function_signature": "int sqlite3FindDbName(sqlite3 *db, const char *zName)",80    "test_filename": "tests_build_sqlite3FindDbName.c"81  },82  {83    "function_name": "sqlite3TwoPartName",84    "function_signature": "int sqlite3TwoPartName(\n  Parse *pParse,      /* Parsing and code generating context */\n  Token *pName1,      /* The \"xxx\" in the name \"xxx.yyy\" or \"xxx\" */\n  Token *pName2,      /* The \"yyy\" in the name \"xxx.yyy\" */\n  Token **pUnqual     /* Write the unqualified object name here */\n)",85    "test_filename": "tests_build_sqlite3TwoPartName.c"86  },87  {88    "function_name": "sqlite3WritableSchema",89    "function_signature": "int sqlite3WritableSchema(sqlite3 *db)",90    "test_filename": "tests_build_sqlite3WritableSchema.c"91  },92  {93    "function_name": "sqlite3CheckObjectName",94    "function_signature": "int sqlite3CheckObjectName(\n  Parse *pParse,            /* Parsing context */\n  const char *zName,        /* Name of the object to check */\n  const char *zType,        /* Type of this object */\n  const char *zTblName      /* Parent table name for triggers and indexes */\n)",95    "test_filename": "tests_build_sqlite3CheckObjectName.c"96  },97  {98    "function_name": "sqlite3TableColumnToIndex",99    "function_signature": "int sqlite3TableColumnToIndex(Index *pIdx, int iCol)",100    "test_filename": "tests_build_sqlite3TableColumnToIndex.c"101  },102  {103    "function_name": "sqlite3TableColumnToStorage",104    "function_signature": "i16 sqlite3TableColumnToStorage(Table *pTab, i16 iCol)",105    "test_filename": "tests_build_sqlite3TableColumnToStorage.c"106  },107  {108    "function_name": "sqlite3StartTable",109    "function_signature": "void sqlite3StartTable(\n  Parse *pParse,   /* Parser context */\n  Token *pName1,   /* First part of the name of the table or view */\n  Token *pName2,   /* Second part of the name of the table or view */\n  int isTemp,      /* True if this is a TEMP table */\n  int isView,      /* True if this is a VIEW */\n  int isVirtual,   /* True if this is a VIRTUAL table */\n  int noErr        /* Do nothing if table already exists */\n)",110    "test_filename": "tests_build_sqlite3StartTable.c"111  },112  {113    "function_name": "sqlite3AddReturning",114    "function_signature": "void sqlite3AddReturning(Parse *pParse, ExprList *pList)",115    "test_filename": "tests_build_sqlite3AddReturning.c"116  },117  {118    "function_name": "sqlite3AddColumn",119    "function_signature": "void sqlite3AddColumn(Parse *pParse, Token sName, Token sType)",120    "test_filename": "tests_build_sqlite3AddColumn.c"121  },122  {123    "function_name": "sqlite3AddNotNull",124    "function_signature": "void sqlite3AddNotNull(Parse *pParse, int onError)",125    "test_filename": "tests_build_sqlite3AddNotNull.c"126  },127  {128    "function_name": "sqlite3AffinityType",129    "function_signature": "char sqlite3AffinityType(const char *zIn, Column *pCol)",130    "test_filename": "tests_build_sqlite3AffinityType.c"131  },132  {133    "function_name": "sqlite3AddDefaultValue",134    "function_signature": "void sqlite3AddDefaultValue(\n  Parse *pParse,           /* Parsing context */\n  Expr *pExpr,             /* The parsed expression of the default value */\n  const char *zStart,      /* Start of the default value text */\n  const char *zEnd         /* First character past end of default value text */\n)",135    "test_filename": "tests_build_sqlite3AddDefaultValue.c"136  },137  {138    "function_name": "makeColumnPartOfPrimaryKey",139    "function_signature": "static void makeColumnPartOfPrimaryKey(Parse *pParse, Column *pCol)",140    "test_filename": "tests_build_makeColumnPartOfPrimaryKey.c"141  },142  {143    "function_name": "sqlite3AddPrimaryKey",144    "function_signature": "void sqlite3AddPrimaryKey(\n  Parse *pParse,    /* Parsing context */\n  ExprList *pList,  /* List of field names to be indexed */\n  int onError,      /* What to do with a uniqueness conflict */\n  int autoInc,      /* True if the AUTOINCREMENT keyword is present */\n  int sortOrder     /* SQLITE_SO_ASC or SQLITE_SO_DESC */\n)",145    "test_filename": "tests_build_sqlite3AddPrimaryKey.c"146  },147  {148    "function_name": "sqlite3AddCheckConstraint",149    "function_signature": "void sqlite3AddCheckConstraint(\n  Parse *pParse,      /* Parsing context */\n  Expr *pCheckExpr,   /* The check expression */\n  const char *zStart, /* Opening \"(\" */\n  const char *zEnd    /* Closing \")\" */\n)",150    "test_filename": "tests_build_sqlite3AddCheckConstraint.c"151  },152  {153    "function_name": "sqlite3AddCollateType",154    "function_signature": "void sqlite3AddCollateType(Parse *pParse, Token *pToken)",155    "test_filename": "tests_build_sqlite3AddCollateType.c"156  },157  {158    "function_name": "sqlite3AddGenerated",159    "function_signature": "void sqlite3AddGenerated(Parse *pParse, Expr *pExpr, Token *pType)",160    "test_filename": "tests_build_sqlite3AddGenerated.c"161  },162  {163    "function_name": "identPut",164    "function_signature": "static void identPut(char *z, int *pIdx, char *zSignedIdent)",165    "test_filename": "tests_build_identPut.c"166  },167  {168    "function_name": "resizeIndexObject",169    "function_signature": "static int resizeIndexObject(Parse *pParse, Index *pIdx, int N)",170    "test_filename": "tests_build_resizeIndexObject.c"171  },172  {173    "function_name": "estimateTableWidth",174    "function_signature": "static void estimateTableWidth(Table *pTab)",175    "test_filename": "tests_build_estimateTableWidth.c"176  },177  {178    "function_name": "estimateIndexWidth",179    "function_signature": "static void estimateIndexWidth(Index *pIdx)",180    "test_filename": "tests_build_estimateIndexWidth.c"181  },182  {183    "function_name": "isDupColumn",184    "function_signature": "static int isDupColumn(Index *pIdx, int nKey, Index *pPk, int iCol)",185    "test_filename": "tests_build_isDupColumn.c"186  },187  {188    "function_name": "recomputeColumnsNotIndexed",189    "function_signature": "static void recomputeColumnsNotIndexed(Index *pIdx)",190    "test_filename": "tests_build_recomputeColumnsNotIndexed.c"191  },192  {193    "function_name": "convertToWithoutRowidTable",194    "function_signature": "static void convertToWithoutRowidTable(Parse *pParse, Table *pTab)",195    "test_filename": "tests_build_convertToWithoutRowidTable.c"196  },197  {198    "function_name": "sqlite3IsShadowTableOf",199    "function_signature": "int sqlite3IsShadowTableOf(sqlite3 *db, Table *pTab, const char *zName)",200    "test_filename": "tests_build_sqlite3IsShadowTableOf.c"201  },202  {203    "function_name": "sqlite3MarkAllShadowTablesOf",204    "function_signature": "void sqlite3MarkAllShadowTablesOf(sqlite3 *db, Table *pTab)",205    "test_filename": "tests_build_sqlite3MarkAllShadowTablesOf.c"206  },207  {208    "function_name": "sqlite3ShadowTableName",209    "function_signature": "int sqlite3ShadowTableName(sqlite3 *db, const char *zName)",210    "test_filename": "tests_build_sqlite3ShadowTableName.c"211  },212  {213    "function_name": "markExprListImmutable",214    "function_signature": "static void markExprListImmutable(ExprList *pList)",215    "test_filename": "tests_build_markExprListImmutable.c"216  },217  {218    "function_name": "sqlite3EndTable",219    "function_signature": "void sqlite3EndTable(\n  Parse *pParse,          /* Parse context */\n  Token *pCons,           /* The ',' token after the last column defn. */\n  Token *pEnd,            /* The ')' before options in the CREATE TABLE */\n  u32 tabOpts,            /* Extra table options. Usually 0. */\n  Select *pSelect         /* Select from a \"CREATE ... AS SELECT\" */\n)",220    "test_filename": "tests_build_sqlite3EndTable.c"221  },222  {223    "function_name": "sqlite3CreateView",224    "function_signature": "void sqlite3CreateView(\n  Parse *pParse,     /* The parsing context */\n  Token *pBegin,     /* The CREATE token that begins the statement */\n  Token *pName1,     /* The token that holds the name of the view */\n  Token *pName2,     /* The token that holds the name of the view */\n  ExprList *pCNames, /* Optional list of view column names */\n  Select *pSelect,   /* A SELECT statement that will become the new view */\n  int isTemp,        /* TRUE for a TEMPORARY view */\n  int noErr          /* Suppress error messages if VIEW already exists */\n)",225    "test_filename": "tests_build_sqlite3CreateView.c"226  },227  {228    "function_name": "viewGetColumnNames",229    "function_signature": "static SQLITE_NOINLINE int viewGetColumnNames(Parse *pParse, Table *pTable)",230    "test_filename": "tests_build_viewGetColumnNames.c"231  },232  {233    "function_name": "sqliteViewResetAll",234    "function_signature": "static void sqliteViewResetAll(sqlite3 *db, int idx)",235    "test_filename": "tests_build_sqliteViewResetAll.c"236  },237  {238    "function_name": "sqlite3RootPageMoved",239    "function_signature": "void sqlite3RootPageMoved(sqlite3 *db, int iDb, Pgno iFrom, Pgno iTo)",240    "test_filename": "tests_build_sqlite3RootPageMoved.c"241  },242  {243    "function_name": "destroyRootPage",244    "function_signature": "static void destroyRootPage(Parse *pParse, int iTable, int iDb)",245    "test_filename": "tests_build_destroyRootPage.c"246  },247  {248    "function_name": "destroyTable",249    "function_signature": "static void destroyTable(Parse *pParse, Table *pTab)",250    "test_filename": "tests_build_destroyTable.c"251  },252  {253    "function_name": "sqlite3ClearStatTables",254    "function_signature": "static void sqlite3ClearStatTables(\n  Parse *pParse,         /* The parsing context */\n  int iDb,               /* The database number */\n  const char *zType,     /* \"idx\" or \"tbl\" */\n  const char *zName      /* Name of index or table */\n)",255    "test_filename": "tests_build_sqlite3ClearStatTables.c"256  },257  {258    "function_name": "sqlite3CodeDropTable",259    "function_signature": "void sqlite3CodeDropTable(Parse *pParse, Table *pTab, int iDb, int isView)",260    "test_filename": "tests_build_sqlite3CodeDropTable.c"261  },262  {263    "function_name": "sqlite3ReadOnlyShadowTables",264    "function_signature": "int sqlite3ReadOnlyShadowTables(sqlite3 *db)",265    "test_filename": "tests_build_sqlite3ReadOnlyShadowTables.c"266  },267  {268    "function_name": "tableMayNotBeDropped",269    "function_signature": "static int tableMayNotBeDropped(sqlite3 *db, Table *pTab)",270    "test_filename": "tests_build_tableMayNotBeDropped.c"271  },272  {273    "function_name": "sqlite3DropTable",274    "function_signature": "void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr)",275    "test_filename": "tests_build_sqlite3DropTable.c"276  },277  {278    "function_name": "sqlite3CreateForeignKey",279    "function_signature": "void sqlite3CreateForeignKey(\n  Parse *pParse,       /* Parsing context */\n  ExprList *pFromCol,  /* Columns in this table that point to other table */\n  Token *pTo,          /* Name of the other table */\n  ExprList *pToCol,    /* Columns in the other table */\n  int flags            /* Conflict resolution algorithms. */\n)",280    "test_filename": "tests_build_sqlite3CreateForeignKey.c"281  },282  {283    "function_name": "sqlite3DeferForeignKey",284    "function_signature": "void sqlite3DeferForeignKey(Parse *pParse, int isDeferred)",285    "test_filename": "tests_build_sqlite3DeferForeignKey.c"286  },287  {288    "function_name": "sqlite3RefillIndex",289    "function_signature": "static void sqlite3RefillIndex(Parse *pParse, Index *pIndex, int memRootPage)",290    "test_filename": "tests_build_sqlite3RefillIndex.c"291  },292  {293    "function_name": "sqlite3HasExplicitNulls",294    "function_signature": "int sqlite3HasExplicitNulls(Parse *pParse, ExprList *pList)",295    "test_filename": "tests_build_sqlite3HasExplicitNulls.c"296  },297  {298    "function_name": "sqlite3CreateIndex",299    "function_signature": "void sqlite3CreateIndex(\n  Parse *pParse,     /* All information about this parse */\n  Token *pName1,     /* First part of index name. May be NULL */\n  Token *pName2,     /* Second part of index name. May be NULL */\n  SrcList *pTblName, /* Table to index. Use pParse->pNewTable if 0 */\n  ExprList *pList,   /* A list of columns to be indexed */\n  int onError,       /* OE_Abort, OE_Ignore, OE_Replace, or OE_None */\n  Token *pStart,     /* The CREATE token that begins this statement */\n  Expr *pPIWhere,    /* WHERE clause for partial indices */\n  int sortOrder,     /* Sort order of primary key when pList==NULL */\n  int ifNotExist,    /* Omit error if index already exists */\n  u8 idxType         /* The index type */\n)",300    "test_filename": "tests_build_sqlite3CreateIndex.c"301  },302  {303    "function_name": "sqlite3DefaultRowEst",304    "function_signature": "void sqlite3DefaultRowEst(Index *pIdx)",305    "test_filename": "tests_build_sqlite3DefaultRowEst.c"306  },307  {308    "function_name": "sqlite3DropIndex",309    "function_signature": "void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists)",310    "test_filename": "tests_build_sqlite3DropIndex.c"311  },312  {313    "function_name": "sqlite3SrcListAssignCursors",314    "function_signature": "void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList)",315    "test_filename": "tests_build_sqlite3SrcListAssignCursors.c"316  },317  {318    "function_name": "sqlite3SrcListDelete",319    "function_signature": "void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList)",320    "test_filename": "tests_build_sqlite3SrcListDelete.c"321  },322  {323    "function_name": "sqlite3SrcItemAttachSubquery",324    "function_signature": "int sqlite3SrcItemAttachSubquery(\n  Parse *pParse,     /* Parsing context */\n  SrcItem *pItem,    /* Item to which the subquery is to be attached */\n  Select *pSelect,   /* The subquery SELECT.  Must be non-NULL */\n  int dupSelect      /* If true, attach a copy of pSelect, not pSelect itself.*/\n)",325    "test_filename": "tests_build_sqlite3SrcItemAttachSubquery.c"326  },327  {328    "function_name": "sqlite3SrcListIndexedBy",329    "function_signature": "void sqlite3SrcListIndexedBy(Parse *pParse, SrcList *p, Token *pIndexedBy)",330    "test_filename": "tests_build_sqlite3SrcListIndexedBy.c"331  },332  {333    "function_name": "sqlite3SrcListFuncArgs",334    "function_signature": "void sqlite3SrcListFuncArgs(Parse *pParse, SrcList *p, ExprList *pList)",335    "test_filename": "tests_build_sqlite3SrcListFuncArgs.c"336  },337  {338    "function_name": "sqlite3SrcListShiftJoinType",339    "function_signature": "void sqlite3SrcListShiftJoinType(Parse *pParse, SrcList *p)",340    "test_filename": "tests_build_sqlite3SrcListShiftJoinType.c"341  },342  {343    "function_name": "sqlite3BeginTransaction",344    "function_signature": "void sqlite3BeginTransaction(Parse *pParse, int type)",345    "test_filename": "tests_build_sqlite3BeginTransaction.c"346  },347  {348    "function_name": "sqlite3EndTransaction",349    "function_signature": "void sqlite3EndTransaction(Parse *pParse, int eType)",350    "test_filename": "tests_build_sqlite3EndTransaction.c"351  },352  {353    "function_name": "sqlite3Savepoint",354    "function_signature": "void sqlite3Savepoint(Parse *pParse, int op, Token *pName)",355    "test_filename": "tests_build_sqlite3Savepoint.c"356  },357  {358    "function_name": "sqlite3OpenTempDatabase",359    "function_signature": "int sqlite3OpenTempDatabase(Parse *pParse)",360    "test_filename": "tests_build_sqlite3OpenTempDatabase.c"361  },362  {363    "function_name": "sqlite3CodeVerifySchemaAtToplevel",364    "function_signature": "static void sqlite3CodeVerifySchemaAtToplevel(Parse *pToplevel, int iDb)",365    "test_filename": "tests_build_sqlite3CodeVerifySchemaAtToplevel.c"366  },367  {368    "function_name": "sqlite3CodeVerifyNamedSchema",369    "function_signature": "void sqlite3CodeVerifyNamedSchema(Parse *pParse, const char *zDb)",370    "test_filename": "tests_build_sqlite3CodeVerifyNamedSchema.c"371  },372  {373    "function_name": "sqlite3HaltConstraint",374    "function_signature": "void sqlite3HaltConstraint(\n  Parse *pParse,    /* Parsing context */\n  int errCode,      /* extended error code */\n  int onError,      /* Constraint type */\n  char *p4,         /* Error message */\n  i8 p4type,        /* P4_STATIC or P4_TRANSIENT */\n  u8 p5Errmsg       /* P5_ErrMsg type */\n)",375    "test_filename": "tests_build_sqlite3HaltConstraint.c"376  },377  {378    "function_name": "sqlite3UniqueConstraint",379    "function_signature": "void sqlite3UniqueConstraint(\n  Parse *pParse,    /* Parsing context */\n  int onError,      /* Constraint type */\n  Index *pIdx       /* The index that triggers the constraint */\n)",380    "test_filename": "tests_build_sqlite3UniqueConstraint.c"381  },382  {383    "function_name": "sqlite3RowidConstraint",384    "function_signature": "void sqlite3RowidConstraint(\n  Parse *pParse,    /* Parsing context */\n  int onError,      /* Conflict resolution algorithm */\n  Table *pTab       /* The table with the non-unique rowid */\n)",385    "test_filename": "tests_build_sqlite3RowidConstraint.c"386  },387  {388    "function_name": "collationMatch",389    "function_signature": "static int collationMatch(const char *zColl, Index *pIndex)",390    "test_filename": "tests_build_collationMatch.c"391  },392  {393    "function_name": "reindexTable",394    "function_signature": "static void reindexTable(Parse *pParse, Table *pTab, char const *zColl)",395    "test_filename": "tests_build_reindexTable.c"396  },397  {398    "function_name": "reindexDatabases",399    "function_signature": "static void reindexDatabases(Parse *pParse, char const *zColl)",400    "test_filename": "tests_build_reindexDatabases.c"401  },402  {403    "function_name": "sqlite3Reindex",404    "function_signature": "void sqlite3Reindex(Parse *pParse, Token *pName1, Token *pName2)",405    "test_filename": "tests_build_sqlite3Reindex.c"406  }407]