db/scripts/common.sh

10 lines
201 B
Bash
Raw Normal View History

2023-07-17 19:44:40 +00:00
#! /bin/bash
query_file() {
psql -v ON_ERROR_STOP=1 --single-transaction --quiet "$1" --file="$2" 1>&2
}
query() {
psql -v ON_ERROR_STOP=1 --single-transaction --quiet "$1" --command="$2" 1>&2
}