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
Copy file name to clipboardExpand all lines: docs/en/integrations/language-clients/java/jdbc-v2.md
+9-48Lines changed: 9 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,8 @@ import CodeBlock from '@theme/CodeBlock';
13
13
14
14
# JDBC Driver
15
15
16
-
`clickhouse-jdbc` implements the standard JDBC interface. Being built on top of [clickhouse-client](/docs/en/integrations/sql-clients/sql-console), it provides additional features like custom type mapping, transaction support, and standard synchronous `UPDATE` and `DELETE` statements, etc., so that it can be easily used with legacy applications and tools.
17
-
18
-
:::note
19
-
Latest JDBC (0.8.0) version uses Client-V2 by default.
20
-
:::
21
-
22
-
`clickhouse-jdbc` API is synchronous, and generally, it has more overheads (e.g., SQL parsing and type mapping/conversion, etc.). Consider [client-v2](/docs/en/integrations/language-clients/java/client-v2.md) when performance is critical or if you prefer a more direct way to access ClickHouse.
16
+
`clickhouse-jdbc` implements the standard JDBC interface using [client-v2](/docs/en/integrations/language-clients/java/client-v2.md).
17
+
We recommend using [client-v2](/docs/en/integrations/language-clients/java/client-v2.md) directly if performance/direct access is critical.
23
18
24
19
## Environment requirements
25
20
@@ -37,7 +32,6 @@ import CodeBlock from '@theme/CodeBlock';
37
32
<groupId>com.clickhouse</groupId>
38
33
<artifactId>clickhouse-jdbc</artifactId>
39
34
<version>0.8.0</version>
40
-
<!-- use uber jar with all dependencies included, change classifier to http for smaller jar -->
41
35
<classifier>shaded-all</classifier>
42
36
</dependency>
43
37
```
@@ -47,72 +41,39 @@ import CodeBlock from '@theme/CodeBlock';
Since version `0.5.0`, we are using Apache HTTP Client that's packed the Client. Since there is not a shared version of the package, you need to add a logger as a dependency.
**URL Syntax**: `jdbc:(ch|clickhouse)[:<protocol>]://endpoint1[,endpoint2,...][/<database>][?param1=value1¶m2=value2][#tag1,tag2,...]`, for example:
Beyond standard JDBC properties, the driver supports the ClickHouse-specific properties offered by the underlying [client](/docs/en/integrations/language-clients/java/client-v2.md).
109
69
Where possible methods will return an SQLFeatureNotSupportedException if the feature is not supported. Other custom properties include:
0 commit comments