Append one accomplishment/decision/blocker/note to the project's worklog.
(cwd: string, sessionId: string | null, entry: string, kind: WorklogKind = 'work')
| 435 | ON CONFLICT(cwd) DO UPDATE SET |
| 436 | name = excluded.name, |
| 437 | description = COALESCE(excluded.description, projects.description), |
| 438 | updated_at = CURRENT_TIMESTAMP |
| 439 | `).run(cwd, name, description ?? null); |
| 440 | } |
| 441 | |
| 442 | getProject(cwd: string): ProjectMeta | null { |
| 443 | const row = this.db.prepare(`SELECT * FROM projects WHERE cwd = ?`).get(cwd) as |
| 444 | | ProjectMeta |
| 445 | | undefined; |
| 446 | return row ?? null; |
no test coverage detected