(sessionId: string)
| 75 | return new BetterSqliteAdapter(db) |
| 76 | }, |
| 77 | deleteDatabase(sessionId: string) { |
| 78 | const dbPath = getDbPath(sessionId) |
| 79 | for (const suffix of ['', '-wal', '-shm']) { |
| 80 | try { |
| 81 | const p = dbPath + suffix |
| 82 | if (fs.existsSync(p)) fs.unlinkSync(p) |
| 83 | } catch { |
| 84 | /* ignore */ |
| 85 | } |
| 86 | } |
| 87 | }, |
| 88 | onProgress(progress) { |
| 89 | sendProgress(requestId, progress) |
| 90 | }, |
nothing calls this directly
no test coverage detected