Skip to content

Commit 3d47cb7

Browse files
committed
Polish 'Add support for ClickHouse in DatabaseDriver enum'
See gh-42815
1 parent 1796c20 commit 3d47cb7

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,6 @@ bom {
205205
site("https://github.com/FasterXML/java-classmate")
206206
}
207207
}
208-
library("ClickHouse", "0.6.5") {
209-
group("com.clickhouse") {
210-
modules = [
211-
"clickhouse-jdbc"
212-
]
213-
}
214-
links {
215-
site("https://clickhouse.com")
216-
releaseNotes("https://github.com/ClickHouse/clickhouse-java/releases/tag/v{version}")
217-
}
218-
}
219208
library("Commons Codec", "${commonsCodecVersion}") {
220209
group("commons-codec") {
221210
modules = [

spring-boot-project/spring-boot-parent/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ bom {
3333
]
3434
}
3535
}
36+
library("ClickHouse", "0.6.5") {
37+
group("com.clickhouse") {
38+
modules = [
39+
"clickhouse-jdbc"
40+
]
41+
}
42+
}
3643
library("Commons Compress", "1.25.0") {
3744
group("org.apache.commons") {
3845
modules = [

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ protected Collection<String> getUrlPrefixes() {
212212
* @since 3.4.0
213213
*/
214214
CLICKHOUSE("ClickHouse", "com.clickhouse.jdbc.ClickHouseDriver", null, "SELECT 1") {
215+
215216
@Override
216217
protected Collection<String> getUrlPrefixes() {
217218
return Arrays.asList("ch", "clickhouse");
218219
}
220+
219221
};
220222

221223
private final String productName;

0 commit comments

Comments
 (0)