#!/usr/bin/env bash

set -euo pipefail

# NOTE: This program will dump everything to stdout. It is intended to be used with
# with a redirect or pipe.
PGPASSWORD=$HEALTH_API__POSTGRES__PASSWORD \
    pg_dump \
    --host=$HEALTH_API__POSTGRES__HOST \
    --username=$HEALTH_API__POSTGRES__USERNAME \
    --format custom \
    --schema-only \
    health_api
