A simple pgroll gRPC server that can start, complete and roll back migrations.
- Have a
postgres
instance running on:5432
make run
- Invoke the
Start
,Complete
andRollback
gRPC methods with a tool likeevans
orgrpcurl
.
Example message payloads are in the /examples
dir.
eg:
evans --proto proto/pgroll.proto cli call pgroll.PGRoll.Start --file examples/05_sql.json
echo '{}' | evans --proto proto/pgroll.proto cli call pgroll.PGRoll.Complete