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/js.md
+46-34
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ npm i @clickhouse/client-web
60
60
61
61
| Client version | ClickHouse |
62
62
|----------------|------------|
63
-
| 1.5.0 | 23.3+ |
63
+
| 1.8.0 | 23.3+ |
64
64
65
65
Likely, the client will work with the older versions, too; however, this is best-effort support and is not guaranteed. If you have ClickHouse version older than 23.3, please refer to [ClickHouse security policy](https://github.com/ClickHouse/ClickHouse/blob/master/SECURITY.md) and consider upgrading.
66
66
@@ -117,6 +117,7 @@ When creating a client instance, the following connection settings can be adjust
117
117
-**session_id?: string** - optional ClickHouse Session ID to send with every request.
118
118
-**keep_alive?: { enabled?: boolean }** - enabled by default in both Node.js and Web versions.
119
119
-**http_headers?: Record<string, string>** - additional HTTP headers for outgoing ClickHouse requests. See also: [Reverse proxy with authentication docs](./js.md#reverse-proxy-with-authentication)
120
+
-**roles?: string | string[]** - ClickHouse role name(s) to attach to the outgoing requests. See also: [Using roles with the HTTP interface](https://clickhouse.com/docs/en/interfaces/http#setting-role-with-query-parameters)
120
121
121
122
#### Node.js-specific configuration parameters
122
123
@@ -135,7 +136,7 @@ URL configuration will _always_ overwrite the hardcoded values and a warning wil
135
136
It is possible to configure most of the client instance parameters with a URL. The URL format is `http[s]://[username:password@]hostname:port[/database][?param1=value1¶m2=value2]`. In almost every case, the name of a particular parameter reflects its path in the config options interface, with a few exceptions. The following parameters are supported:
The client implements a connection via HTTP(s) protocol. RowBinary support is on track, see the [related issue](https://github.com/ClickHouse/clickhouse-js/issues/216).
186
187
187
-
The following example demonstrates how to set up a connection against ClickHouse Cloud. It assumes `host` (including
188
+
The following example demonstrates how to set up a connection against ClickHouse Cloud. It assumes `url` (including
188
189
protocol and port) and `password` values are specified via environment variables, and `default` user is used.
189
190
190
191
**Example:** Creating a Node.js Client instance using environment variables for configuration.
@@ -193,7 +194,7 @@ protocol and port) and `password` values are specified via environment variables
@@ -773,39 +777,47 @@ It's only that formats like [ClickHouse JSON](https://clickhouse.com/docs/en/sql
773
777
774
778
For Parquet, the main use case for selects likely will be writing the resulting stream into a file. See [the example](https://github.com/ClickHouse/clickhouse-js/blob/main/examples/node/select_parquet_as_file.ts) in the client repository.
775
779
780
+
`JSONEachRowWithProgress` is an output-only format that supports progress reporting in the stream. See [this example](https://github.com/ClickHouse/clickhouse-js/blob/main/examples/node/select_json_each_row_with_progress.ts) for more details.
781
+
776
782
The entire list of ClickHouse input and output formats is available
0 commit comments