Answers for "could not assemble any primary key columns for mapped table but table does not have primary key"

SQL
0

could not assemble any primary key columns for mapped table sqlalchemy

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()
Posted by: Guest on June-22-2021

Code answers related to "could not assemble any primary key columns for mapped table but table does not have primary key"

Code answers related to "SQL"

Browse Popular Code Answers by Language