Re: [sqlalchemy] Can you count the active/open sessions?

2013-08-29 Thread Michael Bayer
On Aug 28, 2013, at 11:44 PM, dndcu...@gmail.com wrote: I'd like to run some tests against my app to make sure I'm properly closing all of the sessions that I open. Is there a way to get the number of open database sessions with SQLAlchemy? Is this a strange request that hints I may be

[sqlalchemy] Can you count the active/open sessions?

2013-08-28 Thread dndculix
I'd like to run some tests against my app to make sure I'm properly closing all of the sessions that I open. Is there a way to get the number of open database sessions with SQLAlchemy? Is this a strange request that hints I may be taking the wrong approach? Currently I'm using scoped sessions