CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
fkey_injectable_functions.json72 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "sqlite3FkLocateIndex",4    "function_signature": "int sqlite3FkLocateIndex(\n  Parse *pParse,                  /* Parse context to store any error in */\n  Table *pParent,                 /* Parent table of FK constraint pFKey */\n  FKey *pFKey,                    /* Foreign key to find index for */\n  Index **ppIdx,                  /* OUT: Unique index on parent table */\n  int **paiCol                    /* OUT: Map of index columns in pFKey */\n)",5    "test_filename": "tests_fkey_sqlite3FkLocateIndex.c"6  },7  {8    "function_name": "fkLookupParent",9    "function_signature": "static void fkLookupParent(\n  Parse *pParse,        /* Parse context */\n  int iDb,              /* Index of database housing pTab */\n  Table *pTab,          /* Parent table of FK pFKey */\n  Index *pIdx,          /* Unique index on parent key columns in pTab */\n  FKey *pFKey,          /* Foreign key constraint */\n  int *aiCol,           /* Map from parent key columns to child table columns */\n  int regData,          /* Address of array containing child table row */\n  int nIncr,            /* Increment constraint counter by this */\n  int isIgnore          /* If true, pretend pTab contains all NULL values */\n)",10    "test_filename": "tests_fkey_fkLookupParent.c"11  },12  {13    "function_name": "fkScanChildren",14    "function_signature": "static void fkScanChildren(\n  Parse *pParse,                  /* Parse context */\n  SrcList *pSrc,                  /* The child table to be scanned */\n  Table *pTab,                    /* The parent table */\n  Index *pIdx,                    /* Index on parent covering the foreign key */\n  FKey *pFKey,                    /* The foreign key linking pSrc to pTab */\n  int *aiCol,                     /* Map from pIdx cols to child table cols */\n  int regData,                    /* Parent row data starts here */\n  int nIncr                       /* Amount to increment deferred counter by */\n)",15    "test_filename": "tests_fkey_fkScanChildren.c"16  },17  {18    "function_name": "fkTriggerDelete",19    "function_signature": "static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p)",20    "test_filename": "tests_fkey_fkTriggerDelete.c"21  },22  {23    "function_name": "sqlite3FkClearTriggerCache",24    "function_signature": "void sqlite3FkClearTriggerCache(sqlite3 *db, int iDb)",25    "test_filename": "tests_fkey_sqlite3FkClearTriggerCache.c"26  },27  {28    "function_name": "sqlite3FkDropTable",29    "function_signature": "void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab)",30    "test_filename": "tests_fkey_sqlite3FkDropTable.c"31  },32  {33    "function_name": "fkChildIsModified",34    "function_signature": "static int fkChildIsModified(\n  Table *pTab,                    /* Table being updated */\n  FKey *p,                        /* Foreign key for which pTab is the child */\n  int *aChange,                   /* Array indicating modified columns */\n  int bChngRowid                  /* True if rowid is modified by this update */\n)",35    "test_filename": "tests_fkey_fkChildIsModified.c"36  },37  {38    "function_name": "fkParentIsModified",39    "function_signature": "static int fkParentIsModified(\n  Table *pTab, \n  FKey *p, \n  int *aChange, \n  int bChngRowid\n)",40    "test_filename": "tests_fkey_fkParentIsModified.c"41  },42  {43    "function_name": "isSetNullAction",44    "function_signature": "static int isSetNullAction(Parse *pParse, FKey *pFKey)",45    "test_filename": "tests_fkey_isSetNullAction.c"46  },47  {48    "function_name": "sqlite3FkCheck",49    "function_signature": "void sqlite3FkCheck(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab,                    /* Row is being deleted from this table */ \n  int regOld,                     /* Previous row data is stored here */\n  int regNew,                     /* New row data is stored here */\n  int *aChange,                   /* Array indicating UPDATEd columns (or 0) */\n  int bChngRowid                  /* True if rowid is UPDATEd */\n)",50    "test_filename": "tests_fkey_sqlite3FkCheck.c"51  },52  {53    "function_name": "sqlite3FkOldmask",54    "function_signature": "u32 sqlite3FkOldmask(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab                     /* Table being modified */\n)",55    "test_filename": "tests_fkey_sqlite3FkOldmask.c"56  },57  {58    "function_name": "sqlite3FkRequired",59    "function_signature": "int sqlite3FkRequired(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab,                    /* Table being modified */\n  int *aChange,                   /* Non-NULL for UPDATE operations */\n  int chngRowid                   /* True for UPDATE that affects rowid */\n)",60    "test_filename": "tests_fkey_sqlite3FkRequired.c"61  },62  {63    "function_name": "sqlite3FkActions",64    "function_signature": "void sqlite3FkActions(\n  Parse *pParse,                  /* Parse context */\n  Table *pTab,                    /* Table being updated or deleted from */\n  ExprList *pChanges,             /* Change-list for UPDATE, NULL for DELETE */\n  int regOld,                     /* Address of array containing old row */\n  int *aChange,                   /* Array indicating UPDATEd columns (or 0) */\n  int bChngRowid                  /* True if rowid is UPDATEd */\n)",65    "test_filename": "tests_fkey_sqlite3FkActions.c"66  },67  {68    "function_name": "sqlite3FkDelete",69    "function_signature": "void sqlite3FkDelete(sqlite3 *db, Table *pTab)",70    "test_filename": "tests_fkey_sqlite3FkDelete.c"71  }72]