* Clear all data from the database
()
| 6020 | * Clear all data from the database |
| 6021 | */ |
| 6022 | clear(): void { |
| 6023 | this.nodeCache.clear(); |
| 6024 | this.db.transaction(() => { |
| 6025 | this.db.exec('DELETE FROM unresolved_refs'); |
| 6026 | this.db.exec('DELETE FROM edges'); |
| 6027 | this.db.exec('DELETE FROM nodes'); |
| 6028 | this.db.exec('DELETE FROM files'); |
| 6029 | })(); |
| 6030 | } |
| 6031 | } |
| 6032 | |
| 6033 | /** |
no test coverage detected