db/scripts/common.sh
2023-07-17 15:44:40 -04:00

10 lines
201 B
Bash

#! /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
}