chore: split queries.sql into files by table (#762)

This commit is contained in:
Colin Adler
2022-04-01 15:45:23 -05:00
committed by GitHub
parent 2b1a0ee126
commit fd523100bf
27 changed files with 2816 additions and 2770 deletions
@@ -0,0 +1,30 @@
-- name: GetWorkspaceResourceByID :one
SELECT
*
FROM
workspace_resources
WHERE
id = $1;
-- name: GetWorkspaceResourcesByJobID :many
SELECT
*
FROM
workspace_resources
WHERE
job_id = $1;
-- name: InsertWorkspaceResource :one
INSERT INTO
workspace_resources (
id,
created_at,
job_id,
transition,
address,
type,
name,
agent_id
)
VALUES
($1, $2, $3, $4, $5, $6, $7, $8) RETURNING *;