MCPcopy
hub / github.com/colbymchenry/codegraph / getDatabasePath

Function getDatabasePath

src/db/index.ts:294–296  ·  view source on GitHub ↗
(projectRoot: string)

Source from the content-addressed store, hash-verified

292 * Get the default database path for a project
293 */
294export function getDatabasePath(projectRoot: string): string {
295 return path.join(getCodeGraphDir(projectRoot), DATABASE_FILENAME);
296}
297
298/**
299 * Delete a database file and its WAL sidecars (`-wal`/`-shm`).

Callers 6

initMethod · 0.90
initSyncMethod · 0.90
openMethod · 0.90
recreateMethod · 0.90
openSyncMethod · 0.90
foundation.test.tsFile · 0.90

Calls 2

getCodeGraphDirFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected