Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic data modelling from ORM #1230

Open
caniko opened this issue Aug 26, 2022 · 1 comment
Open

Automatic data modelling from ORM #1230

caniko opened this issue Aug 26, 2022 · 1 comment

Comments

@caniko
Copy link

caniko commented Aug 26, 2022

A way to generate data models diagrams from tortoise model hierarchies. UML makes most sense considering it is a language.

@caniko
Copy link
Author

caniko commented Aug 27, 2022

I can see an avenue from tortoise/orm_mode -> pydantic -> py2puml. Where most of the code is either on pydantic, or on an addon integrating pydantic -> py2puml; the same addon could integrate tortoise or orm_mode to the chain as an extra.

I am not sure what needs to happen, I found this issue on the py2uml side.

@samuelcolvin probably has the best insight to this idea, or if it is feasible to begin with, Pydantic v2 is going to have some breaking changes that might break the entire chain; maybe worth waiting for.

I think this is worth looking into, not sure if any other Python ORM, or any ORM, has this kind of feature! Please correct me if I am wrong, I need this 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant