1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-09-12 22:29:58 +00:00

Generate queries from templates

Huzzah, a bunch of failures have appeared.
This commit is contained in:
Colin Dellow
2018-03-18 14:28:31 -04:00
parent e3f0dff083
commit 078754467e
3 changed files with 66 additions and 0 deletions

10
tests/create-template Executable file
View File

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