Revision 8201
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/input.Makefile | ||
---|---|---|
243 | 243 |
$(bin)/csv2db) $(logInstall*Add)) |
244 | 244 |
|
245 | 245 |
%/header.csv: |
246 |
echo 'SELECT * FROM "$(datasrc)"."$*" LIMIT 0;'|env no_search_path=1 \ |
|
247 |
$(bin)/psql_script_vegbien --no-align --field-separator=, --pset=footer=off\ |
|
248 |
>$*/header.csv |
|
246 |
echo 'COPY (SELECT * FROM "$(datasrc)"."$*" LIMIT 0) TO STDOUT CSV HEADER;'|\ |
|
247 |
env no_search_path=1 $(bin)/psql_script_vegbien >$*/header.csv |
|
249 | 248 |
|
250 | 249 |
exportHeader = $(selfMake) $*/header.csv |
251 | 250 |
|
Also available in: Unified diff
inputs/input.Makefile: %/header.csv: Fixed bug where newlines inside column names were incorrectly formatted by psql's table header formatting, by using COPY TO STDOUT instead