(chunkId: string, skillId: string)
| 2018 | // ─── Chunk-Skill ─── |
| 2019 | |
| 2020 | setChunkSkillId(chunkId: string, skillId: string): void { |
| 2021 | this.db.prepare("UPDATE chunks SET skill_id = ?, updated_at = ? WHERE id = ?").run(skillId, Date.now(), chunkId); |
| 2022 | } |
| 2023 | |
| 2024 | getDistinctSessionKeys(): string[] { |
| 2025 | return (this.db.prepare("SELECT DISTINCT session_key FROM chunks ORDER BY session_key").all() as Array<{ session_key: string }>) |
no test coverage detected