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

Method hasFilesOfLanguage

src/db/queries.ts:1838–1843  ·  view source on GitHub ↗

Does the index hold any file of this language? One seek on idx_files_language.

(language: string)

Source from the content-addressed store, hash-verified

1836
1837 /** Does the index hold any file of this language? One seek on idx_files_language. */
1838 hasFilesOfLanguage(language: string): boolean {
1839 if (!this.stmts.hasFilesOfLanguage) {
1840 this.stmts.hasFilesOfLanguage = this.db.prepare('SELECT 1 FROM files WHERE language = ? LIMIT 1');
1841 }
1842 return this.stmts.hasFilesOfLanguage.get(language) !== undefined;
1843 }
1844
1845 /**
1846 * COBOL copybook includes naming `member`: the `import` node the COBOL

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected