SQLAlchemy engine using context managers
with engine.begin() as trans:
conn.execute(...)
conn.execute(...)
raise Exception() # for rollback
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
with engine.begin() as trans:
conn.execute(...)
conn.execute(...)
raise Exception() # for rollback