-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[db] Wrap SQL statements into
connection.begin()
blocks.
The latest release of SQLAlchemy 2.x has apparently removed the `autocommit` implicit logic for good. Mutations should be explicitly wrapped into `with ... begin()` blocks, or they will be rolled back when the connection is closed.
- Loading branch information
1 parent
1cb42f8
commit dd02be1
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters