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
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
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