mirror of
https://github.com/lightninglabs/aperture.git
synced 2025-12-24 04:24:19 +01:00
16 lines
272 B
SQL
16 lines
272 B
SQL
-- name: InsertSecret :one
|
|
INSERT INTO secrets (
|
|
hash, secret, created_at
|
|
) VALUES (
|
|
$1, $2, $3
|
|
) RETURNING id;
|
|
|
|
-- name: GetSecretByHash :one
|
|
SELECT secret
|
|
FROM secrets
|
|
WHERE hash = $1;
|
|
|
|
-- name: DeleteSecretByHash :execrows
|
|
DELETE FROM secrets
|
|
WHERE hash = $1;
|