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