pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

`pgroll convert` higher level to watch for new generated .sql files

Open richardgill opened this issue 1 year ago • 1 comments

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.

richardgill avatar Mar 13 '25 09:03 richardgill

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?

alexfrancoeur avatar Mar 31 '25 20:03 alexfrancoeur