pgroll
pgroll copied to clipboard
`pgroll convert` higher level to watch for new generated .sql files
I wrote a script to generate drizzle migrations and immediately convert them to pgroll migrations.
It went pretty well, but It would have been easier if I had a helper in pgroll like this (rough idea):
pgroll convert —watch-folder ./drizzle —exec pnpm exec drizzle-kit generate
Or
pgroll convert-start ./drizzle
pnpm exec drizzle-kit generate
pgroll convert-end
Which automatically tracks which files are new and converts them for me.
I know we decided not to provide helpers for specific ORMs, but you're just looking to point at a folder of migrations (regardless of origin) and convert them all. Is that correct?