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

Function sqlite3_expert_destroy

modules/dasSQLITE/sqlite/shell.c:12234–12246  ·  view source on GitHub ↗

** Free an sqlite3expert object. */

Source from the content-addressed store, hash-verified

12232** Free an sqlite3expert object.
12233*/
12234void sqlite3_expert_destroy(sqlite3expert *p){
12235 if( p ){
12236 sqlite3_close(p->dbm);
12237 sqlite3_close(p->dbv);
12238 idxScanFree(p->pScan, 0);
12239 idxStatementFree(p->pStatement, 0);
12240 idxTableFree(p->pTable);
12241 idxWriteFree(p->pWrite);
12242 idxHashClear(&p->hIdx);
12243 sqlite3_free(p->zCandidates);
12244 sqlite3_free(p);
12245 }
12246}
12247
12248#endif /* ifndef SQLITE_OMIT_VIRTUALTABLE */
12249

Callers 2

sqlite3_expert_newFunction · 0.85
expertFinishFunction · 0.85

Calls 5

idxScanFreeFunction · 0.85
idxStatementFreeFunction · 0.85
idxTableFreeFunction · 0.85
idxWriteFreeFunction · 0.85
idxHashClearFunction · 0.85

Tested by

no test coverage detected