MCPcopy Create free account
hub / github.com/audacity/audacity / sqlite3DbdataRegister

Function sqlite3DbdataRegister

lib-src/sqlite/shell.c:11147–11180  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

11145** Invoke this routine to register the "sqlite_dbdata" virtual table module
11146*/
11147static int sqlite3DbdataRegister(sqlite3 *db){
11148 static sqlite3_module dbdata_module = {
11149 0, /* iVersion */
11150 0, /* xCreate */
11151 dbdataConnect, /* xConnect */
11152 dbdataBestIndex, /* xBestIndex */
11153 dbdataDisconnect, /* xDisconnect */
11154 0, /* xDestroy */
11155 dbdataOpen, /* xOpen - open a cursor */
11156 dbdataClose, /* xClose - close a cursor */
11157 dbdataFilter, /* xFilter - configure scan constraints */
11158 dbdataNext, /* xNext - advance a cursor */
11159 dbdataEof, /* xEof - check for end of scan */
11160 dbdataColumn, /* xColumn - read data */
11161 dbdataRowid, /* xRowid - read data */
11162 0, /* xUpdate */
11163 0, /* xBegin */
11164 0, /* xSync */
11165 0, /* xCommit */
11166 0, /* xRollback */
11167 0, /* xFindMethod */
11168 0, /* xRename */
11169 0, /* xSavepoint */
11170 0, /* xRelease */
11171 0, /* xRollbackTo */
11172 0 /* xShadowName */
11173 };
11174
11175 int rc = sqlite3_create_module(db, "sqlite_dbdata", &dbdata_module, 0);
11176 if( rc==SQLITE_OK ){
11177 rc = sqlite3_create_module(db, "sqlite_dbptr", &dbdata_module, (void*)1);
11178 }
11179 return rc;
11180}
11181
11182#ifdef _WIN32
11183

Callers 1

sqlite3_dbdata_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected