python - Is there any database model designer that can output SQLAlchemy models? -
i implementing database model store 20+ fields of ical calendar format , faced tediously typing in these sqlalchemy model.py file. there smarter approach? looking gui or model designer can create model.py file me. specify column names , attributes, e.g, type, length, etc.
at minimum, need designer output model 1 table. additional requirements, in decreasing order of priority:
- create multiple tables
- support basic relationships between multiple tables (1:1, 1:n)
- support constraints on columns.
i open other ways of achieving goal, perhaps using gui create tables in database , reflecting them model.
i appreciate feedback in advance.
there's way yet generate sqlalchemy model. can use vertabelo - it's online tool visual database designing. it's free small projects.
after created model in vertabelo, have convert sqlalchemy mapping classes using script available on github.
simply follow provided below steps:
download diagram xml file (simply press xml icon on toolbar menu)
generate sqlalchemy models
./vertabelo_sqlalchemy.py -i your_diagram.xml -o model.py
i know not direct , perfect way, hope suit you.
Comments
Post a Comment