(slug: string)
| 28 | } |
| 29 | |
| 30 | export function getProject(slug: string): Project | null { |
| 31 | const db = getDb(); |
| 32 | const row = db.prepare("SELECT * FROM projects WHERE slug = ?").get(slug); |
| 33 | return (row as Project) ?? null; |
| 34 | } |
| 35 | |
| 36 | export function createProject(input: CreateProjectInput): CreateProjectResult { |
| 37 | const db = getDb(); |
no test coverage detected