Using Plan to refuse a risky deployment before it starts.
Running them
Start a PostgreSQL — the repository's docker-compose.yml will do:
docker compose up -d --wait
# The compose file maps 5433 on the host, to stay out of the way of a local
# PostgreSQL on the default port.
export DATABASE_URL="postgres://postgres:postgres@localhost:5433/postgres?sslmode=disable"
Then:
go run ./examples/basic
go run ./examples/embedded
go run ./examples/deploy-gate
Each example creates its own bookkeeping table, so they do not interfere.