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

Method clear

src/db/queries.ts:2505–2513  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

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

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