~mna/hockeypg

f62bbc2486a67e5b81f00c48dae86fdb13e44f52 — Martin Angers 1 year, 1 month ago 8c77103
add psql interactive script
1 files changed, 15 insertions(+), 0 deletions(-)

A scripts/psql.sh
A scripts/psql.sh => scripts/psql.sh +15 -0
@@ 0,0 1,15 @@
#!/usr/bin/env bash

set -euo pipefail

function run {
  local pwd=""; pwd="$(pwd)"
  if [[ ${pwd} != *hockeypg ]]; then
    echo "must be run from the root of the repository"
    exit 1
  fi

  docker-compose exec db psql -h localhost -U hockeypg
}

run