(key: string, value: string)
| 217 | } |
| 218 | |
| 219 | setMeta(key: string, value: string): void { |
| 220 | this.db.prepare(`INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)`).run(key, value); |
| 221 | } |
| 222 | |
| 223 | getMeta(key: string): string | null { |
| 224 | const row = this.db.prepare(`SELECT value FROM meta WHERE key = ?`).get(key) as { value: string } | undefined; |