* Delete a node by ID
(id: string)
| 1019 | * Delete a node by ID |
| 1020 | */ |
| 1021 | deleteNode(id: string): void { |
| 1022 | if (!this.stmts.deleteNode) { |
| 1023 | this.stmts.deleteNode = this.db.prepare('DELETE FROM nodes WHERE id = ?'); |
| 1024 | } |
| 1025 | // Invalidate cache |
| 1026 | this.nodeCache.delete(id); |
| 1027 | this.stmts.deleteNode.run(id); |
| 1028 | } |
| 1029 | |
| 1030 | /** |
| 1031 | * Delete all nodes for a file |
no test coverage detected