MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / clear

Method clear

src/db/queries.ts:2506–2514  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

2504 * Clear all data from the database
2505 */
2506 clear(): void {
2507 this.nodeCache.clear();
2508 this.db.transaction(() => {
2509 this.db.exec('DELETE FROM unresolved_refs');
2510 this.db.exec('DELETE FROM edges');
2511 this.db.exec('DELETE FROM nodes');
2512 this.db.exec('DELETE FROM files');
2513 })();
2514 }
2515}

Callers 15

includeStaticRootsFunction · 0.45
destroyMethod · 0.45
clearParserCacheFunction · 0.45
failAllMethod · 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

Calls 2

transactionMethod · 0.65
execMethod · 0.65

Tested by

no test coverage detected