Transaction management
Closed this issue · 0 comments
ahopkins commented
executor = SomeExecutor()
async with executor.transaction() as transaction:
try:
await executor.do_something()
except Exception:
await transaction.rollback()