1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-02-26 06:39:45 +00:00
sqlite-parquet-vtable/tests/create-template

11 lines
165 B
Plaintext
Raw Normal View History

2018-03-07 20:30:25 -05: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