Non-interactive abort on data loss push
Hello, I am huge fan of
drizzle-kit push
but I struggle to find the best way to integrate it to into CI.
I was first thinking of using --strict
and --verbose
to sort of get what I want, but now if any dev forgets to push on their own machine, the CI machine just hangs at the interactive prompts.
I am essentially wanting a non-interactive drizzle-kit push that will abort on data loss.
I see that we have an issue for that: https://github.com/drizzle-team/drizzle-orm/issues/3209 and even a PR with some progress: https://github.com/drizzle-team/drizzle-orm/pull/4384
I would really really love a --safe
option here. Anyone know if the drizzle team has this on their radar or are open to more contributions on the PR?
Otherwise I guess I will be wrapping drizzlekit push --strict --verbose
with expect (https://linux.die.net/man/1/expect).
Thank you!0 Replies