mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-19 11:29:07 -05:00
13 lines
431 B
SQL
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 *;
|