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

Method loweredNodePaths

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

5076 * {@link fuzzyNames} is.
5077 */
5078 private loweredNodePaths(): string {
5079 const read = (): string => {
5080 const rows = this.db.prepare('SELECT DISTINCT file_path FROM nodes').all() as Array<{ file_path: string }>;
5081 return rows.map((row) => row.file_path.toLowerCase()).join('\n') + '\n';
5082 };
5083 return this.memoizedRead('loweredNodePaths', read) ?? read();
5084 }
5085
5086 /**
5087 * 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