Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clickhouse JDBC driver class name

Has anyone used Spring JDBC with Clickhouse? What is the driver class name?

spring.datasource.driver-class-name=<what is it?>
like image 406
Kin Cheung Avatar asked Jul 04 '17 02:07

Kin Cheung


2 Answers

I guess it could be it, even though it doesn't look like any other driver class names that I have seen.

spring.datasource.driver-class-name=ru.yandex.clickhouse.ClickHouseDriver
like image 65
Kin Cheung Avatar answered Sep 29 '22 13:09

Kin Cheung


There is also lighter and faster alternative to the official driver version - clickhouse4j. (fork of the official driver with some improvements)

You can use it like this:

spring.datasource.driver-class-name=cc.blynk.clickhouse.ClickHouseDriver
like image 38
Dmitriy Dumanskiy Avatar answered Sep 29 '22 12:09

Dmitriy Dumanskiy