Hi All,
I'm looking to use a session as a context manager, I've found
session_scope here:
http://docs.sqlalchemy.org/en/latest/orm/session_basics.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it
...but is there anything in the core?
I find of expected a session to do what session_scope does when used
like so:
with Session() as session:
...
If I knocked up a pull request to make that happen, would it be accepted?
cheers,
Chris
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.