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 e

[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

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

2015-08-07 Thread Luis Guzman
Hi, Is it possible to reflect from one engine and then use some of the tables reflected as base to create tables in a second, different engine? A possible way: A_engine = create_engine("postgresql+psycopg2://...A...) B_engine = create_engine("postgresql+psycopg2://...B...) A_metadata = MetaDa