Re: [sqlalchemy] Re: Reflect from one engine, use reflected tables in different engine

2015-08-10 Thread Luis Guzman
Right!, thanks for that. On Monday, August 10, 2015 at 2:15:40 PM UTC-7, Michael Bayer wrote: > > > > On 8/10/15 4:14 PM, Luis Guzman wrote: > > Right, this is possible. > > In my newbie status I did not know you can post-bind the metadata to a > different engine. > > A_metadata.bind = B_engin

Re: [sqlalchemy] Re: Reflect from one engine, use reflected tables in different engine

2015-08-10 Thread Mike Bayer
On 8/10/15 4:14 PM, Luis Guzman wrote: Right, this is possible. In my newbie status I did not know you can post-bind the metadata to a different engine. A_metadata.bind = B_engine And then: A_metadata.create_all() does the magic. please just pass the Engine object to create_all() direct

[sqlalchemy] Re: Reflect from one engine, use reflected tables in different engine

2015-08-10 Thread Luis Guzman
Right, this is possible. In my newbie status I did not know you can post-bind the metadata to a different engine. A_metadata.bind = B_engine And then: A_metadata.create_all() does the magic. On Friday, August 7, 2015 at 4:43:07 PM UTC-7, Luis Guzman wrote: > > Hi, > > Is it possible to re