* 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)
| 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 { |
nothing calls this directly
no test coverage detected