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:
10
tests/create-template
Executable file
10
tests/create-template
Executable 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
|
Reference in New Issue
Block a user