MCPcopy
hub / github.com/colbymchenry/codegraph / clear

Method clear

src/db/queries.ts:1864–1872  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

1862 * Clear all data from the database
1863 */
1864 clear(): void {
1865 this.nodeCache.clear();
1866 this.db.transaction(() => {
1867 this.db.exec('DELETE FROM unresolved_refs');
1868 this.db.exec('DELETE FROM edges');
1869 this.db.exec('DELETE FROM nodes');
1870 this.db.exec('DELETE FROM files');
1871 })();
1872 }
1873}

Callers 11

destroyMethod · 0.45
clearParserCacheFunction · 0.45
persistSyncMethod · 0.45
stopMethod · 0.45
rejectPendingFunction · 0.45
onDaemonLostFunction · 0.45
closeAllMethod · 0.45
destroyMethod · 0.45
startMethod · 0.45
stopMethod · 0.45
clearCacheMethod · 0.45

Calls 2

transactionMethod · 0.65
execMethod · 0.65

Tested by

no test coverage detected