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

Function getDatabasePath

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

Source from the content-addressed store, hash-verified

1020 * Get the default database path for a project
1021 */
1022export function getDatabasePath(projectRoot: string): string {
1023 return path.join(getCodeGraphDir(projectRoot), DATABASE_FILENAME);
1024}
1025
1026/**
1027 * Delete a database file and its WAL sidecars (`-wal`/`-shm`).

Callers 15

isFreshlyRecreatedMethod · 0.90
initMethod · 0.90
initSyncMethod · 0.90
openMethod · 0.90
recreateMethod · 0.90
openSyncMethod · 0.90
constructorMethod · 0.90
stateOfFunction · 0.90
stateOfFunction · 0.90
stateOfFunction · 0.90

Calls 2

getCodeGraphDirFunction · 0.90
joinMethod · 0.45

Tested by 8

stateOfFunction · 0.72
stateOfFunction · 0.72
stateOfFunction · 0.72
stateOfFunction · 0.72
stateOfFunction · 0.72
failedTailsFunction · 0.72
indexedProjectFunction · 0.72
interruptedProjectFunction · 0.68