tijl.dev-core/internal/queries/app_flags.sql
tijl b8d7a8c4cf
All checks were successful
build / build (push) Successful in 36s
release-tag / release-image (push) Successful in 16m28s
basic app implementation
2024-08-25 17:43:55 +02:00

10 lines
343 B
SQL

-- name: CreateFlagsGame :exec
INSERT INTO app_flags_games (uid, tags, question_amount) VALUES ($1, $2, $3) RETURNING (game_id, game_seed);
-- name: GetFlagsGame :one
SELECT * FROM app_flags_games WHERE game_id = $1 LIMIT 1;
-- name: UpdateFlagsGame :exec
UPDATE app_flags_games SET question_current = $1,
last_activity = CURRENT_TIMESTAMP;