Rework some code issues

This commit is contained in:
2025-11-13 16:22:32 +03:00
parent 96a416b010
commit 264a45acf9
16 changed files with 239 additions and 88 deletions

4
queries/delete.sql Normal file
View File

@ -0,0 +1,4 @@
DELETE FROM
games
WHERE
id = $1

10
queries/get_all.sql Normal file
View File

@ -0,0 +1,10 @@
SELECT
id,
name,
publishing_house,
developer,
description,
multiplayer,
is_free_to_play
FROM
games

9
queries/insert.sql Normal file
View File

@ -0,0 +1,9 @@
INSERT INTO games(
name,
publishing_house,
developer,
description,
multiplayer,
is_free_to_play
)
VALUES ($1, $2, $3, $4, $5, $6)

11
queries/update.sql Normal file
View File

@ -0,0 +1,11 @@
UPDATE
games
SET
name = $1,
publishing_house = $2,
developer = $3,
description = $4,
multiplayer = $5,
is_free_to_play = $6
WHERE
id = $7