Polish 'Add support for ClickHouse in `DatabaseDriver` enum'

See gh-42815
This commit is contained in:
Phillip Webb 2024-10-21 18:56:22 -07:00
parent 1796c20017
commit 3d47cb7980
3 changed files with 9 additions and 11 deletions

View File

@ -205,17 +205,6 @@ bom {
site("https://github.com/FasterXML/java-classmate")
}
}
library("ClickHouse", "0.6.5") {
group("com.clickhouse") {
modules = [
"clickhouse-jdbc"
]
}
links {
site("https://clickhouse.com")
releaseNotes("https://github.com/ClickHouse/clickhouse-java/releases/tag/v{version}")
}
}
library("Commons Codec", "${commonsCodecVersion}") {
group("commons-codec") {
modules = [

View File

@ -33,6 +33,13 @@ bom {
]
}
}
library("ClickHouse", "0.6.5") {
group("com.clickhouse") {
modules = [
"clickhouse-jdbc"
]
}
}
library("Commons Compress", "1.25.0") {
group("org.apache.commons") {
modules = [

View File

@ -212,10 +212,12 @@ public enum DatabaseDriver {
* @since 3.4.0
*/
CLICKHOUSE("ClickHouse", "com.clickhouse.jdbc.ClickHouseDriver", null, "SELECT 1") {
@Override
protected Collection<String> getUrlPrefixes() {
return Arrays.asList("ch", "clickhouse");
}
};
private final String productName;