sqlacodegen --noclaases depracated?

Skip to first unread message

Peter Daniels

Oct 23, 2023, 2:38:15 PM10/23/23
to sqlalchemy
SQLAlchemy and sqlacodegen noob here. I'd like to just get some simple SQLAlchemy tables generated for my database.  I tried using  --noclasses, but it doesn't seem to recognize the option.

sqlacodegen --noclasses mysql+pymysql://root:<uhuh>@localhost:3306/mydb

sqlacodegen: error: unrecognized arguments: --noclasses

How can I get it to just gen some tables?

This is what I read in the project docs:
"Unless the --noclasses option is used, sqlacodegen tries to generate declarative model classes from each table."



Jonathan Vanasco

Nov 9, 2023, 2:50:06 PM11/9/23
to sqlalchemy
sqlacodegen is a third party tool. Your best option for support is on their Github page: https://github.com/agronholm/sqlacodegen/discussions/categories/q-a
Reply all
Reply to author
0 new messages