mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-24 05:28:36 -06:00
11 lines
370 B
SQL
11 lines
370 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)
|
|
WHERE id = @id
|
|
RETURNING *;
|