Python sqlalchemy, has two databases, in which the table name is duplicated. How to set it so as not to confuse the two tables?

1. In both databases, there is a table called table_A, that will be confused when performing ORM operations

Oct.29,2021

you can create two MetaData instances that bind different databases engine and associate different Model definitions.

Menu