CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
vdbesort_injectable_functions.json217 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "vdbePmaReadBlob",4    "function_signature": "static int vdbePmaReadBlob(\n  PmaReader *p,                   /* PmaReader from which to take the blob */\n  int nByte,                      /* Bytes of data to read */\n  u8 **ppOut                      /* OUT: Pointer to buffer containing data */\n)",5    "test_filename": "tests_vdbesort_vdbePmaReadBlob.c"6  },7  {8    "function_name": "vdbePmaReadVarint",9    "function_signature": "static int vdbePmaReadVarint(PmaReader *p, u64 *pnOut)",10    "test_filename": "tests_vdbesort_vdbePmaReadVarint.c"11  },12  {13    "function_name": "vdbeSorterMapFile",14    "function_signature": "static int vdbeSorterMapFile(SortSubtask *pTask, SorterFile *pFile, u8 **pp)",15    "test_filename": "tests_vdbesort_vdbeSorterMapFile.c"16  },17  {18    "function_name": "vdbePmaReaderSeek",19    "function_signature": "static int vdbePmaReaderSeek(\n  SortSubtask *pTask,             /* Task context */\n  PmaReader *pReadr,              /* Reader whose cursor is to be moved */\n  SorterFile *pFile,              /* Sorter file to read from */\n  i64 iOff                        /* Offset in pFile */\n)",20    "test_filename": "tests_vdbesort_vdbePmaReaderSeek.c"21  },22  {23    "function_name": "vdbePmaReaderNext",24    "function_signature": "static int vdbePmaReaderNext(PmaReader *pReadr)",25    "test_filename": "tests_vdbesort_vdbePmaReaderNext.c"26  },27  {28    "function_name": "vdbePmaReaderInit",29    "function_signature": "static int vdbePmaReaderInit(\n  SortSubtask *pTask,             /* Task context */\n  SorterFile *pFile,              /* Sorter file to read from */\n  i64 iStart,                     /* Start offset in pFile */\n  PmaReader *pReadr,              /* PmaReader to populate */\n  i64 *pnByte                     /* IN/OUT: Increment this value by PMA size */\n)",30    "test_filename": "tests_vdbesort_vdbePmaReaderInit.c"31  },32  {33    "function_name": "vdbeSorterCompareTail",34    "function_signature": "static int vdbeSorterCompareTail(\n  SortSubtask *pTask,             /* Subtask context (for pKeyInfo) */\n  int *pbKey2Cached,              /* True if pTask->pUnpacked is pKey2 */\n  const void *pKey1, int nKey1,   /* Left side of comparison */\n  const void *pKey2, int nKey2    /* Right side of comparison */\n)",35    "test_filename": "tests_vdbesort_vdbeSorterCompareTail.c"36  },37  {38    "function_name": "vdbeSorterCompare",39    "function_signature": "static int vdbeSorterCompare(\n  SortSubtask *pTask,             /* Subtask context (for pKeyInfo) */\n  int *pbKey2Cached,              /* True if pTask->pUnpacked is pKey2 */\n  const void *pKey1, int nKey1,   /* Left side of comparison */\n  const void *pKey2, int nKey2    /* Right side of comparison */\n)",40    "test_filename": "tests_vdbesort_vdbeSorterCompare.c"41  },42  {43    "function_name": "vdbeSorterCompareText",44    "function_signature": "static int vdbeSorterCompareText(\n  SortSubtask *pTask,             /* Subtask context (for pKeyInfo) */\n  int *pbKey2Cached,              /* True if pTask->pUnpacked is pKey2 */\n  const void *pKey1, int nKey1,   /* Left side of comparison */\n  const void *pKey2, int nKey2    /* Right side of comparison */\n)",45    "test_filename": "tests_vdbesort_vdbeSorterCompareText.c"46  },47  {48    "function_name": "vdbeSorterCompareInt",49    "function_signature": "static int vdbeSorterCompareInt(\n  SortSubtask *pTask,             /* Subtask context (for pKeyInfo) */\n  int *pbKey2Cached,              /* True if pTask->pUnpacked is pKey2 */\n  const void *pKey1, int nKey1,   /* Left side of comparison */\n  const void *pKey2, int nKey2    /* Right side of comparison */\n)",50    "test_filename": "tests_vdbesort_vdbeSorterCompareInt.c"51  },52  {53    "function_name": "sqlite3VdbeSorterInit",54    "function_signature": "int sqlite3VdbeSorterInit(\n  sqlite3 *db,                    /* Database connection (for malloc()) */\n  int nField,                     /* Number of key fields in each record */\n  VdbeCursor *pCsr                /* Cursor that holds the new sorter */\n)",55    "test_filename": "tests_vdbesort_sqlite3VdbeSorterInit.c"56  },57  {58    "function_name": "vdbeSortSubtaskCleanup",59    "function_signature": "static void vdbeSortSubtaskCleanup(sqlite3 *db, SortSubtask *pTask)",60    "test_filename": "tests_vdbesort_vdbeSortSubtaskCleanup.c"61  },62  {63    "function_name": "vdbeSorterBlockDebug",64    "function_signature": "static void vdbeSorterBlockDebug(\n  SortSubtask *pTask,\n  int bBlocked,\n  const char *zEvent\n)",65    "test_filename": "tests_vdbesort_vdbeSorterBlockDebug.c"66  },67  {68    "function_name": "vdbeSorterJoinThread",69    "function_signature": "static int vdbeSorterJoinThread(SortSubtask *pTask)",70    "test_filename": "tests_vdbesort_vdbeSorterJoinThread.c"71  },72  {73    "function_name": "vdbeSorterJoinAll",74    "function_signature": "static int vdbeSorterJoinAll(VdbeSorter *pSorter, int rcin)",75    "test_filename": "tests_vdbesort_vdbeSorterJoinAll.c"76  },77  {78    "function_name": "vdbeIncrFree",79    "function_signature": "static void vdbeIncrFree(IncrMerger *pIncr)",80    "test_filename": "tests_vdbesort_vdbeIncrFree.c"81  },82  {83    "function_name": "sqlite3VdbeSorterReset",84    "function_signature": "void sqlite3VdbeSorterReset(sqlite3 *db, VdbeSorter *pSorter)",85    "test_filename": "tests_vdbesort_sqlite3VdbeSorterReset.c"86  },87  {88    "function_name": "sqlite3VdbeSorterClose",89    "function_signature": "void sqlite3VdbeSorterClose(sqlite3 *db, VdbeCursor *pCsr)",90    "test_filename": "tests_vdbesort_sqlite3VdbeSorterClose.c"91  },92  {93    "function_name": "vdbeSorterExtendFile",94    "function_signature": "static void vdbeSorterExtendFile(sqlite3 *db, sqlite3_file *pFd, i64 nByte)",95    "test_filename": "tests_vdbesort_vdbeSorterExtendFile.c"96  },97  {98    "function_name": "vdbeSorterOpenTempFile",99    "function_signature": "static int vdbeSorterOpenTempFile(\n  sqlite3 *db,                    /* Database handle doing sort */\n  i64 nExtend,                    /* Attempt to extend file to this size */\n  sqlite3_file **ppFd\n)",100    "test_filename": "tests_vdbesort_vdbeSorterOpenTempFile.c"101  },102  {103    "function_name": "vdbeSorterSort",104    "function_signature": "static int vdbeSorterSort(SortSubtask *pTask, SorterList *pList)",105    "test_filename": "tests_vdbesort_vdbeSorterSort.c"106  },107  {108    "function_name": "vdbePmaWriterInit",109    "function_signature": "static void vdbePmaWriterInit(\n  sqlite3_file *pFd,              /* File handle to write to */\n  PmaWriter *p,                   /* Object to populate */\n  int nBuf,                       /* Buffer size */\n  i64 iStart                      /* Offset of pFd to begin writing at */\n)",110    "test_filename": "tests_vdbesort_vdbePmaWriterInit.c"111  },112  {113    "function_name": "vdbePmaWriteBlob",114    "function_signature": "static void vdbePmaWriteBlob(PmaWriter *p, u8 *pData, int nData)",115    "test_filename": "tests_vdbesort_vdbePmaWriteBlob.c"116  },117  {118    "function_name": "vdbePmaWriterFinish",119    "function_signature": "static int vdbePmaWriterFinish(PmaWriter *p, i64 *piEof, u64 *pnSpill)",120    "test_filename": "tests_vdbesort_vdbePmaWriterFinish.c"121  },122  {123    "function_name": "vdbeSorterListToPMA",124    "function_signature": "static int vdbeSorterListToPMA(SortSubtask *pTask, SorterList *pList)",125    "test_filename": "tests_vdbesort_vdbeSorterListToPMA.c"126  },127  {128    "function_name": "vdbeMergeEngineStep",129    "function_signature": "static int vdbeMergeEngineStep(\n  MergeEngine *pMerger,      /* The merge engine to advance to the next row */\n  int *pbEof                 /* Set TRUE at EOF.  Set false for more content */\n)",130    "test_filename": "tests_vdbesort_vdbeMergeEngineStep.c"131  },132  {133    "function_name": "vdbeSorterFlushPMA",134    "function_signature": "static int vdbeSorterFlushPMA(VdbeSorter *pSorter)",135    "test_filename": "tests_vdbesort_vdbeSorterFlushPMA.c"136  },137  {138    "function_name": "sqlite3VdbeSorterWrite",139    "function_signature": "int sqlite3VdbeSorterWrite(\n  const VdbeCursor *pCsr,         /* Sorter cursor */\n  Mem *pVal                       /* Memory cell containing record */\n)",140    "test_filename": "tests_vdbesort_sqlite3VdbeSorterWrite.c"141  },142  {143    "function_name": "vdbeIncrPopulate",144    "function_signature": "static int vdbeIncrPopulate(IncrMerger *pIncr)",145    "test_filename": "tests_vdbesort_vdbeIncrPopulate.c"146  },147  {148    "function_name": "vdbeIncrSwap",149    "function_signature": "static int vdbeIncrSwap(IncrMerger *pIncr)",150    "test_filename": "tests_vdbesort_vdbeIncrSwap.c"151  },152  {153    "function_name": "vdbeIncrMergerNew",154    "function_signature": "static int vdbeIncrMergerNew(\n  SortSubtask *pTask,     /* The thread that will be using the new IncrMerger */\n  MergeEngine *pMerger,   /* The MergeEngine that the IncrMerger will control */\n  IncrMerger **ppOut      /* Write the new IncrMerger here */\n)",155    "test_filename": "tests_vdbesort_vdbeIncrMergerNew.c"156  },157  {158    "function_name": "vdbeMergeEngineCompare",159    "function_signature": "static void vdbeMergeEngineCompare(\n  MergeEngine *pMerger,  /* Merge engine containing PmaReaders to compare */\n  int iOut               /* Store the result in pMerger->aTree[iOut] */\n)",160    "test_filename": "tests_vdbesort_vdbeMergeEngineCompare.c"161  },162  {163    "function_name": "vdbeMergeEngineInit",164    "function_signature": "static int vdbeMergeEngineInit(\n  SortSubtask *pTask,             /* Thread that will run pMerger */\n  MergeEngine *pMerger,           /* MergeEngine to initialize */\n  int eMode                       /* One of the INCRINIT_XXX constants */\n)",165    "test_filename": "tests_vdbesort_vdbeMergeEngineInit.c"166  },167  {168    "function_name": "vdbePmaReaderIncrMergeInit",169    "function_signature": "static int vdbePmaReaderIncrMergeInit(PmaReader *pReadr, int eMode)",170    "test_filename": "tests_vdbesort_vdbePmaReaderIncrMergeInit.c"171  },172  {173    "function_name": "vdbePmaReaderIncrInit",174    "function_signature": "static int vdbePmaReaderIncrInit(PmaReader *pReadr, int eMode)",175    "test_filename": "tests_vdbesort_vdbePmaReaderIncrInit.c"176  },177  {178    "function_name": "vdbeMergeEngineLevel0",179    "function_signature": "static int vdbeMergeEngineLevel0(\n  SortSubtask *pTask,             /* Sorter task to read from */\n  int nPMA,                       /* Number of PMAs to read */\n  i64 *piOffset,                  /* IN/OUT: Readr offset in pTask->file */\n  MergeEngine **ppOut             /* OUT: New merge-engine */\n)",180    "test_filename": "tests_vdbesort_vdbeMergeEngineLevel0.c"181  },182  {183    "function_name": "vdbeSorterAddToTree",184    "function_signature": "static int vdbeSorterAddToTree(\n  SortSubtask *pTask,             /* Task context */\n  int nDepth,                     /* Depth of tree according to TreeDepth() */\n  int iSeq,                       /* Sequence number of leaf within tree */\n  MergeEngine *pRoot,             /* Root of tree */\n  MergeEngine *pLeaf              /* Leaf to add to tree */\n)",185    "test_filename": "tests_vdbesort_vdbeSorterAddToTree.c"186  },187  {188    "function_name": "vdbeSorterMergeTreeBuild",189    "function_signature": "static int vdbeSorterMergeTreeBuild(\n  VdbeSorter *pSorter,       /* The VDBE cursor that implements the sort */\n  MergeEngine **ppOut        /* Write the MergeEngine here */\n)",190    "test_filename": "tests_vdbesort_vdbeSorterMergeTreeBuild.c"191  },192  {193    "function_name": "vdbeSorterSetupMerge",194    "function_signature": "static int vdbeSorterSetupMerge(VdbeSorter *pSorter)",195    "test_filename": "tests_vdbesort_vdbeSorterSetupMerge.c"196  },197  {198    "function_name": "sqlite3VdbeSorterRewind",199    "function_signature": "int sqlite3VdbeSorterRewind(const VdbeCursor *pCsr, int *pbEof)",200    "test_filename": "tests_vdbesort_sqlite3VdbeSorterRewind.c"201  },202  {203    "function_name": "sqlite3VdbeSorterNext",204    "function_signature": "int sqlite3VdbeSorterNext(sqlite3 *db, const VdbeCursor *pCsr)",205    "test_filename": "tests_vdbesort_sqlite3VdbeSorterNext.c"206  },207  {208    "function_name": "sqlite3VdbeSorterRowkey",209    "function_signature": "int sqlite3VdbeSorterRowkey(const VdbeCursor *pCsr, Mem *pOut)",210    "test_filename": "tests_vdbesort_sqlite3VdbeSorterRowkey.c"211  },212  {213    "function_name": "sqlite3VdbeSorterCompare",214    "function_signature": "int sqlite3VdbeSorterCompare(\n  const VdbeCursor *pCsr,         /* Sorter cursor */\n  Mem *pVal,                      /* Value to compare to current sorter key */\n  int nKeyCol,                    /* Compare this many columns */\n  int *pRes                       /* OUT: Result of comparison */\n)",215    "test_filename": "tests_vdbesort_sqlite3VdbeSorterCompare.c"216  }217]