mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-26 14:39:24 -06:00
12 lines
429 B
SQL
12 lines
429 B
SQL
-- name: ExecutionsServiceUpdateExecution :one
|
|
UPDATE executions
|
|
SET
|
|
status = COALESCE(sqlc.narg('status'), status),
|
|
message = COALESCE(sqlc.narg('message'), message),
|
|
path = COALESCE(sqlc.narg('path'), path),
|
|
finished_at = COALESCE(sqlc.narg('finished_at'), finished_at),
|
|
deleted_at = COALESCE(sqlc.narg('deleted_at'), deleted_at),
|
|
file_size = COALESCE(sqlc.narg('file_size'), file_size)
|
|
WHERE id = @id
|
|
RETURNING *;
|