MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / sqlite3_fileio_init

Function sqlite3_fileio_init

modules/dasSQLITE/sqlite/shell.c:6460–6484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6458
6459#endif
6460int sqlite3_fileio_init(
6461 sqlite3 *db,
6462 char **pzErrMsg,
6463 const sqlite3_api_routines *pApi
6464){
6465 int rc = SQLITE_OK;
6466 SQLITE_EXTENSION_INIT2(pApi);
6467 (void)pzErrMsg; /* Unused parameter */
6468 rc = sqlite3_create_function(db, "readfile", 1,
6469 SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
6470 readfileFunc, 0, 0);
6471 if( rc==SQLITE_OK ){
6472 rc = sqlite3_create_function(db, "writefile", -1,
6473 SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
6474 writefileFunc, 0, 0);
6475 }
6476 if( rc==SQLITE_OK ){
6477 rc = sqlite3_create_function(db, "lsmode", 1, SQLITE_UTF8, 0,
6478 lsModeFunc, 0, 0);
6479 }
6480 if( rc==SQLITE_OK ){
6481 rc = fsdirRegister(db);
6482 }
6483 return rc;
6484}
6485
6486#if defined(FILEIO_WIN32_DLL) && (defined(_WIN32) || defined(WIN32))
6487/* To allow a standalone DLL, make test_windirent.c use the same

Callers 2

open_dbFunction · 0.85
arDotCommandFunction · 0.85

Calls 1

fsdirRegisterFunction · 0.85

Tested by

no test coverage detected