Re: [sqlalchemy] context manager for session lifecycle

2018-11-25 Thread Chris Withers
On 26/11/2018 06:15, Mike Bayer wrote: On Sun, Nov 25, 2018 at 12:55 PM Chris Withers wrote: > Soat the moment you can still say this: > > with session.transaction: > > which will do the commit and rollback but not the close(). Potentially silly

Re: [sqlalchemy] context manager for session lifecycle

2018-11-25 Thread Mike Bayer
On Sun, Nov 25, 2018 at 12:55 PM Chris Withers wrote: > > > Soat the moment you can still say this: > > > > > > with session.transaction: > > > > > > which will do the commit and rollback but not the close(). > > > > Potentially silly question: when is it

Re: [sqlalchemy] context manager for session lifecycle

2018-11-25 Thread Chris Withers
On 18/11/2018 23:38, Mike Bayer wrote: On Sun, Nov 18, 2018, 6:22 PM Chris Withers wrote: >> Does SQLAlchemy provide a context manager that handles the session >> lifecycle described here? >>