sqitch icon indicating copy to clipboard operation
sqitch copied to clipboard

Support Templating in Change Scripts

Open theory opened this issue 5 years ago • 1 comments

Add support for running deploy/verify/revert scripts through Template::Tiny or Template Toolkit, reading variable settings from a YAML or JSON file. Read in the scripts, run them through the template engine, write out a temporary file, have the database client run the temp file, then delete it.

theory avatar Sep 29 '20 23:09 theory

If want to use command-line options, need to figure out how to support both this functionality and --set. Maybe require a file with variables set? What about support in the Sqitch configuration?

theory avatar Sep 29 '20 23:09 theory