mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-18 16:01:05 +00:00
32 lines
476 B
SQL
32 lines
476 B
SQL
-- name: secret-find-repo
|
|
|
|
SELECT
|
|
secret_id
|
|
,secret_repo_id
|
|
,secret_name
|
|
,secret_value
|
|
,secret_images
|
|
,secret_events
|
|
,secret_conceal
|
|
,secret_skip_verify
|
|
FROM secrets
|
|
WHERE secret_repo_id = ?
|
|
|
|
-- name: secret-find-repo-name
|
|
|
|
SELECT
|
|
secret_id
|
|
,secret_repo_id
|
|
,secret_name
|
|
,secret_value
|
|
,secret_images
|
|
,secret_events
|
|
,secret_conceal
|
|
,secret_skip_verify
|
|
FROM secrets
|
|
WHERE secret_repo_id = ?
|
|
AND secret_name = ?
|
|
|
|
-- name: secret-delete
|
|
|
|
DELETE FROM secrets WHERE secret_id = ?
|