Re: [sqlalchemy] How to stop a session object from grabbing another database connection?

2012-09-19 Thread Derek Litz
Do you have a reference I could like at for bound metadata, not quite sure what is meant by that. Anyways, I tried out both methods: session.bind = None, doesn't stop the session from being used at all (it does break get_bind() though, humorously). session.transaction._deactivate() does work

Re: [sqlalchemy] How to stop a session object from grabbing another database connection?

2012-09-19 Thread Michael Bayer
On Sep 19, 2012, at 11:09 AM, Derek Litz wrote: Do you have a reference I could like at for bound metadata, not quite sure what is meant by that. its this: engine = create_engine(...) metadata.bind = engine Anyways, I tried out both methods: session.bind = None, doesn't stop the