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

Method loweredNodePaths

src/db/queries.ts:4750–4756  ·  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

4748 * {@link fuzzyNames} is.
4749 */
4750 private loweredNodePaths(): string {
4751 const read = (): string => {
4752 const rows = this.db.prepare('SELECT DISTINCT file_path FROM nodes').all() as Array<{ file_path: string }>;
4753 return rows.map((row) => row.file_path.toLowerCase()).join('\n') + '\n';
4754 };
4755 return this.memoizedRead('loweredNodePaths', read) ?? read();
4756 }
4757
4758 /**
4759 * 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