mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-11 22:58:27 -06:00
8 lines
251 B
SQL
8 lines
251 B
SQL
-- name: DestinationsServiceGetDestination :one
|
|
SELECT
|
|
*,
|
|
pgp_sym_decrypt(access_key::bytea, @encryption_key) AS decrypted_access_key,
|
|
pgp_sym_decrypt(secret_key::bytea, @encryption_key) AS decrypted_secret_key
|
|
FROM destinations
|
|
WHERE id = @id;
|