andrew-farries / pgroll-grpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgroll-grpc

A simple pgroll gRPC server that can start, complete and roll back migrations.

Instructions

  • Have a postgres instance running on :5432
  • make run
  • Invoke the Start, Complete and Rollback gRPC methods with a tool like evans or grpcurl.

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

About


Languages

Language:Go 93.1%Language:Makefile 6.9%