(key: string)
| 118 | } |
| 119 | |
| 120 | static delete(key: string): void { |
| 121 | this.init(); |
| 122 | try { |
| 123 | const stmt = this.db.prepare("DELETE FROM config WHERE key = ?"); |
| 124 | stmt.run(key); |
| 125 | } catch (error) { |
| 126 | console.error("删除配置失败:", error); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | static close(): void { |
| 131 | if (this.db) { |
no test coverage detected