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

Method clear

src/db/queries.ts:5903–5911  ·  view source on GitHub ↗

* Clear all data from the database

()

Source from the content-addressed store, hash-verified

5901 * Clear all data from the database
5902 */
5903 clear(): void {
5904 this.nodeCache.clear();
5905 this.db.transaction(() => {
5906 this.db.exec('DELETE FROM unresolved_refs');
5907 this.db.exec('DELETE FROM edges');
5908 this.db.exec('DELETE FROM nodes');
5909 this.db.exec('DELETE FROM files');
5910 })();
5911 }
5912}
5913
5914/**

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