* Get all distinct node names (lightweight — just name strings for pre-filtering)
()
| 4606 | * Get all distinct node names (lightweight — just name strings for pre-filtering) |
| 4607 | */ |
| 4608 | getAllNodeNames(): string[] { |
| 4609 | if (!this.stmts.getAllNodeNames) { |
| 4610 | this.stmts.getAllNodeNames = this.db.prepare('SELECT DISTINCT name FROM nodes'); |
| 4611 | } |
| 4612 | const rows = this.stmts.getAllNodeNames.all() as Array<{ name: string }>; |
| 4613 | return rows.map((r) => r.name); |
| 4614 | } |
| 4615 | |
| 4616 | /** |
| 4617 | * The distinct node names, in {@link getAllNodeNames} order, and the same |
no test coverage detected