mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-11 06:38:27 -06:00
13 lines
487 B
SQL
13 lines
487 B
SQL
-- name: BackupsServiceCreateBackup :one
|
|
INSERT INTO backups (
|
|
database_id, destination_id, name, cron_expression, time_zone,
|
|
is_active, dest_dir, retention_days, opt_data_only, opt_schema_only,
|
|
opt_clean, opt_if_exists, opt_create, opt_no_comments
|
|
)
|
|
VALUES (
|
|
@database_id, @destination_id, @name, @cron_expression, @time_zone,
|
|
@is_active, @dest_dir, @retention_days, @opt_data_only, @opt_schema_only,
|
|
@opt_clean, @opt_if_exists, @opt_create, @opt_no_comments
|
|
)
|
|
RETURNING *;
|