Can I do something like this in gorm , psql?
UPDATE job SET status = 'RUNNING' WHERE status =
'PENDING' RETURNING *
I want to get all rows that were changed by the update with a single atomic operation. If there are other solutions please write it.
RowsAffectedbut that only returns the count of rows that have been updated. Also you can use Transactions - Mario Pérez