feat: GetTitles now returns all the field needed

This commit is contained in:
Iron_Felix 2025-11-16 02:38:36 +03:00
parent d1180a426f
commit 13a283ae8d
6 changed files with 119 additions and 51 deletions

View file

@ -1,7 +1,7 @@
-- name: GetImageByID :one
SELECT id, storage_type, image_path
FROM images
WHERE id = $1;
WHERE id = sqlc.arg('illust_id');
-- name: CreateImage :one
INSERT INTO images (storage_type, image_path)
@ -17,7 +17,7 @@ WHERE id = $1;
-- name: GetStudioByID :one
SELECT *
FROM studios
WHERE id = sqlc.arg('studio_id')::int;
WHERE id = sqlc.arg('studio_id')::bigint;
-- name: InsertStudio :one
INSERT INTO studios (studio_name, illust_id, studio_desc)