Return all nodes, optionally excluding File nodes.
(self, exclude_files: bool = True)
| 336 | return [self._row_to_node(r) for r in rows] |
| 337 | |
| 338 | def get_all_nodes(self, exclude_files: bool = True) -> list[GraphNode]: |
| 339 | """Return all nodes, optionally excluding File nodes.""" |
| 340 | if exclude_files: |
| 341 | rows = self._conn.execute( |
| 342 | "SELECT * FROM nodes WHERE kind != 'File'" |
| 343 | ).fetchall() |
| 344 | else: |
| 345 | rows = self._conn.execute("SELECT * FROM nodes").fetchall() |
| 346 | return [self._row_to_node(r) for r in rows] |
| 347 | |
| 348 | def get_edges_by_source(self, qualified_name: str) -> list[GraphEdge]: |
| 349 | rows = self._conn.execute( |
no test coverage detected