-
-
Notifications
You must be signed in to change notification settings - Fork 898
Closed
Description
Since most of the projects using sqlalchemy uses mysql / postgres there is a good chance of using transactions. Having a commit_on_success decorator can save a try except block in the view functions. Here is a rough draft of the decorator I wrote.
https://gist.github.com/14d12595f3dfa307a354
Just wondering if its a good idea to get the db object from the function object. (line # 11)?
Metadata
Metadata
Assignees
Labels
No labels