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

Function sqlite3DbdataRegister

modules/dasSQLITE/sqlite/shell.c:13414–13447  ·  view source on GitHub ↗

** Invoke this routine to register the "sqlite_dbdata" virtual table module */

Source from the content-addressed store, hash-verified

13412** Invoke this routine to register the "sqlite_dbdata" virtual table module
13413*/
13414static int sqlite3DbdataRegister(sqlite3 *db){
13415 static sqlite3_module dbdata_module = {
13416 0, /* iVersion */
13417 0, /* xCreate */
13418 dbdataConnect, /* xConnect */
13419 dbdataBestIndex, /* xBestIndex */
13420 dbdataDisconnect, /* xDisconnect */
13421 0, /* xDestroy */
13422 dbdataOpen, /* xOpen - open a cursor */
13423 dbdataClose, /* xClose - close a cursor */
13424 dbdataFilter, /* xFilter - configure scan constraints */
13425 dbdataNext, /* xNext - advance a cursor */
13426 dbdataEof, /* xEof - check for end of scan */
13427 dbdataColumn, /* xColumn - read data */
13428 dbdataRowid, /* xRowid - read data */
13429 0, /* xUpdate */
13430 0, /* xBegin */
13431 0, /* xSync */
13432 0, /* xCommit */
13433 0, /* xRollback */
13434 0, /* xFindMethod */
13435 0, /* xRename */
13436 0, /* xSavepoint */
13437 0, /* xRelease */
13438 0, /* xRollbackTo */
13439 0 /* xShadowName */
13440 };
13441
13442 int rc = sqlite3_create_module(db, "sqlite_dbdata", &dbdata_module, 0);
13443 if( rc==SQLITE_OK ){
13444 rc = sqlite3_create_module(db, "sqlite_dbptr", &dbdata_module, (void*)1);
13445 }
13446 return rc;
13447}
13448
13449#ifdef _WIN32
13450

Callers 1

sqlite3_dbdata_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected