Files
pgbackweb/internal/service/backups/create_backup.sql
2024-07-21 19:34:23 -06:00

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 *;