[sqlalchemy] Configuring an existing session

2010-01-21 Thread Tarek Ziadé
Hi, I use a global session instance to work with my DB, so all module import it and use it. But at some point I sometimes need to reconfigure the engine to use another DB. I want to reconfigure the existing instance so other modules can still use the same session object to work with the DB. can

Re: [sqlalchemy] Configuring an existing session

2010-01-21 Thread Michael Bayer
Tarek Ziadé wrote: Hi, I use a global session instance to work with my DB, so all module import it and use it. But at some point I sometimes need to reconfigure the engine to use another DB. I want to reconfigure the existing instance so other modules can still use the same session object