* Delete a file record and its nodes
(filePath: string)
| 4348 | * Delete a file record and its nodes |
| 4349 | */ |
| 4350 | deleteFile(filePath: string): void { |
| 4351 | this.db.transaction(() => { |
| 4352 | this.deleteNodesByFile(filePath); |
| 4353 | if (!this.stmts.deleteFile) { |
| 4354 | this.stmts.deleteFile = this.db.prepare('DELETE FROM files WHERE path = ?'); |
| 4355 | } |
| 4356 | this.stmts.deleteFile.run(filePath); |
| 4357 | })(); |
| 4358 | } |
| 4359 | |
| 4360 | /** |
| 4361 | * Get a file record by path |
no test coverage detected