sqlite-parquet-vtable/tests/create-query

11 lines
165 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
query=${1:?must provide query}
echo "$query"
psql parquet postgres <<EOF
COPY ($query) TO STDOUT WITH (DELIMITER '|', NULL '');
EOF