anykeyh / clear

Advanced ORM between postgreSQL and Crystal
https://github.com/anykeyh/clear
MIT License
272 stars 34 forks source link

Inferring initial migration from model #184

Open ghost opened 4 years ago

ghost commented 4 years ago

I am hoping to rewrite a project in Crystal that's currently using SQLAlchemy, which can infer the initial migration to create the schema from the model definitions, eliminating the need to define them twice (in Python for the ORM and in raw SQL to setup the database). Granite has at least partial support for this (and I would be using Granite, but it has several other issues), but I don't see it in the Clear documentation. If it's not supported, will it be?

anykeyh commented 3 years ago

Currently, I don't provide any tool to generate the schema and models based on the database. Work must be done over the CLI. Will proceed in the next week in a full revamp of the CLI.