Revision 5912
Added by Aaron Marcuse-Kubitza about 12 years ago
input.Makefile | ||
---|---|---|
239 | 239 |
# For staging tables which are derived by joining together other staging tables. |
240 | 240 |
%/install %/header.csv: %/create.sql _always |
241 | 241 |
($(inDatasrc); echo 'CREATE TABLE "$*" AS'; cat $<; echo ';')|"time" \ |
242 |
$(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*) |
|
242 |
$(psqlAsBien) --echo-all --set=schema='"$(datasrc)"' --set=table='"$*"' \ |
|
243 |
$(logInstall*) |
|
243 | 244 |
$(exportHeader) |
244 | 245 |
.PRECIOUS: %/header.csv |
245 | 246 |
|
Also available in: Unified diff
input.Makefile: Staging tables installation: `%/install: %/create.sql`: Also provide the schema to create.sql in :schema