Project

General

Profile

« Previous | Next » 

Revision 8154

inputs/input.Makefile: %/install: Always generate a header.csv, even for CSV inputs with their own header. This will include the actual column names in the staging table, which may differ from their names in the CSVs (e.g. the addition of row_num). Note that header.csv is not included in the CSVs list itself, and will not override the header or dialect in them.

View differences:

input.Makefile
266 266
--echo-all --set=table='"$(*D)"' --set=table_str=\''"$(*D)"'\')
267 267

  
268 268
%/install: _always
269
	$(if $(isRef),$(exportHeader),$(if $(nonXml),$(import_install_)))
269
	$(if $(nonXml),$(import_install_))
270
	$(exportHeader)
270 271
define import_install_
271 272
(. $(bin)/vegbien_dest; unset schemas; "time" nice -n +5\
272 273
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*))

Also available in: Unified diff