migrations.vars in your config. If you set
cluster_name on the environment, it is also available as {{cluster_name}}.
If you have used Atlas, this will feel familiar. The idea is the same as Atlas templated migrations, but clisma uses Handlebars instead of Go templates. See the Handlebars docs for syntax examples.
Environment-specific templating
You can define template variables per environment inmigrations.vars to make
the same migration work differently across environments.
A common case is: local runs standalone tables, while production runs a replicated cluster. In
that case you can set is_replicated, create_table_options per environment and let the same SQL adapt at runtime.
Example migration
{cluster} and {replica} are ClickHouse macros, not clisma template
variables. See the ClickHouse macros docs.
You can replace them with your own values if you want to avoid macros.