2023-02-15 18:24:15 +01:00
|
|
|
-- name: InsertTemplateVersionVariable :one
|
|
|
|
|
INSERT INTO
|
|
|
|
|
template_version_variables (
|
|
|
|
|
template_version_id,
|
|
|
|
|
name,
|
|
|
|
|
description,
|
|
|
|
|
type,
|
|
|
|
|
value,
|
|
|
|
|
default_value,
|
|
|
|
|
required,
|
|
|
|
|
sensitive
|
|
|
|
|
)
|
|
|
|
|
VALUES
|
|
|
|
|
(
|
|
|
|
|
$1,
|
|
|
|
|
$2,
|
|
|
|
|
$3,
|
|
|
|
|
$4,
|
|
|
|
|
$5,
|
|
|
|
|
$6,
|
|
|
|
|
$7,
|
|
|
|
|
$8
|
|
|
|
|
) RETURNING *;
|
|
|
|
|
|
|
|
|
|
-- name: GetTemplateVersionVariables :many
|
2025-12-12 13:41:46 +02:00
|
|
|
SELECT * FROM template_version_variables WHERE template_version_id = $1 ORDER BY name;
|