ahopkins/mayim

Transaction management

Closed this issue · 0 comments

executor = SomeExecutor()

async with executor.transaction() as transaction:
    try:
        await executor.do_something()
    except Exception:
        await transaction.rollback()