๐งฑ Static Transformer โ
The Static transformer is used to mock a static value.
๐ Alternation โ
This transformer does not mutate the existing row value โ it generates a new value.
โ Valid Data Types โ
StringNumberBoolean
โ๏ธ Options โ
| Option | Type | Description | Default |
|---|---|---|---|
string | String | Static string value to use. | 'Default value' |
number | Number | Static number value to use. | None |
bool | Boolean | Static boolean value to use. | None |
๐งช Examples โ
Example 1: Default behavior โ
toml
[[table.columns]]
name = "column-example"
transformer = "static"Output: "Default value"Example 2: Specifying string โ
toml
[[table.columns]]
name = "column-example"
transformer = { static = { string = "hello" } }Output: "hello"Example 3: Specifying number โ
toml
[[table.columns]]
name = "column-example"
transformer = { static = { number = 321 } }Output: 321Example 4: Specifying bool โ
toml
[[table.columns]]
name = "column-example"
transformer = { static = { bool = true } }Output: true