You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to get rid of that session_scope() function.
See https://docs.sqlalchemy.org/en/20/orm/session_basics.html#framing-out-a-begin-commit-rollback-block for how this should work. We basically want that last code block, using session.begin() as a context manager. Would be nice to have a way to emit a log message in the event that it does a rollback. Maybe also if it does a commit as it seems better to have these explicit in the code.
The text was updated successfully, but these errors were encountered:
Need to get rid of that session_scope() function.
See https://docs.sqlalchemy.org/en/20/orm/session_basics.html#framing-out-a-begin-commit-rollback-block for how this should work. We basically want that last code block, using session.begin() as a context manager. Would be nice to have a way to emit a log message in the event that it does a rollback. Maybe also if it does a commit as it seems better to have these explicit in the code.
The text was updated successfully, but these errors were encountered: