mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-24 05:28:36 -06:00
9 lines
208 B
SQL
9 lines
208 B
SQL
-- name: DatabasesServiceCreateDatabase :one
|
|
INSERT INTO databases (
|
|
name, connection_string, pg_version
|
|
)
|
|
VALUES (
|
|
@name, pgp_sym_encrypt(@connection_string, @encryption_key), @pg_version
|
|
)
|
|
RETURNING *;
|