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

Function getDatabasePath

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

Source from the content-addressed store, hash-verified

820 * Get the default database path for a project
821 */
822export function getDatabasePath(projectRoot: string): string {
823 return path.join(getCodeGraphDir(projectRoot), DATABASE_FILENAME);
824}
825
826/**
827 * Delete a database file and its WAL sidecars (`-wal`/`-shm`).

Callers 8

initMethod · 0.90
initSyncMethod · 0.90
openMethod · 0.90
recreateMethod · 0.90
openSyncMethod · 0.90
foundation.test.tsFile · 0.90
runInitFunction · 0.85
mainFunction · 0.85

Calls 2

getCodeGraphDirFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected