(key: string, value: string)
| 63 | if (!this.db) { |
| 64 | console.error("[convert] DB not initialized, cannot set config."); |
| 65 | return; |
| 66 | } |
| 67 | try { |
| 68 | this.db.prepare(`INSERT OR REPLACE INTO config (key, value) VALUES (?, ?)`).run(key, value); |
| 69 | } catch (error) { |
| 70 | console.error("[convert] Failed to save config:", error); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | static cleanup(): void { |
| 75 | if (this.db) { |
| 76 | try { |
| 77 | this.db.close(); |
| 78 | } catch {} |
| 79 | } |
no test coverage detected