could not assemble any primary key columns for mapped table sqlalchemy

Solutions on MaxInterview for could not assemble any primary key columns for mapped table sqlalchemy by the best coders in the world

showing results for - "could not assemble any primary key columns for mapped table sqlalchemy"
Francesco
22 May 2017
11. Make sure all your tables have a primary key and you set the __table__ = 'name'
22. execute the following underneath declared table models
3with Session(engine) as session:
4        Base.metadata.create_all(engine)
5        session.commit()