Skip to content

Commit 73e1fc1

Browse files
committed
rerog sql file
1 parent 9ef7f4c commit 73e1fc1

File tree

2 files changed

+49
-166
lines changed

2 files changed

+49
-166
lines changed

internal/db/models/board.sql.go

Lines changed: 0 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/sql/queries/board.sql

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,6 @@ VALUES
1111
(?, ?, ?, ?, ?)
1212
RETURNING *;
1313

14-
-- name: CreateTier :exec
15-
INSERT INTO
16-
tier (
17-
tier,
18-
title,
19-
t_index,
20-
team
21-
)
22-
VALUES
23-
(?, ?, ?, ?)
24-
RETURNING *;
25-
26-
-- name: CreatePosition :exec
27-
INSERT INTO
28-
position (
29-
oid,
30-
semester,
31-
tier,
32-
full_name,
33-
title,
34-
team
35-
)
36-
VALUES
37-
(?, ?, ?, ?, ?, ?)
38-
RETURNING *;
39-
4014
-- name: GetOfficer :one
4115
SELECT
4216
uuid,
@@ -60,28 +34,55 @@ SET
6034
WHERE
6135
uuid = sqlc.arg('uuid');
6236

63-
-- name: GetTier :one
64-
SELECT
65-
tier,
66-
title,
67-
t_index,
68-
team
69-
FROM
70-
tier
71-
WHERE
72-
tier = ?;
37+
-- -- name: CreateTier :exec
38+
-- INSERT INTO
39+
-- tier (
40+
-- tier,
41+
-- title,
42+
-- t_index,
43+
-- team
44+
-- )
45+
-- VALUES
46+
-- (?, ?, ?, ?)
47+
-- RETURNING *;
7348

74-
-- name: GetPosition :one
75-
SELECT
76-
oid,
77-
semester,
78-
tier,
79-
full_name,
80-
title,
81-
team
82-
FROM
83-
position
84-
WHERE
85-
full_name = ?;
49+
-- -- name: CreatePosition :exec
50+
-- INSERT INTO
51+
-- position (
52+
-- oid,
53+
-- semester,
54+
-- tier,
55+
-- full_name,
56+
-- title,
57+
-- team
58+
-- )
59+
-- VALUES
60+
-- (?, ?, ?, ?, ?, ?)
61+
-- RETURNING *;
62+
63+
64+
-- -- name: GetTier :one
65+
-- SELECT
66+
-- tier,
67+
-- title,
68+
-- t_index,
69+
-- team
70+
-- FROM
71+
-- tier
72+
-- WHERE
73+
-- tier = ?;
74+
--
75+
-- -- name: GetPosition :one
76+
-- SELECT
77+
-- oid,
78+
-- semester,
79+
-- tier,
80+
-- full_name,
81+
-- title,
82+
-- team
83+
-- FROM
84+
-- position
85+
-- WHERE
86+
-- full_name = ?;
8687

8788
-- NOTE: Had to declare above table as :one, may need to change later to :many

0 commit comments

Comments
 (0)