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

Method clear

src/db/queries.ts:4021–4029  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

4019 * Clear all data from the database
4020 */
4021 clear(): void {
4022 this.nodeCache.clear();
4023 this.db.transaction(() => {
4024 this.db.exec('DELETE FROM unresolved_refs');
4025 this.db.exec('DELETE FROM edges');
4026 this.db.exec('DELETE FROM nodes');
4027 this.db.exec('DELETE FROM files');
4028 })();
4029 }
4030}
4031
4032/**

Callers 15

includeStaticRootsFunction · 0.45
destroyMethod · 0.45
clearParserCacheFunction · 0.45
failAllMethod · 0.45
clearPendingMethod · 0.45
clearHighlightCacheFunction · 0.45
resetMapCacheFunction · 0.45
resetEntryPointsCacheFunction · 0.45
startMethod · 0.45
refreshWatchTreeMethod · 0.45
stopMethod · 0.45

Calls 2

transactionMethod · 0.65
execMethod · 0.65

Tested by

no test coverage detected