feat: add GetAnime query

This commit is contained in:
2026-04-06 19:24:27 +02:00
parent d6bd34aad2
commit a042ee8bf3
3 changed files with 20 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ ON CONFLICT (id) DO UPDATE SET
image_url = excluded.image_url
RETURNING *;
-- name: GetAnime :one
SELECT * FROM anime WHERE id = ? LIMIT 1;
-- name: UpsertWatchListEntry :one
INSERT INTO watch_list_entry (id, user_id, anime_id, status, updated_at)
VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP)