📜  无法为映射表 sqlalchemy 组装任何主键列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:05.645000             🧑  作者: Mango

代码示例1
1. Make sure all your tables have a primary key and you set the __table__ = 'name'
2. execute the following underneath declared table models
with Session(engine) as session:
        Base.metadata.create_all(engine)
        session.commit()