documentation/Reference/Database Driver Reference/Clickhouse Database.md
{% include database-boilerplate.html %}
| Item | Details |
|---|---|
| URL format | <code>jdbc:clickhouse://<i>host</i>:<i>port</i>/<i>database</i></code> |
| SSL support | Not tested |
| Ships with Flyway Command-line | No |
| JDBC driver download for Command-line | Clickhouse JDBC Drivers |
| Maven Central coordinates | com.clickhouse:clickhouse-jdbc |
| Supported versions | N/A |
| Default Java class | com.clickhouse.jdbc.ClickHouseDriver |
| Flyway Community implementation | flyway-community-db-support |
Whilst most databases Flyway supports have common configuration parameters, there are sometimes specific configurations available:
Clickhouse support is a separate dependency for Flyway and will need to be added to your Java project to access these features.
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-clickhouse</artifactId>
</dependency>
buildscript {
dependencies {
implementation "org.flywaydb:flyway-database-clickhouse"
}
}
By default, Clickhouse uses LZ4 compression.
This requires lz4-java which needs to be added to the classpath.
Alternatively, you can use a different algorithm by setting the compress_algorithm JDBC property, or disable it by setting compress to false.