Skip to content
Alastair Pitts edited this page Apr 6, 2020 · 8 revisions

Token Replacement

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.

Notes

Using token replacement in your scripts locks those scripts into RoundhousE. I would use something like this VERY sparingly.

Supported Tokens

The supported tokens are defined by the public properties of roundhouse.infrastructure.app.ConfigurationPropertyHolder

https://github.com/chucknorris/roundhouse/blob/master/product/roundhouse.core/infrastructure.app/ConfigurationPropertyHolder.cs

Questions

  • Are user-defined tokens available? If so, where do we define them? Would love to know this.
Clone this wiki locally