[ACCEPTED]-SQLAlchemy Automap does not create class for tables without primary key-sqlalchemy
Accepted answer
Figured it out by combing through the reference/reframing 5 the problem.
In case it helps someone else 4 -
Because SQLAlchemy ORM is based on an identity 3 map model, one cannot map (or automap) a 2 table that does not have a primary key. An 1 arbitrary primary key should be specified.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.