Flyway Clickhouse Cluster Name Setting
Published 15 January 2025
Description
The name of the Clickhouse cluster.
Type
String
Default
none
Usage
Flyway Desktop
This can't be configured via Flyway Desktop, although it will be honoured.
Command-line
./flyway -clickhouse.clusterName="example_cluster" info
TOML Configuration File
[flyway.clickhouse]
clusterName="example_cluster"
Configuration File
flyway.clickhouse.clusterName=example_cluster
Environment Variable
FLYWAY_CLICKHOUSE_CLUSTER_NAME=example_cluster
API
ClickHouseConfigurationExtension clickHouseConfigurationExtension = configuration.getPluginRegister().getPlugin(ClickHouseConfigurationExtension.class);
clickHouseConfigurationExtension.setClusterName("example_cluster");
Gradle
flyway {
pluginConfiguration = [
clickhouseClusterName: 'example_cluster'
]
}
Maven
<configuration>
<pluginConfiguration>
<clickhouseClusterName>example_cluster</clickhouseClusterName>
</pluginConfiguration>
</configuration>