-
Notifications
You must be signed in to change notification settings - Fork 247
TokenReplacement
Any value that is in the configuration can be tokenized in the scripts.
ALTER DATABASE {{DatabaseName}}
will be replaced as ALTER DATABASE Bob
when the database name is Bob
.
This is not case sensitive.
Using token replacement in your scripts locks those scripts into RoundhousE. I would use something like this VERY sparingly.
The supported tokens are defined by the public properties of roundhouse.infrastructure.app.ConfigurationPropertyHolder
User defined tokens are supported for token replacement. You can add user defined tokens using the --ut or --usertokens switch. The user defined token is defined in key=value
pairs. You can define multiple user defined tokens separated with semicolon.
Example:
--ut=MyTablePrefix=local;MyOtherToken=OtherValue
The tokens can then be used for token replacement in scripts:
ALTER TABLE {{MyTablePrefix}}_TableName
will become ALTER TABLE local_TableName