Files
pgbackweb/internal/service/backups/create_backup.sql
T
2024-07-20 18:37:24 -06:00

13 lines
431 B
SQL

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