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

Method clear

src/db/queries.ts:6022–6030  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

6020 * Clear all data from the database
6021 */
6022 clear(): void {
6023 this.nodeCache.clear();
6024 this.db.transaction(() => {
6025 this.db.exec('DELETE FROM unresolved_refs');
6026 this.db.exec('DELETE FROM edges');
6027 this.db.exec('DELETE FROM nodes');
6028 this.db.exec('DELETE FROM files');
6029 })();
6030 }
6031}
6032
6033/**

Callers 15

includeStaticRootsFunction · 0.45
indexAllMethod · 0.45
destroyMethod · 0.45
clearParserCacheFunction · 0.45
failAllMethod · 0.45
clearPendingMethod · 0.45
isTestPathFunction · 0.45
clearHighlightCacheFunction · 0.45
resetMapCacheFunction · 0.45
resetTrailAuthorFunction · 0.45
resetEntryPointsCacheFunction · 0.45

Calls 2

transactionMethod · 0.65
execMethod · 0.65

Tested by

no test coverage detected