10 lines
201 B
Bash
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
|
|
}
|