[sqlalchemy] copy tables with circular dependency

2015-12-10 Thread Leily Zafari
Hello, I want to copy some tables from one database to another using SQLAlchemy. The tables have circular dependency which is resolved by use_alter attribute. class Product(Base): __tablename__ = 'products' Int_Class_ID = Column(Integer, primary_key=True) components =

[sqlalchemy] How to profit from dynamic and eager loading at the same time

2015-11-30 Thread Leily Zafari
I have two tables "Factorys" and "Products", each "Factory" can have a large collection of "Products". For appends and filters the dynamic loading method has been applied. class Factory(Base): __tablename__ = 'factorys' ID = Column(Integer, primary_key=True) products =