diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-10 00:25:42 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-10 00:25:42 +0900 |
| commit | c807d6e47b11a91ec56225ed8358e3f2ef903e5c (patch) | |
| tree | 9eee9b70f5c063a9c9e887919fc12f9ac38ca6c2 /backend/query.sql | |
| parent | 87ffe8514a1cdd48ce1660c63c021e5f30540184 (diff) | |
| download | iosdc-japan-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.tar.gz iosdc-japan-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.tar.zst iosdc-japan-2025-albatross-c807d6e47b11a91ec56225ed8358e3f2ef903e5c.zip | |
refactor(backend): remove unused db queries
Diffstat (limited to 'backend/query.sql')
| -rw-r--r-- | backend/query.sql | 15 |
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); |
