Rework some code issues
This commit is contained in:
4
queries/delete.sql
Normal file
4
queries/delete.sql
Normal file
@ -0,0 +1,4 @@
|
||||
DELETE FROM
|
||||
games
|
||||
WHERE
|
||||
id = $1
|
||||
10
queries/get_all.sql
Normal file
10
queries/get_all.sql
Normal 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
9
queries/insert.sql
Normal 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
11
queries/update.sql
Normal 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
|
||||
Reference in New Issue
Block a user