sqlite / injectable_functions /main_injectable_functions.json
AryaWu's picture
Upload folder using huggingface_hub
7510827 verified
[
{
"function_name": "sqlite3_initialize",
"function_signature": "int sqlite3_initialize(void)",
"test_filename": "tests_main_sqlite3_initialize.c"
},
{
"function_name": "sqlite3_shutdown",
"function_signature": "int sqlite3_shutdown(void)",
"test_filename": "tests_main_sqlite3_shutdown.c"
},
{
"function_name": "sqlite3_config",
"function_signature": "int sqlite3_config(int op, ...)",
"test_filename": "tests_main_sqlite3_config.c"
},
{
"function_name": "setupLookaside",
"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)",
"test_filename": "tests_main_setupLookaside.c"
},
{
"function_name": "sqlite3_db_release_memory",
"function_signature": "int sqlite3_db_release_memory(sqlite3 *db)",
"test_filename": "tests_main_sqlite3_db_release_memory.c"
},
{
"function_name": "sqlite3_db_cacheflush",
"function_signature": "int sqlite3_db_cacheflush(sqlite3 *db)",
"test_filename": "tests_main_sqlite3_db_cacheflush.c"
},
{
"function_name": "sqlite3_db_config",
"function_signature": "int sqlite3_db_config(sqlite3 *db, int op, ...)",
"test_filename": "tests_main_sqlite3_db_config.c"
},
{
"function_name": "binCollFunc",
"function_signature": "static int binCollFunc(\n void *NotUsed,\n int nKey1, const void *pKey1,\n int nKey2, const void *pKey2\n)",
"test_filename": "tests_main_binCollFunc.c"
},
{
"function_name": "rtrimCollFunc",
"function_signature": "static int rtrimCollFunc(\n void *pUser,\n int nKey1, const void *pKey1,\n int nKey2, const void *pKey2\n)",
"test_filename": "tests_main_rtrimCollFunc.c"
},
{
"function_name": "nocaseCollatingFunc",
"function_signature": "static int nocaseCollatingFunc(\n void *NotUsed,\n int nKey1, const void *pKey1,\n int nKey2, const void *pKey2\n)",
"test_filename": "tests_main_nocaseCollatingFunc.c"
},
{
"function_name": "sqlite3_set_last_insert_rowid",
"function_signature": "void sqlite3_set_last_insert_rowid(sqlite3 *db, sqlite3_int64 iRowid)",
"test_filename": "tests_main_sqlite3_set_last_insert_rowid.c"
},
{
"function_name": "sqlite3CloseSavepoints",
"function_signature": "void sqlite3CloseSavepoints(sqlite3 *db)",
"test_filename": "tests_main_sqlite3CloseSavepoints.c"
},
{
"function_name": "functionDestroy",
"function_signature": "static void functionDestroy(sqlite3 *db, FuncDef *p)",
"test_filename": "tests_main_functionDestroy.c"
},
{
"function_name": "disconnectAllVtab",
"function_signature": "static void disconnectAllVtab(sqlite3 *db)",
"test_filename": "tests_main_disconnectAllVtab.c"
},
{
"function_name": "connectionIsBusy",
"function_signature": "static int connectionIsBusy(sqlite3 *db)",
"test_filename": "tests_main_connectionIsBusy.c"
},
{
"function_name": "sqlite3Close",
"function_signature": "static int sqlite3Close(sqlite3 *db, int forceZombie)",
"test_filename": "tests_main_sqlite3Close.c"
},
{
"function_name": "sqlite3_txn_state",
"function_signature": "int sqlite3_txn_state(sqlite3 *db, const char *zSchema)",
"test_filename": "tests_main_sqlite3_txn_state.c"
},
{
"function_name": "sqlite3LeaveMutexAndCloseZombie",
"function_signature": "void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db)",
"test_filename": "tests_main_sqlite3LeaveMutexAndCloseZombie.c"
},
{
"function_name": "sqlite3RollbackAll",
"function_signature": "void sqlite3RollbackAll(sqlite3 *db, int tripCode)",
"test_filename": "tests_main_sqlite3RollbackAll.c"
},
{
"function_name": "sqliteDefaultBusyCallback",
"function_signature": "static int sqliteDefaultBusyCallback(\n void *ptr, /* Database connection */\n int count /* Number of times table has been busy */\n)",
"test_filename": "tests_main_sqliteDefaultBusyCallback.c"
},
{
"function_name": "sqlite3InvokeBusyHandler",
"function_signature": "int sqlite3InvokeBusyHandler(BusyHandler *p)",
"test_filename": "tests_main_sqlite3InvokeBusyHandler.c"
},
{
"function_name": "sqlite3_busy_handler",
"function_signature": "int sqlite3_busy_handler(\n sqlite3 *db,\n int (*xBusy)(void*,int),\n void *pArg\n)",
"test_filename": "tests_main_sqlite3_busy_handler.c"
},
{
"function_name": "sqlite3_progress_handler",
"function_signature": "void sqlite3_progress_handler(\n sqlite3 *db,\n int nOps,\n int (*xProgress)(void*),\n void *pArg\n)",
"test_filename": "tests_main_sqlite3_progress_handler.c"
},
{
"function_name": "sqlite3_busy_timeout",
"function_signature": "int sqlite3_busy_timeout(sqlite3 *db, int ms)",
"test_filename": "tests_main_sqlite3_busy_timeout.c"
},
{
"function_name": "sqlite3_setlk_timeout",
"function_signature": "int sqlite3_setlk_timeout(sqlite3 *db, int ms, int flags)",
"test_filename": "tests_main_sqlite3_setlk_timeout.c"
},
{
"function_name": "sqlite3_interrupt",
"function_signature": "void sqlite3_interrupt(sqlite3 *db)",
"test_filename": "tests_main_sqlite3_interrupt.c"
},
{
"function_name": "sqlite3_is_interrupted",
"function_signature": "int sqlite3_is_interrupted(sqlite3 *db)",
"test_filename": "tests_main_sqlite3_is_interrupted.c"
},
{
"function_name": "sqlite3CreateFunc",
"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)",
"test_filename": "tests_main_sqlite3CreateFunc.c"
},
{
"function_name": "createFunctionApi",
"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)",
"test_filename": "tests_main_createFunctionApi.c"
},
{
"function_name": "sqlite3_create_function",
"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)",
"test_filename": "tests_main_sqlite3_create_function.c"
},
{
"function_name": "sqlite3_create_function_v2",
"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)",
"test_filename": "tests_main_sqlite3_create_function_v2.c"
},
{
"function_name": "sqlite3_create_window_function",
"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)",
"test_filename": "tests_main_sqlite3_create_window_function.c"
},
{
"function_name": "sqlite3_create_function16",
"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)",
"test_filename": "tests_main_sqlite3_create_function16.c"
},
{
"function_name": "sqlite3InvalidFunction",
"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)",
"test_filename": "tests_main_sqlite3InvalidFunction.c"
},
{
"function_name": "sqlite3_overload_function",
"function_signature": "int sqlite3_overload_function(\n sqlite3 *db,\n const char *zName,\n int nArg\n)",
"test_filename": "tests_main_sqlite3_overload_function.c"
},
{
"function_name": "sqlite3_trace_v2",
"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)",
"test_filename": "tests_main_sqlite3_trace_v2.c"
},
{
"function_name": "sqlite3_autovacuum_pages",
"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)",
"test_filename": "tests_main_sqlite3_autovacuum_pages.c"
},
{
"function_name": "sqlite3WalDefaultHook",
"function_signature": "int sqlite3WalDefaultHook(\n void *pClientData, /* Argument */\n sqlite3 *db, /* Connection */\n const char *zDb, /* Database */\n int nFrame /* Size of WAL */\n)",
"test_filename": "tests_main_sqlite3WalDefaultHook.c"
},
{
"function_name": "sqlite3_wal_autocheckpoint",
"function_signature": "int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame)",
"test_filename": "tests_main_sqlite3_wal_autocheckpoint.c"
},
{
"function_name": "sqlite3_wal_checkpoint_v2",
"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)",
"test_filename": "tests_main_sqlite3_wal_checkpoint_v2.c"
},
{
"function_name": "sqlite3Checkpoint",
"function_signature": "int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt)",
"test_filename": "tests_main_sqlite3Checkpoint.c"
},
{
"function_name": "sqlite3TempInMemory",
"function_signature": "int sqlite3TempInMemory(const sqlite3 *db)",
"test_filename": "tests_main_sqlite3TempInMemory.c"
},
{
"function_name": "sqlite3_set_errmsg",
"function_signature": "int sqlite3_set_errmsg(sqlite3 *db, int errcode, const char *zMsg)",
"test_filename": "tests_main_sqlite3_set_errmsg.c"
},
{
"function_name": "createCollation",
"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)",
"test_filename": "tests_main_createCollation.c"
},
{
"function_name": "sqlite3_limit",
"function_signature": "int sqlite3_limit(sqlite3 *db, int limitId, int newLimit)",
"test_filename": "tests_main_sqlite3_limit.c"
},
{
"function_name": "sqlite3ParseUri",
"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)",
"test_filename": "tests_main_sqlite3ParseUri.c"
},
{
"function_name": "openDatabase",
"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)",
"test_filename": "tests_main_openDatabase.c"
},
{
"function_name": "sqlite3_open16",
"function_signature": "int sqlite3_open16(\n const void *zFilename,\n sqlite3 **ppDb\n)",
"test_filename": "tests_main_sqlite3_open16.c"
},
{
"function_name": "sqlite3_create_collation_v2",
"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)",
"test_filename": "tests_main_sqlite3_create_collation_v2.c"
},
{
"function_name": "sqlite3_create_collation16",
"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)",
"test_filename": "tests_main_sqlite3_create_collation16.c"
},
{
"function_name": "sqlite3_collation_needed",
"function_signature": "int sqlite3_collation_needed(\n sqlite3 *db,\n void *pCollNeededArg,\n void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)\n)",
"test_filename": "tests_main_sqlite3_collation_needed.c"
},
{
"function_name": "sqlite3_collation_needed16",
"function_signature": "int sqlite3_collation_needed16(\n sqlite3 *db,\n void *pCollNeededArg,\n void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)\n)",
"test_filename": "tests_main_sqlite3_collation_needed16.c"
},
{
"function_name": "sqlite3_set_clientdata",
"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)",
"test_filename": "tests_main_sqlite3_set_clientdata.c"
},
{
"function_name": "sqlite3_table_column_metadata",
"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)",
"test_filename": "tests_main_sqlite3_table_column_metadata.c"
},
{
"function_name": "sqlite3_sleep",
"function_signature": "int sqlite3_sleep(int ms)",
"test_filename": "tests_main_sqlite3_sleep.c"
},
{
"function_name": "sqlite3_file_control",
"function_signature": "int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg)",
"test_filename": "tests_main_sqlite3_file_control.c"
},
{
"function_name": "sqlite3_test_control",
"function_signature": "int sqlite3_test_control(int op, ...)",
"test_filename": "tests_main_sqlite3_test_control.c"
},
{
"function_name": "sqlite3_uri_int64",
"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)",
"test_filename": "tests_main_sqlite3_uri_int64.c"
},
{
"function_name": "sqlite3_db_readonly",
"function_signature": "int sqlite3_db_readonly(sqlite3 *db, const char *zDbName)",
"test_filename": "tests_main_sqlite3_db_readonly.c"
},
{
"function_name": "sqlite3_snapshot_get",
"function_signature": "int sqlite3_snapshot_get(\n sqlite3 *db,\n const char *zDb,\n sqlite3_snapshot **ppSnapshot\n)",
"test_filename": "tests_main_sqlite3_snapshot_get.c"
},
{
"function_name": "sqlite3_snapshot_open",
"function_signature": "int sqlite3_snapshot_open(\n sqlite3 *db,\n const char *zDb,\n sqlite3_snapshot *pSnapshot\n)",
"test_filename": "tests_main_sqlite3_snapshot_open.c"
},
{
"function_name": "sqlite3_snapshot_recover",
"function_signature": "int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb)",
"test_filename": "tests_main_sqlite3_snapshot_recover.c"
},
{
"function_name": "sqlite3_compileoption_used",
"function_signature": "int sqlite3_compileoption_used(const char *zOptName)",
"test_filename": "tests_main_sqlite3_compileoption_used.c"
}
]