Closed kirylan closed 1 year ago
This would add a dependency to node. Any CLI added to kysely must be 100% dependency free and runtime agnostic. That's why a separate package makes more sense.
Is there any reason why kysely shouldn't maintain a first-party CLI that can handle migration generation, even if it is a separate package? Many other similar tools seem to provide this
Feel free to write one 😄
I created a thin CLI command to generate migration file. It works like a library instead of an executable CLI, but reduces lots of boilerplate code.
https://github.com/acro5piano/kysely-migration-cli
Hope it helps
Would that make sense to introduce the most basic cli migrations generator? Currently I have to use this following little script to achieve it. I think it self-explains what I mean but basically something that will allow not crating migrations by hand.