MCPcopy Create free account
hub / github.com/buct2012dbl/Dorchestrator / getFile

Method getFile

coding-agent/src/context/database.ts:96–99  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

94 }
95
96 getFile(path: string): FileRecord | undefined {
97 const stmt = this.db.prepare('SELECT * FROM files WHERE path = ?');
98 return stmt.get(path) as FileRecord | undefined;
99 }
100
101 getFileById(id: number): FileRecord | undefined {
102 const stmt = this.db.prepare('SELECT * FROM files WHERE id = ?');

Callers 4

buildIndexMethod · 0.80
getDependenciesMethod · 0.80
getFileSymbolsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected