htmfilho/csvsource

Use a template engine to allow variables in prefix and suffix files

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

Yes. In many cases, the content in the prefix and suffix files are related to the insert statements. For example, the prefix file may have a script to create a table, but the name of the table should be the same used in the insert statements. Unfortunately, the content of the prefix and suffix files are fixed.

Describe the solution you'd like

It would be interesting if the prefix and suffix files were actually template files, so we could use variables to be replaced by arguments during run-time. Variables would be replaced by arguments, such as --table and --column.

Describe alternatives you've considered

An alternative would be to edit the files, put current values, and execute the command, but it would reduce automation opportunities.