CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
main_injectable_functions.json317 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "sqlite3_initialize",4    "function_signature": "int sqlite3_initialize(void)",5    "test_filename": "tests_main_sqlite3_initialize.c"6  },7  {8    "function_name": "sqlite3_shutdown",9    "function_signature": "int sqlite3_shutdown(void)",10    "test_filename": "tests_main_sqlite3_shutdown.c"11  },12  {13    "function_name": "sqlite3_config",14    "function_signature": "int sqlite3_config(int op, ...)",15    "test_filename": "tests_main_sqlite3_config.c"16  },17  {18    "function_name": "setupLookaside",19    "function_signature": "static int setupLookaside(\n  sqlite3 *db,    /* Database connection being configured */\n  void *pBuf,     /* Memory to use for lookaside.  May be NULL */\n  int sz,         /* Desired size of each lookaside memory slot */\n  int cnt         /* Number of slots to allocate */\n)",20    "test_filename": "tests_main_setupLookaside.c"21  },22  {23    "function_name": "sqlite3_db_release_memory",24    "function_signature": "int sqlite3_db_release_memory(sqlite3 *db)",25    "test_filename": "tests_main_sqlite3_db_release_memory.c"26  },27  {28    "function_name": "sqlite3_db_cacheflush",29    "function_signature": "int sqlite3_db_cacheflush(sqlite3 *db)",30    "test_filename": "tests_main_sqlite3_db_cacheflush.c"31  },32  {33    "function_name": "sqlite3_db_config",34    "function_signature": "int sqlite3_db_config(sqlite3 *db, int op, ...)",35    "test_filename": "tests_main_sqlite3_db_config.c"36  },37  {38    "function_name": "binCollFunc",39    "function_signature": "static int binCollFunc(\n  void *NotUsed,\n  int nKey1, const void *pKey1,\n  int nKey2, const void *pKey2\n)",40    "test_filename": "tests_main_binCollFunc.c"41  },42  {43    "function_name": "rtrimCollFunc",44    "function_signature": "static int rtrimCollFunc(\n  void *pUser,\n  int nKey1, const void *pKey1,\n  int nKey2, const void *pKey2\n)",45    "test_filename": "tests_main_rtrimCollFunc.c"46  },47  {48    "function_name": "nocaseCollatingFunc",49    "function_signature": "static int nocaseCollatingFunc(\n  void *NotUsed,\n  int nKey1, const void *pKey1,\n  int nKey2, const void *pKey2\n)",50    "test_filename": "tests_main_nocaseCollatingFunc.c"51  },52  {53    "function_name": "sqlite3_set_last_insert_rowid",54    "function_signature": "void sqlite3_set_last_insert_rowid(sqlite3 *db, sqlite3_int64 iRowid)",55    "test_filename": "tests_main_sqlite3_set_last_insert_rowid.c"56  },57  {58    "function_name": "sqlite3CloseSavepoints",59    "function_signature": "void sqlite3CloseSavepoints(sqlite3 *db)",60    "test_filename": "tests_main_sqlite3CloseSavepoints.c"61  },62  {63    "function_name": "functionDestroy",64    "function_signature": "static void functionDestroy(sqlite3 *db, FuncDef *p)",65    "test_filename": "tests_main_functionDestroy.c"66  },67  {68    "function_name": "disconnectAllVtab",69    "function_signature": "static void disconnectAllVtab(sqlite3 *db)",70    "test_filename": "tests_main_disconnectAllVtab.c"71  },72  {73    "function_name": "connectionIsBusy",74    "function_signature": "static int connectionIsBusy(sqlite3 *db)",75    "test_filename": "tests_main_connectionIsBusy.c"76  },77  {78    "function_name": "sqlite3Close",79    "function_signature": "static int sqlite3Close(sqlite3 *db, int forceZombie)",80    "test_filename": "tests_main_sqlite3Close.c"81  },82  {83    "function_name": "sqlite3_txn_state",84    "function_signature": "int sqlite3_txn_state(sqlite3 *db, const char *zSchema)",85    "test_filename": "tests_main_sqlite3_txn_state.c"86  },87  {88    "function_name": "sqlite3LeaveMutexAndCloseZombie",89    "function_signature": "void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db)",90    "test_filename": "tests_main_sqlite3LeaveMutexAndCloseZombie.c"91  },92  {93    "function_name": "sqlite3RollbackAll",94    "function_signature": "void sqlite3RollbackAll(sqlite3 *db, int tripCode)",95    "test_filename": "tests_main_sqlite3RollbackAll.c"96  },97  {98    "function_name": "sqliteDefaultBusyCallback",99    "function_signature": "static int sqliteDefaultBusyCallback(\n  void *ptr,               /* Database connection */\n  int count                /* Number of times table has been busy */\n)",100    "test_filename": "tests_main_sqliteDefaultBusyCallback.c"101  },102  {103    "function_name": "sqlite3InvokeBusyHandler",104    "function_signature": "int sqlite3InvokeBusyHandler(BusyHandler *p)",105    "test_filename": "tests_main_sqlite3InvokeBusyHandler.c"106  },107  {108    "function_name": "sqlite3_busy_handler",109    "function_signature": "int sqlite3_busy_handler(\n  sqlite3 *db,\n  int (*xBusy)(void*,int),\n  void *pArg\n)",110    "test_filename": "tests_main_sqlite3_busy_handler.c"111  },112  {113    "function_name": "sqlite3_progress_handler",114    "function_signature": "void sqlite3_progress_handler(\n  sqlite3 *db,\n  int nOps,\n  int (*xProgress)(void*),\n  void *pArg\n)",115    "test_filename": "tests_main_sqlite3_progress_handler.c"116  },117  {118    "function_name": "sqlite3_busy_timeout",119    "function_signature": "int sqlite3_busy_timeout(sqlite3 *db, int ms)",120    "test_filename": "tests_main_sqlite3_busy_timeout.c"121  },122  {123    "function_name": "sqlite3_setlk_timeout",124    "function_signature": "int sqlite3_setlk_timeout(sqlite3 *db, int ms, int flags)",125    "test_filename": "tests_main_sqlite3_setlk_timeout.c"126  },127  {128    "function_name": "sqlite3_interrupt",129    "function_signature": "void sqlite3_interrupt(sqlite3 *db)",130    "test_filename": "tests_main_sqlite3_interrupt.c"131  },132  {133    "function_name": "sqlite3_is_interrupted",134    "function_signature": "int sqlite3_is_interrupted(sqlite3 *db)",135    "test_filename": "tests_main_sqlite3_is_interrupted.c"136  },137  {138    "function_name": "sqlite3CreateFunc",139    "function_signature": "int sqlite3CreateFunc(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int enc,\n  void *pUserData,\n  void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value **),\n  void (*xFinal)(sqlite3_context*),\n  void (*xValue)(sqlite3_context*),\n  void (*xInverse)(sqlite3_context*,int,sqlite3_value **),\n  FuncDestructor *pDestructor\n)",140    "test_filename": "tests_main_sqlite3CreateFunc.c"141  },142  {143    "function_name": "createFunctionApi",144    "function_signature": "static int createFunctionApi(\n  sqlite3 *db,\n  const char *zFunc,\n  int nArg,\n  int enc,\n  void *p,\n  void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*),\n  void (*xValue)(sqlite3_context*),\n  void (*xInverse)(sqlite3_context*,int,sqlite3_value**),\n  void(*xDestroy)(void*)\n)",145    "test_filename": "tests_main_createFunctionApi.c"146  },147  {148    "function_name": "sqlite3_create_function",149    "function_signature": "int sqlite3_create_function(\n  sqlite3 *db,\n  const char *zFunc,\n  int nArg,\n  int enc,\n  void *p,\n  void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value **),\n  void (*xFinal)(sqlite3_context*)\n)",150    "test_filename": "tests_main_sqlite3_create_function.c"151  },152  {153    "function_name": "sqlite3_create_function_v2",154    "function_signature": "int sqlite3_create_function_v2(\n  sqlite3 *db,\n  const char *zFunc,\n  int nArg,\n  int enc,\n  void *p,\n  void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value **),\n  void (*xFinal)(sqlite3_context*),\n  void (*xDestroy)(void *)\n)",155    "test_filename": "tests_main_sqlite3_create_function_v2.c"156  },157  {158    "function_name": "sqlite3_create_window_function",159    "function_signature": "int sqlite3_create_window_function(\n  sqlite3 *db,\n  const char *zFunc,\n  int nArg,\n  int enc,\n  void *p,\n  void (*xStep)(sqlite3_context*,int,sqlite3_value **),\n  void (*xFinal)(sqlite3_context*),\n  void (*xValue)(sqlite3_context*),\n  void (*xInverse)(sqlite3_context*,int,sqlite3_value **),\n  void (*xDestroy)(void *)\n)",160    "test_filename": "tests_main_sqlite3_create_window_function.c"161  },162  {163    "function_name": "sqlite3_create_function16",164    "function_signature": "int sqlite3_create_function16(\n  sqlite3 *db,\n  const void *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *p,\n  void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n)",165    "test_filename": "tests_main_sqlite3_create_function16.c"166  },167  {168    "function_name": "sqlite3InvalidFunction",169    "function_signature": "static void sqlite3InvalidFunction(\n  sqlite3_context *context,  /* The function calling context */\n  int NotUsed,               /* Number of arguments to the function */\n  sqlite3_value **NotUsed2   /* Value of each argument */\n)",170    "test_filename": "tests_main_sqlite3InvalidFunction.c"171  },172  {173    "function_name": "sqlite3_overload_function",174    "function_signature": "int sqlite3_overload_function(\n  sqlite3 *db,\n  const char *zName,\n  int nArg\n)",175    "test_filename": "tests_main_sqlite3_overload_function.c"176  },177  {178    "function_name": "sqlite3_trace_v2",179    "function_signature": "int sqlite3_trace_v2(\n  sqlite3 *db,                               /* Trace this connection */\n  unsigned mTrace,                           /* Mask of events to be traced */\n  int(*xTrace)(unsigned,void*,void*,void*),  /* Callback to invoke */\n  void *pArg                                 /* Context */\n)",180    "test_filename": "tests_main_sqlite3_trace_v2.c"181  },182  {183    "function_name": "sqlite3_autovacuum_pages",184    "function_signature": "int sqlite3_autovacuum_pages(\n  sqlite3 *db,                 /* Attach the hook to this database */\n  unsigned int (*xCallback)(void*,const char*,u32,u32,u32),\n  void *pArg,                  /* Argument to the function */\n  void (*xDestructor)(void*)   /* Destructor for pArg */\n)",185    "test_filename": "tests_main_sqlite3_autovacuum_pages.c"186  },187  {188    "function_name": "sqlite3WalDefaultHook",189    "function_signature": "int sqlite3WalDefaultHook(\n  void *pClientData,     /* Argument */\n  sqlite3 *db,           /* Connection */\n  const char *zDb,       /* Database */\n  int nFrame             /* Size of WAL */\n)",190    "test_filename": "tests_main_sqlite3WalDefaultHook.c"191  },192  {193    "function_name": "sqlite3_wal_autocheckpoint",194    "function_signature": "int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame)",195    "test_filename": "tests_main_sqlite3_wal_autocheckpoint.c"196  },197  {198    "function_name": "sqlite3_wal_checkpoint_v2",199    "function_signature": "int sqlite3_wal_checkpoint_v2(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of attached database (or NULL) */\n  int eMode,                      /* SQLITE_CHECKPOINT_* value */\n  int *pnLog,                     /* OUT: Size of WAL log in frames */\n  int *pnCkpt                     /* OUT: Total number of frames checkpointed */\n)",200    "test_filename": "tests_main_sqlite3_wal_checkpoint_v2.c"201  },202  {203    "function_name": "sqlite3Checkpoint",204    "function_signature": "int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt)",205    "test_filename": "tests_main_sqlite3Checkpoint.c"206  },207  {208    "function_name": "sqlite3TempInMemory",209    "function_signature": "int sqlite3TempInMemory(const sqlite3 *db)",210    "test_filename": "tests_main_sqlite3TempInMemory.c"211  },212  {213    "function_name": "sqlite3_set_errmsg",214    "function_signature": "int sqlite3_set_errmsg(sqlite3 *db, int errcode, const char *zMsg)",215    "test_filename": "tests_main_sqlite3_set_errmsg.c"216  },217  {218    "function_name": "createCollation",219    "function_signature": "static int createCollation(\n  sqlite3* db,\n  const char *zName,\n  u8 enc,\n  void* pCtx,\n  int(*xCompare)(void*,int,const void*,int,const void*),\n  void(*xDel)(void*)\n)",220    "test_filename": "tests_main_createCollation.c"221  },222  {223    "function_name": "sqlite3_limit",224    "function_signature": "int sqlite3_limit(sqlite3 *db, int limitId, int newLimit)",225    "test_filename": "tests_main_sqlite3_limit.c"226  },227  {228    "function_name": "sqlite3ParseUri",229    "function_signature": "int sqlite3ParseUri(\n  const char *zDefaultVfs,        /* VFS to use if no \"vfs=xxx\" query option */\n  const char *zUri,               /* Nul-terminated URI to parse */\n  unsigned int *pFlags,           /* IN/OUT: SQLITE_OPEN_XXX flags */\n  sqlite3_vfs **ppVfs,            /* OUT: VFS to use */\n  char **pzFile,                  /* OUT: Filename component of URI */\n  char **pzErrMsg                 /* OUT: Error message (if rc!=SQLITE_OK) */\n)",230    "test_filename": "tests_main_sqlite3ParseUri.c"231  },232  {233    "function_name": "openDatabase",234    "function_signature": "static int openDatabase(\n  const char *zFilename, /* Database filename UTF-8 encoded */\n  sqlite3 **ppDb,        /* OUT: Returned database handle */\n  unsigned int flags,    /* Operational flags */\n  const char *zVfs       /* Name of the VFS to use */\n)",235    "test_filename": "tests_main_openDatabase.c"236  },237  {238    "function_name": "sqlite3_open16",239    "function_signature": "int sqlite3_open16(\n  const void *zFilename,\n  sqlite3 **ppDb\n)",240    "test_filename": "tests_main_sqlite3_open16.c"241  },242  {243    "function_name": "sqlite3_create_collation_v2",244    "function_signature": "int sqlite3_create_collation_v2(\n  sqlite3* db,\n  const char *zName,\n  int enc,\n  void* pCtx,\n  int(*xCompare)(void*,int,const void*,int,const void*),\n  void(*xDel)(void*)\n)",245    "test_filename": "tests_main_sqlite3_create_collation_v2.c"246  },247  {248    "function_name": "sqlite3_create_collation16",249    "function_signature": "int sqlite3_create_collation16(\n  sqlite3* db,\n  const void *zName,\n  int enc,\n  void* pCtx,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n)",250    "test_filename": "tests_main_sqlite3_create_collation16.c"251  },252  {253    "function_name": "sqlite3_collation_needed",254    "function_signature": "int sqlite3_collation_needed(\n  sqlite3 *db,\n  void *pCollNeededArg,\n  void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)\n)",255    "test_filename": "tests_main_sqlite3_collation_needed.c"256  },257  {258    "function_name": "sqlite3_collation_needed16",259    "function_signature": "int sqlite3_collation_needed16(\n  sqlite3 *db,\n  void *pCollNeededArg,\n  void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)\n)",260    "test_filename": "tests_main_sqlite3_collation_needed16.c"261  },262  {263    "function_name": "sqlite3_set_clientdata",264    "function_signature": "int sqlite3_set_clientdata(\n  sqlite3 *db,                   /* Attach client data to this connection */\n  const char *zName,             /* Name of the client data */\n  void *pData,                   /* The client data itself */\n  void (*xDestructor)(void*)     /* Destructor */\n)",265    "test_filename": "tests_main_sqlite3_set_clientdata.c"266  },267  {268    "function_name": "sqlite3_table_column_metadata",269    "function_signature": "int sqlite3_table_column_metadata(\n  sqlite3 *db,                /* Connection handle */\n  const char *zDbName,        /* Database name or NULL */\n  const char *zTableName,     /* Table name */\n  const char *zColumnName,    /* Column name */\n  char const **pzDataType,    /* OUTPUT: Declared data type */\n  char const **pzCollSeq,     /* OUTPUT: Collation sequence name */\n  int *pNotNull,              /* OUTPUT: True if NOT NULL constraint exists */\n  int *pPrimaryKey,           /* OUTPUT: True if column part of PK */\n  int *pAutoinc               /* OUTPUT: True if column is auto-increment */\n)",270    "test_filename": "tests_main_sqlite3_table_column_metadata.c"271  },272  {273    "function_name": "sqlite3_sleep",274    "function_signature": "int sqlite3_sleep(int ms)",275    "test_filename": "tests_main_sqlite3_sleep.c"276  },277  {278    "function_name": "sqlite3_file_control",279    "function_signature": "int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg)",280    "test_filename": "tests_main_sqlite3_file_control.c"281  },282  {283    "function_name": "sqlite3_test_control",284    "function_signature": "int sqlite3_test_control(int op, ...)",285    "test_filename": "tests_main_sqlite3_test_control.c"286  },287  {288    "function_name": "sqlite3_uri_int64",289    "function_signature": "sqlite3_int64 sqlite3_uri_int64(\n  const char *zFilename,    /* Filename as passed to xOpen */\n  const char *zParam,       /* URI parameter sought */\n  sqlite3_int64 bDflt       /* return if parameter is missing */\n)",290    "test_filename": "tests_main_sqlite3_uri_int64.c"291  },292  {293    "function_name": "sqlite3_db_readonly",294    "function_signature": "int sqlite3_db_readonly(sqlite3 *db, const char *zDbName)",295    "test_filename": "tests_main_sqlite3_db_readonly.c"296  },297  {298    "function_name": "sqlite3_snapshot_get",299    "function_signature": "int sqlite3_snapshot_get(\n  sqlite3 *db,\n  const char *zDb,\n  sqlite3_snapshot **ppSnapshot\n)",300    "test_filename": "tests_main_sqlite3_snapshot_get.c"301  },302  {303    "function_name": "sqlite3_snapshot_open",304    "function_signature": "int sqlite3_snapshot_open(\n  sqlite3 *db,\n  const char *zDb,\n  sqlite3_snapshot *pSnapshot\n)",305    "test_filename": "tests_main_sqlite3_snapshot_open.c"306  },307  {308    "function_name": "sqlite3_snapshot_recover",309    "function_signature": "int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb)",310    "test_filename": "tests_main_sqlite3_snapshot_recover.c"311  },312  {313    "function_name": "sqlite3_compileoption_used",314    "function_signature": "int sqlite3_compileoption_used(const char *zOptName)",315    "test_filename": "tests_main_sqlite3_compileoption_used.c"316  }317]