Relative Content

Tag Archive for sqlalchemyflask-sqlalchemy

Flask/SQLAlchemy How can I correct field when creating table with reflect?

I want to use metadata.reflect() and generate the existing tables. Tried Method 1 and Method 2 in code block to generate the table. They both give the same error about the Mapper not being able to assemble any primary key columns for mapped table. I think it’s because of the <built-in function id> field. How can I solve mapping issue?