You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- also we will refactor JDBC driver to use this client
29
+
This is official Java Client and JDBC for ClickHouse Database (https://github.com/ClickHouse/Clickhouse). Java Client is the core component and provides API to interact with the database. In 2023 this component and its API was refactored into a new component `client-v2`. Both version are available but older one will be deprecated soon. However it will receive security and critical bug fixes. New `client-v2` has stable API and we are working on performance and feature parity to make it a production ready.
30
+
JDBC driver component is an implementation of JDBC API. It uses Java Client API to interact with the database server.
31
+
32
+
**Benefits of using Client-V2:**
33
+
- Stable API.
34
+
- Minimal functionality is implemented
35
+
- SSL & mTLS support
36
+
- RowBinary* formats support for reading
37
+
- Proxy support
38
+
- HTTP protocol
39
+
- New Insert API that accepts a list of POJOs
40
+
- New Query API that returns a list of GenericRecords that cant be used as DTOs
41
+
- Native format reader
42
+
- Performance improvements
43
+
- Less number of internal buffers compare to the old client
44
+
- More configuration for performance tuning
45
+
- Less object allocation
46
+
- Upcoming new features
47
+
48
+
Old client still be used when:
49
+
- using JDBC driver ( we are working on its refactoring )
| ClickHouse GRPC Client | 0.7.0 | Please use the clickhouse http protocol instead |
57
+
| Clickhouse CLI Client (Java) | 0.7.0 | Please use `clickhouse-client` (see https://clickhouse.com/docs/en/interfaces/cli#clickhouse-client)|
58
+
| ClickHouse GRPC Client | 0.7.0 | Please use the ClickHouse http client instead. GRPC protos still available https://github.com/ClickHouse/ClickHouse/tree/master/src/Server/grpc_protos|
59
+
51
60
52
61
## Installation
53
62
@@ -190,13 +199,6 @@ Client client = new Client.Builder()
| Server < 20.7 | 0.3.1-patch | use 0.3.1-patch(or 0.2.6 if you're stuck with JDK 7) |
198
-
| Server >= 20.7 | 0.3.2 | use 0.3.2 or above. All [active releases](https://github.com/ClickHouse/ClickHouse/pulls?q=is%3Aopen+is%3Apr+label%3Arelease) are supported. |
199
-
| Server >= 23.0 | >0.6.0 | use 0.6.0 or above. |
200
202
201
203
### Features
202
204
@@ -206,7 +208,7 @@ Client client = new Client.Builder()
206
208
- Apache HTTP Client as HTTP client
207
209
- Connection pooling
208
210
- Failures on retry
209
-
- SSL support
211
+
- SSL & mTLS support
210
212
- Cloud support
211
213
- Proxy support
212
214
@@ -216,6 +218,13 @@ See [java client examples](../../tree/main/examples/client)
216
218
217
219
See [JDBC examples](../../tree/main/examples/jdbc)
218
220
221
+
## Compatibility
222
+
223
+
- All projects in this repo are tested with all [active LTS versions](https://github.com/ClickHouse/ClickHouse/pulls?q=is%3Aopen+is%3Apr+label%3Arelease) of ClickHouse.
0 commit comments