[sqlalchemy] Re: Want a custom implementation of get_bind that ignores metadata bindings

2009-09-24 Thread phrrn...@googlemail.com
Yup. We screwed up by using metadata.bind but I think we may be stuck with it. Is it possible to bind a metadata collection within a session? i.e would session.configure(binds={metadata_collection_1 : e1, metadata_collection_2 : e2}) work? We would like to be able to bind groups of tables at the

[sqlalchemy] Re: Want a custom implementation of get_bind that ignores metadata bindings

2009-09-24 Thread Michael Bayer
phrrn...@googlemail.com wrote: Yup. We screwed up by using metadata.bind but I think we may be stuck with it. why is that ? just detach it. Unless you have lots of mytable.select().execute() types of statements going on, nothing will really happen. But also, if you are setting