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

Function fsdirRegister

modules/dasSQLITE/sqlite/shell.c:6422–6452  ·  view source on GitHub ↗

** Register the "fsdir" virtual table. */

Source from the content-addressed store, hash-verified

6420** Register the "fsdir" virtual table.
6421*/
6422static int fsdirRegister(sqlite3 *db){
6423 static sqlite3_module fsdirModule = {
6424 0, /* iVersion */
6425 0, /* xCreate */
6426 fsdirConnect, /* xConnect */
6427 fsdirBestIndex, /* xBestIndex */
6428 fsdirDisconnect, /* xDisconnect */
6429 0, /* xDestroy */
6430 fsdirOpen, /* xOpen - open a cursor */
6431 fsdirClose, /* xClose - close a cursor */
6432 fsdirFilter, /* xFilter - configure scan constraints */
6433 fsdirNext, /* xNext - advance a cursor */
6434 fsdirEof, /* xEof - check for end of scan */
6435 fsdirColumn, /* xColumn - read data */
6436 fsdirRowid, /* xRowid - read data */
6437 0, /* xUpdate */
6438 0, /* xBegin */
6439 0, /* xSync */
6440 0, /* xCommit */
6441 0, /* xRollback */
6442 0, /* xFindMethod */
6443 0, /* xRename */
6444 0, /* xSavepoint */
6445 0, /* xRelease */
6446 0, /* xRollbackTo */
6447 0, /* xShadowName */
6448 };
6449
6450 int rc = sqlite3_create_module(db, "fsdir", &fsdirModule, 0);
6451 return rc;
6452}
6453#else /* SQLITE_OMIT_VIRTUALTABLE */
6454# define fsdirRegister(x) SQLITE_OK
6455#endif

Callers 1

sqlite3_fileio_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected