idb icon indicating copy to clipboard operation
idb copied to clipboard

Abort unfinished transaction on Drop

Open ShaddyDC opened this issue 2 years ago • 9 comments

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.

ShaddyDC avatar Nov 22 '22 15:11 ShaddyDC