Skip to content

Commit a86bdbe

Browse files
authored
Merge pull request #4196 from ClickHouse/java_update_docs_0.9.1
[Java] 0.9.1 Update
2 parents dcf0892 + 4ecfb20 commit a86bdbe

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

docs/integrations/language-clients/java/client/_snippets/_v0_8.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ The library provides its own API to send requests to a server. The library also
88
## Setup {#setup}
99

1010
- Maven Central (project web page): https://mvnrepository.com/artifact/com.clickhouse/client-v2
11-
- Nightly builds (repository link): https://s01.oss.sonatype.org/content/repositories/snapshots/com/clickhouse/
11+
- Nightly builds (repository link): https://central.sonatype.com/repository/maven-snapshots/
12+
- Old Nightly builds artifactory (repository link): https://s01.oss.sonatype.org/content/repositories/snapshots/
1213
<br/>
1314
<Tabs groupId="client-setup">
1415
<TabItem value="maven" label="Maven" >
@@ -17,7 +18,7 @@ The library provides its own API to send requests to a server. The library also
1718
<dependency>
1819
<groupId>com.clickhouse</groupId>
1920
<artifactId>client-v2</artifactId>
20-
<version>0.9.0</version>
21+
<version>0.9.1</version>
2122
</dependency>
2223
```
2324

@@ -26,14 +27,14 @@ The library provides its own API to send requests to a server. The library also
2627

2728
```kotlin
2829
// https://mvnrepository.com/artifact/com.clickhouse/client-v2
29-
implementation("com.clickhouse:client-v2:0.9.0")
30+
implementation("com.clickhouse:client-v2:0.9.1")
3031
```
3132
</TabItem>
3233
<TabItem value="gradle" label="Gradle">
3334

3435
```groovy
3536
// https://mvnrepository.com/artifact/com.clickhouse/client-v2
36-
implementation 'com.clickhouse:client-v2:0.9.0'
37+
implementation 'com.clickhouse:client-v2:0.9.1'
3738
```
3839

3940
</TabItem>
@@ -162,6 +163,10 @@ Configuration is defined during client creation. See `com.clickhouse.client.api.
162163
| `useHTTPBasicAuth(boolean useBasicAuth)` | - `useBasicAuth` - flag that indicates if the option should be enabled | Sets if basic HTTP authentication should be used for user-password authentication. Default is enabled. Using this type of authentication resolves issues with passwords containing special characters that cannot be transferred over HTTP headers. <br/> <br/> Default: `true` <br/> Enum: `ClientConfigProperties.HTTP_USE_BASIC_AUTH` <br/> Key: `http_use_basic_auth` |
163164
| `setClientName(String clientName)` | - `clientName` - a string representing application name | Sets additional information about calling application. This string will be passed to server as a client name. In case of HTTP protocol it will be passed as a `User-Agent` header. <br/> <br/> Default: - <br/> Enum: `ClientConfigProperties.CLIENT_NAME` <br/> Key: `client_name`|
164165
| `useBearerTokenAuth(String bearerToken)` | - `bearerToken` - an encoded bearer token | Specifies whether to use Bearer Authentication and what token to use. The token will be sent as is, so it should be encoded before passing to this method. <br/> <br/> Default: - <br/> Enum: `ClientConfigProperties.BEARERTOKEN_AUTH` <br/> Key: `bearer_token` |
166+
| `registerClientMetrics(Object registry, String name)` | - `registry` - Micrometer registry instance<br /> - `name` - metrics group name | Registers sensors with Micrometer (https://micrometer.io/) registry instance. |
167+
| `setServerVersion(String version)` | - `version` - string value of a server version | Sets server version to avoid version detection. <br/> <br/> Default: - <br/> Enum: `ClientConfigProperties.SERVER_VERSION` <br/> Key: `server_version` |
168+
| `typeHintMapping(Map typeHintMapping)` | - `typeHintMapping` - map of type hints | Sets type hint mapping for ClickHouse types. For example, to make multidimesional arrays be present as Java containers instead of own Array objects. <br/> <br/> Default: - <br/> Enum: `ClientConfigProperties.TYPE_HINT_MAPPING` <br/> Key: `type_hint_mapping` |
169+
| `sslSocketSNI(String sni)` | - `sni` - string value of a server name | Sets server name to be used for SNI (Server Name Indication) in SSL/TLS connection. <br/> <br/> Default: - <br/> Enum: `ClientConfigProperties.SSL_SOCKET_SNI` <br/> Key: `ssl_socket_sni` |
165170
</WideTableWrapper>
166171

167172
### Server Settings

docs/integrations/language-clients/java/jdbc/_snippets/_v0_8.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In 0.8 we tried to make the driver more strictly follow the JDBC specification,
3535
<dependency>
3636
<groupId>com.clickhouse</groupId>
3737
<artifactId>clickhouse-jdbc</artifactId>
38-
<version>0.8.2</version>
38+
<version>0.9.1</version>
3939
<classifier>shaded-all</classifier>
4040
</dependency>
4141
```
@@ -45,14 +45,14 @@ In 0.8 we tried to make the driver more strictly follow the JDBC specification,
4545

4646
```kotlin
4747
// https://mvnrepository.com/artifact/com.clickhouse/clickhouse-jdbc
48-
implementation("com.clickhouse:clickhouse-jdbc:0.8.2:shaded-all")
48+
implementation("com.clickhouse:clickhouse-jdbc:0.9.1:shaded-all")
4949
```
5050
</TabItem>
5151
<TabItem value="gradle" label="Gradle">
5252

5353
```groovy
5454
// https://mvnrepository.com/artifact/com.clickhouse/clickhouse-jdbc
55-
implementation 'com.clickhouse:clickhouse-jdbc:0.8.2:shaded-all'
55+
implementation 'com.clickhouse:clickhouse-jdbc:0.9.1:shaded-all'
5656
```
5757

5858
</TabItem>
@@ -78,6 +78,8 @@ Where possible methods will return an `SQLFeatureNotSupportedException` if the f
7878
| `jdbc_ignore_unsupported_values` | `false` | Suppresses `SQLFeatureNotSupportedException` |
7979
| `clickhouse.jdbc.v1` | `false` | Use older JDBC implementation instead of new JDBC |
8080
| `default_query_settings` | `null` | Allows passing of default query settings with query operations |
81+
| `jdbc_resultset_auto_close` | `true` | Automatically closes `ResultSet` when `Statement` is closed |
82+
| `beta.row_binary_for_simple_insert` | `false` | Use `PreparedStatement` implementation based on `RowBinary` writer. Works only for `INSERT INTO ... VALUES` queries. |
8183

8284
## Supported data types {#supported-data-types}
8385

0 commit comments

Comments
 (0)