The exported nodes of a file, in getNodesByFile order, decoding only those rows.
(filePath: string)
| 1308 | |
| 1309 | /** The exported nodes of a file, in {@link getNodesByFile} order, decoding only those rows. */ |
| 1310 | getExportedNodesByFile(filePath: string): Node[] { |
| 1311 | if (!this.stmts.getExportedNodesByFile) { |
| 1312 | this.stmts.getExportedNodesByFile = this.db.prepare( |
| 1313 | 'SELECT * FROM nodes WHERE file_path = ? AND is_exported = 1 ORDER BY start_line, id' |
| 1314 | ); |
| 1315 | } |
| 1316 | return (this.stmts.getExportedNodesByFile.all(filePath) as NodeRow[]).map(rowToNode); |
| 1317 | } |
| 1318 | |
| 1319 | /** The nodes of a file with one name, in {@link getNodesByFile} order, decoding only those rows. */ |
| 1320 | getNodesByFileAndName(filePath: string, name: string): Node[] { |
no test coverage detected