mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-10 14:18:27 -06:00
8 lines
185 B
SQL
8 lines
185 B
SQL
-- name: DatabasesServiceUpdateDatabase :one
|
|
UPDATE databases
|
|
SET
|
|
name = @name,
|
|
connection_string = pgp_sym_encrypt(@connection_string, @encryption_key)
|
|
WHERE id = @id
|
|
RETURNING *;
|