feat: store coder_workspace_tags in the database (#13294)

This commit is contained in:
Marcin Tojek
2024-05-20 13:30:19 +00:00
committed by GitHub
parent 45b45f1107
commit b8b80fe6d2
30 changed files with 1052 additions and 397 deletions
@@ -0,0 +1,16 @@
-- name: InsertTemplateVersionWorkspaceTag :one
INSERT INTO
template_version_workspace_tags (
template_version_id,
key,
value
)
VALUES
(
$1,
$2,
$3
) RETURNING *;
-- name: GetTemplateVersionWorkspaceTags :many
SELECT * FROM template_version_workspace_tags WHERE template_version_id = $1 ORDER BY LOWER(key) ASC;