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
Instead of passing around sessions and sessionmakers between storage functions, the controller, and our gui, use a global session factory, as describe in Sqlalchemy docs covering Sessions: https://docs.sqlalchemy.org/en/13/orm/session_basics.html
This makes it easy to share a session across separate sections of code if we have to.
The text was updated successfully, but these errors were encountered:
eloquence
changed the title
use global session factory [refactor]
Use global session factory [refactor]
May 30, 2019
Description
Instead of passing around sessions and sessionmakers between storage functions, the controller, and our gui, use a global session factory, as describe in Sqlalchemy docs covering Sessions: https://docs.sqlalchemy.org/en/13/orm/session_basics.html
This makes it easy to share a session across separate sections of code if we have to.
The text was updated successfully, but these errors were encountered: