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

Method getNodesByLowerName

src/db/queries.ts:1827–1835  ·  view source on GitHub ↗

* Get nodes by name, case-insensitively (seeks the idx_nodes_lower_name * expression index). * * The parameter is lowered in SQL rather than trusted to arrive lowered, so * the lookup means the same thing whatever casing a caller hands it. Written * as a bare `lower(name) = ?` it sile

(name: string)

Source from the content-addressed store, hash-verified

1825 * in JavaScript before calling, so the non-ASCII gap remains open there.
1826 */
1827 getNodesByLowerName(name: string): Node[] {
1828 if (!this.stmts.getNodesByLowerName) {
1829 this.stmts.getNodesByLowerName = prepareNodeStatement(
1830 this.db,
1831 'SELECT * FROM nodes WHERE lower(name) = lower(?)'
1832 );
1833 }
1834 return this.stmts.getNodesByLowerName.all(name);
1835 }
1836
1837 /** Does the index hold any file of this language? One seek on idx_files_language. */
1838 hasFilesOfLanguage(language: string): boolean {

Callers

nothing calls this directly

Calls 2

prepareNodeStatementFunction · 0.85
allMethod · 0.65

Tested by

no test coverage detected