* Clear all data from the database
()
| 5901 | * Clear all data from the database |
| 5902 | */ |
| 5903 | clear(): void { |
| 5904 | this.nodeCache.clear(); |
| 5905 | this.db.transaction(() => { |
| 5906 | this.db.exec('DELETE FROM unresolved_refs'); |
| 5907 | this.db.exec('DELETE FROM edges'); |
| 5908 | this.db.exec('DELETE FROM nodes'); |
| 5909 | this.db.exec('DELETE FROM files'); |
| 5910 | })(); |
| 5911 | } |
| 5912 | } |
| 5913 | |
| 5914 | /** |
no test coverage detected