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

Method loweredNodePaths

src/db/queries.ts:4639–4645  ·  view source on GitHub ↗

* The distinct file paths of the nodes, lowercased and newline-joined. Read * once until the database changes (fresh inside a transaction), as * fuzzyNames is.

()

Source from the content-addressed store, hash-verified

4637 * {@link fuzzyNames} is.
4638 */
4639 private loweredNodePaths(): string {
4640 const read = (): string => {
4641 const rows = this.db.prepare('SELECT DISTINCT file_path FROM nodes').all() as Array<{ file_path: string }>;
4642 return rows.map((row) => row.file_path.toLowerCase()).join('\n') + '\n';
4643 };
4644 return this.memoizedRead('loweredNodePaths', read) ?? read();
4645 }
4646
4647 /**
4648 * False when no symbol's name passes the `name:` filters, or no symbol's

Callers 1

fieldFiltersCanMatchMethod · 0.95

Calls 2

memoizedReadMethod · 0.95
readFunction · 0.50

Tested by

no test coverage detected