mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-02-26 06:39:45 +00:00
11 lines
165 B
Bash
Executable File
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
|