Maybe there is already something like this but this would be sick for sql DBs. Having to make prod updates to a table always terrifies me.
... ; Modify DB
... ; Inspect State
ROLLBACK TRANSACTION;
and then switch the rollback to commit when satisfied