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

Method hasFilesOfLanguage

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

1820
1821 /** Does the index hold any file of this language? One seek on idx_files_language. */
1822 hasFilesOfLanguage(language: string): boolean {
1823 if (!this.stmts.hasFilesOfLanguage) {
1824 this.stmts.hasFilesOfLanguage = this.db.prepare('SELECT 1 FROM files WHERE language = ? LIMIT 1');
1825 }
1826 return this.stmts.hasFilesOfLanguage.get(language) !== undefined;
1827 }
1828
1829 /**
1830 * 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