diff options
Diffstat (limited to 'backend/query.sql')
| -rw-r--r-- | backend/query.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/query.sql b/backend/query.sql index 39b0b21..245d5cf 100644 --- a/backend/query.sql +++ b/backend/query.sql @@ -38,6 +38,11 @@ LEFT JOIN problems ON games.problem_id = problems.problem_id WHERE games.game_id = $1 LIMIT 1; +-- name: ListGamePlayers :many +SELECT * FROM game_players +LEFT JOIN users ON game_players.user_id = users.user_id +WHERE game_players.game_id = $1; + -- name: UpdateGame :exec UPDATE games SET |
