* Clear all data from the database
()
| 1862 | * Clear all data from the database |
| 1863 | */ |
| 1864 | clear(): void { |
| 1865 | this.nodeCache.clear(); |
| 1866 | this.db.transaction(() => { |
| 1867 | this.db.exec('DELETE FROM unresolved_refs'); |
| 1868 | this.db.exec('DELETE FROM edges'); |
| 1869 | this.db.exec('DELETE FROM nodes'); |
| 1870 | this.db.exec('DELETE FROM files'); |
| 1871 | })(); |
| 1872 | } |
| 1873 | } |
no test coverage detected