Files
pgbackweb/internal/service/backups/create_backup.sql
T
2024-07-20 23:19:08 -06:00

13 lines
454 B
SQL

-- name: BackupsServiceCreateBackup :one
INSERT INTO backups (
database_id, destination_id, name, cron_expression, time_zone,
is_active, dest_dir, 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, @opt_data_only, @opt_schema_only, @opt_clean,
@opt_if_exists, @opt_create, @opt_no_comments
)
RETURNING *;