I would like to configure an application built using Flask-SQLAlchemy to undo all changes made to the database if the view throws an exception that goes beyond the view code (i.e. not hooked inside).
I would like it to work even if some objects were dumped into the database in subtransactions, either automatically or directly through session.commit() .
Something like a Django transaction wrapper .
python flask flask-sqlalchemy transactions
dukebody
source share