It would be convenient if a transaction that wasn't explicitly flushed with done() or commit() instead automatically called abort() when dropped.
This would allow users to more easily bail with the ? operator without leaving uncommited, half-finished transactions around.
It would be convenient if a transaction that wasn't explicitly flushed with
done()orcommit()instead automatically calledabort()when dropped.This would allow users to more easily bail with the
?operator without leaving uncommited, half-finished transactions around.