aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-10 00:25:42 +0900
committernsfisis <nsfisis@gmail.com>2025-03-10 00:25:42 +0900
commitc807d6e47b11a91ec56225ed8358e3f2ef903e5c (patch)
tree9eee9b70f5c063a9c9e887919fc12f9ac38ca6c2 /backend/query.sql
parent87ffe8514a1cdd48ce1660c63c021e5f30540184 (diff)
downloadphperkaigi-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.tar.gz
phperkaigi-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.tar.zst
phperkaigi-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.zip
refactor(backend): remove unused db queries
Diffstat (limited to 'backend/query.sql')
-rw-r--r--backend/query.sql15
1 files changed, 0 insertions, 15 deletions
diff --git a/backend/query.sql b/backend/query.sql
index 192bf41..dbf050b 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -70,26 +70,11 @@ JOIN users ON game_main_players.user_id = users.user_id
WHERE game_main_players.game_id = ANY($1::INT[])
ORDER BY game_main_players.user_id;
--- name: ListMainPlayerIDs :many
-SELECT user_id FROM game_main_players
-WHERE game_id = $1
-ORDER BY user_id;
-
--- name: GetSubmissionCodeSizeByID :one
-SELECT code_size FROM submissions
-WHERE submission_id = $1
-LIMIT 1;
-
-- name: ListTestcasesByGameID :many
SELECT * FROM testcases
WHERE testcases.problem_id = (SELECT problem_id FROM games WHERE game_id = $1)
ORDER BY testcases.testcase_id;
--- name: ListTestcaseIDsByGameID :many
-SELECT testcases.testcase_id FROM testcases
-WHERE testcases.problem_id = (SELECT problem_id FROM games WHERE game_id = $1)
-ORDER BY testcases.testcase_id;
-
-- name: CreateTestcaseResult :exec
INSERT INTO testcase_results (submission_id, testcase_id, status, stdout, stderr)
VALUES ($1, $2, $3, $4, $5);