sqlite-parquet-vtable/tests/create-query

11 lines
165 B
Plaintext
Raw Normal View History

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