@clickhouse/client 1.19.0 → 1.20.0-head.5423b05.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,4 +4,34 @@ export { type NodeClickHouseClientConfigOptions as ClickHouseClientConfigOptions
4
4
  export { ResultSet, type StreamReadable } from './result_set';
5
5
  export { drainStream } from './connection/stream';
6
6
  /** Re-export @clickhouse/client-common types */
7
- export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, type ResponseHeaders, ClickHouseError, parseError, ClickHouseLogLevel, SettingsMap, SupportedJSONFormats, SupportedRawFormats, StreamableFormats, StreamableJSONFormats, SingleDocumentJSONFormats, RecordsJSONFormats, type SimpleColumnType, type ParsedColumnSimple, type ParsedColumnEnum, type ParsedColumnFixedString, type ParsedColumnNullable, type ParsedColumnDecimal, type ParsedColumnDateTime, type ParsedColumnDateTime64, type ParsedColumnArray, type ParsedColumnTuple, type ParsedColumnMap, type ParsedColumnType, parseColumnType, SimpleColumnTypes, type ProgressRow, isProgressRow, isRow, isException, type RowOrProgress, type ClickHouseAuth, type ClickHouseJWTAuth, type ClickHouseCredentialsAuth, TupleParam, } from '@clickhouse/client-common';
7
+ export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, type ResponseHeaders, type SimpleColumnType, type ParsedColumnSimple, type ParsedColumnEnum, type ParsedColumnFixedString, type ParsedColumnNullable, type ParsedColumnDecimal, type ParsedColumnDateTime, type ParsedColumnDateTime64, type ParsedColumnArray, type ParsedColumnTuple, type ParsedColumnMap, type ParsedColumnType, type ProgressRow, type RowOrProgress, type ClickHouseAuth, type ClickHouseJWTAuth, type ClickHouseCredentialsAuth, } from '@clickhouse/client-common';
8
+ /**
9
+ * Re-export @clickhouse/client-common runtime values.
10
+ *
11
+ * These are intentionally re-exported through local bindings (rather than a direct
12
+ * `export { ... } from '@clickhouse/client-common'`) so that the `@deprecated` JSDoc tags
13
+ * applied to them in `@clickhouse/client-common` are NOT propagated to consumers of this package.
14
+ * Importing these values from `@clickhouse/client` is the recommended, non-deprecated path.
15
+ */
16
+ import { ClickHouseError as ClickHouseError_, parseError as parseError_, ClickHouseLogLevel as ClickHouseLogLevel_, SettingsMap as SettingsMap_, parseColumnType as parseColumnType_, isProgressRow as isProgressRow_, isRow as isRow_, isException as isException_, TupleParam as TupleParam_ } from '@clickhouse/client-common';
17
+ export declare const ClickHouseError: typeof ClickHouseError_;
18
+ export type ClickHouseError = ClickHouseError_;
19
+ export declare const parseError: typeof parseError_;
20
+ export declare const ClickHouseLogLevel: typeof ClickHouseLogLevel_;
21
+ export type ClickHouseLogLevel = ClickHouseLogLevel_;
22
+ export declare const SettingsMap: typeof SettingsMap_;
23
+ export type SettingsMap = SettingsMap_;
24
+ export declare const SupportedJSONFormats: readonly ["JSONObjectEachRow", "JSON", "JSONStrings", "JSONCompact", "JSONCompactStrings", "JSONColumnsWithMetadata", "JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress"];
25
+ export declare const SupportedRawFormats: readonly ["CSV", "CSVWithNames", "CSVWithNamesAndTypes", "TabSeparated", "TabSeparatedRaw", "TabSeparatedWithNames", "TabSeparatedWithNamesAndTypes", "CustomSeparated", "CustomSeparatedWithNames", "CustomSeparatedWithNamesAndTypes", "Parquet"];
26
+ export declare const StreamableFormats: readonly ["JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress", "CSV", "CSVWithNames", "CSVWithNamesAndTypes", "TabSeparated", "TabSeparatedRaw", "TabSeparatedWithNames", "TabSeparatedWithNamesAndTypes", "CustomSeparated", "CustomSeparatedWithNames", "CustomSeparatedWithNamesAndTypes", "Parquet"];
27
+ export declare const StreamableJSONFormats: readonly ["JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress"];
28
+ export declare const SingleDocumentJSONFormats: readonly ["JSON", "JSONStrings", "JSONCompact", "JSONCompactStrings", "JSONColumnsWithMetadata"];
29
+ export declare const RecordsJSONFormats: readonly ["JSONObjectEachRow"];
30
+ export declare const parseColumnType: typeof parseColumnType_;
31
+ export declare const SimpleColumnTypes: readonly ["Bool", "UInt8", "Int8", "UInt16", "Int16", "UInt32", "Int32", "UInt64", "Int64", "UInt128", "Int128", "UInt256", "Int256", "Float32", "Float64", "String", "UUID", "Date", "Date32", "IPv4", "IPv6"];
32
+ export declare const isProgressRow: typeof isProgressRow_;
33
+ export declare const isRow: typeof isRow_;
34
+ export declare const isException: typeof isException_;
35
+ export declare const TupleParam: typeof TupleParam_;
36
+ export type TupleParam = TupleParam_;
37
+ export declare const defaultJSONHandling: import("@clickhouse/client-common").JSONHandling;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TupleParam = exports.isException = exports.isRow = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.RecordsJSONFormats = exports.SingleDocumentJSONFormats = exports.StreamableJSONFormats = exports.StreamableFormats = exports.SupportedRawFormats = exports.SupportedJSONFormats = exports.SettingsMap = exports.ClickHouseLogLevel = exports.parseError = exports.ClickHouseError = exports.drainStream = exports.ResultSet = exports.createClient = exports.ClickHouseClient = void 0;
3
+ exports.defaultJSONHandling = exports.TupleParam = exports.isException = exports.isRow = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.RecordsJSONFormats = exports.SingleDocumentJSONFormats = exports.StreamableJSONFormats = exports.StreamableFormats = exports.SupportedRawFormats = exports.SupportedJSONFormats = exports.SettingsMap = exports.ClickHouseLogLevel = exports.parseError = exports.ClickHouseError = exports.drainStream = exports.ResultSet = exports.createClient = exports.ClickHouseClient = void 0;
4
4
  var client_1 = require("./client");
5
5
  Object.defineProperty(exports, "ClickHouseClient", { enumerable: true, get: function () { return client_1.NodeClickHouseClient; } });
6
6
  var client_2 = require("./client");
@@ -9,22 +9,30 @@ var result_set_1 = require("./result_set");
9
9
  Object.defineProperty(exports, "ResultSet", { enumerable: true, get: function () { return result_set_1.ResultSet; } });
10
10
  var stream_1 = require("./connection/stream");
11
11
  Object.defineProperty(exports, "drainStream", { enumerable: true, get: function () { return stream_1.drainStream; } });
12
- /** Re-export @clickhouse/client-common types */
13
- var client_common_1 = require("@clickhouse/client-common");
14
- Object.defineProperty(exports, "ClickHouseError", { enumerable: true, get: function () { return client_common_1.ClickHouseError; } });
15
- Object.defineProperty(exports, "parseError", { enumerable: true, get: function () { return client_common_1.parseError; } });
16
- Object.defineProperty(exports, "ClickHouseLogLevel", { enumerable: true, get: function () { return client_common_1.ClickHouseLogLevel; } });
17
- Object.defineProperty(exports, "SettingsMap", { enumerable: true, get: function () { return client_common_1.SettingsMap; } });
18
- Object.defineProperty(exports, "SupportedJSONFormats", { enumerable: true, get: function () { return client_common_1.SupportedJSONFormats; } });
19
- Object.defineProperty(exports, "SupportedRawFormats", { enumerable: true, get: function () { return client_common_1.SupportedRawFormats; } });
20
- Object.defineProperty(exports, "StreamableFormats", { enumerable: true, get: function () { return client_common_1.StreamableFormats; } });
21
- Object.defineProperty(exports, "StreamableJSONFormats", { enumerable: true, get: function () { return client_common_1.StreamableJSONFormats; } });
22
- Object.defineProperty(exports, "SingleDocumentJSONFormats", { enumerable: true, get: function () { return client_common_1.SingleDocumentJSONFormats; } });
23
- Object.defineProperty(exports, "RecordsJSONFormats", { enumerable: true, get: function () { return client_common_1.RecordsJSONFormats; } });
24
- Object.defineProperty(exports, "parseColumnType", { enumerable: true, get: function () { return client_common_1.parseColumnType; } });
25
- Object.defineProperty(exports, "SimpleColumnTypes", { enumerable: true, get: function () { return client_common_1.SimpleColumnTypes; } });
26
- Object.defineProperty(exports, "isProgressRow", { enumerable: true, get: function () { return client_common_1.isProgressRow; } });
27
- Object.defineProperty(exports, "isRow", { enumerable: true, get: function () { return client_common_1.isRow; } });
28
- Object.defineProperty(exports, "isException", { enumerable: true, get: function () { return client_common_1.isException; } });
29
- Object.defineProperty(exports, "TupleParam", { enumerable: true, get: function () { return client_common_1.TupleParam; } });
12
+ /**
13
+ * Re-export @clickhouse/client-common runtime values.
14
+ *
15
+ * These are intentionally re-exported through local bindings (rather than a direct
16
+ * `export { ... } from '@clickhouse/client-common'`) so that the `@deprecated` JSDoc tags
17
+ * applied to them in `@clickhouse/client-common` are NOT propagated to consumers of this package.
18
+ * Importing these values from `@clickhouse/client` is the recommended, non-deprecated path.
19
+ */
20
+ const client_common_1 = require("@clickhouse/client-common");
21
+ exports.ClickHouseError = client_common_1.ClickHouseError;
22
+ exports.parseError = client_common_1.parseError;
23
+ exports.ClickHouseLogLevel = client_common_1.ClickHouseLogLevel;
24
+ exports.SettingsMap = client_common_1.SettingsMap;
25
+ exports.SupportedJSONFormats = client_common_1.SupportedJSONFormats;
26
+ exports.SupportedRawFormats = client_common_1.SupportedRawFormats;
27
+ exports.StreamableFormats = client_common_1.StreamableFormats;
28
+ exports.StreamableJSONFormats = client_common_1.StreamableJSONFormats;
29
+ exports.SingleDocumentJSONFormats = client_common_1.SingleDocumentJSONFormats;
30
+ exports.RecordsJSONFormats = client_common_1.RecordsJSONFormats;
31
+ exports.parseColumnType = client_common_1.parseColumnType;
32
+ exports.SimpleColumnTypes = client_common_1.SimpleColumnTypes;
33
+ exports.isProgressRow = client_common_1.isProgressRow;
34
+ exports.isRow = client_common_1.isRow;
35
+ exports.isException = client_common_1.isException;
36
+ exports.TupleParam = client_common_1.TupleParam;
37
+ exports.defaultJSONHandling = client_common_1.defaultJSONHandling;
30
38
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAGiB;AAFf,0GAAA,oBAAoB,OAAoB;AAG1C,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAA6D;AAApD,uGAAA,SAAS,OAAA;AAClB,8CAAiD;AAAxC,qGAAA,WAAW,OAAA;AAEpB,gDAAgD;AAChD,2DA+DkC;AAjChC,gHAAA,eAAe,OAAA;AACf,2GAAA,UAAU,OAAA;AACV,mHAAA,kBAAkB,OAAA;AAClB,4GAAA,WAAW,OAAA;AACX,qHAAA,oBAAoB,OAAA;AACpB,oHAAA,mBAAmB,OAAA;AACnB,kHAAA,iBAAiB,OAAA;AACjB,sHAAA,qBAAqB,OAAA;AACrB,0HAAA,yBAAyB,OAAA;AACzB,mHAAA,kBAAkB,OAAA;AAalB,gHAAA,eAAe,OAAA;AACf,kHAAA,iBAAiB,OAAA;AAEjB,8GAAA,aAAa,OAAA;AACb,sGAAA,KAAK,OAAA;AACL,4GAAA,WAAW,OAAA;AAKX,2GAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAGiB;AAFf,0GAAA,oBAAoB,OAAoB;AAG1C,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAA6D;AAApD,uGAAA,SAAS,OAAA;AAClB,8CAAiD;AAAxC,qGAAA,WAAW,OAAA;AAoDpB;;;;;;;GAOG;AACH,6DAkBkC;AAErB,QAAA,eAAe,GAAG,+BAAgB,CAAA;AAElC,QAAA,UAAU,GAAG,0BAAW,CAAA;AACxB,QAAA,kBAAkB,GAAG,kCAAmB,CAAA;AAExC,QAAA,WAAW,GAAG,2BAAY,CAAA;AAE1B,QAAA,oBAAoB,GAAG,oCAAqB,CAAA;AAC5C,QAAA,mBAAmB,GAAG,mCAAoB,CAAA;AAC1C,QAAA,iBAAiB,GAAG,iCAAkB,CAAA;AACtC,QAAA,qBAAqB,GAAG,qCAAsB,CAAA;AAC9C,QAAA,yBAAyB,GAAG,yCAA0B,CAAA;AACtD,QAAA,kBAAkB,GAAG,kCAAmB,CAAA;AACxC,QAAA,eAAe,GAAG,+BAAgB,CAAA;AAClC,QAAA,iBAAiB,GAAG,iCAAkB,CAAA;AACtC,QAAA,aAAa,GAAG,6BAAc,CAAA;AAC9B,QAAA,KAAK,GAAG,qBAAM,CAAA;AACd,QAAA,WAAW,GAAG,2BAAY,CAAA;AAC1B,QAAA,UAAU,GAAG,0BAAW,CAAA;AAExB,QAAA,mBAAmB,GAAG,mCAAoB,CAAA"}
@@ -20,6 +20,12 @@ export interface ResultSetOptions<Format extends DataFormat> {
20
20
  jsonHandling?: JSONHandling;
21
21
  }
22
22
  export declare class ResultSet<Format extends DataFormat | unknown> implements BaseResultSet<Stream.Readable, Format> {
23
+ /**
24
+ * The stream of the response body.
25
+ *
26
+ * It is expected that the stream is passed directly from the response of the HTTP request
27
+ * and has not been consumed or altered yet.
28
+ */
23
29
  private _stream;
24
30
  private readonly format;
25
31
  readonly query_id: string;
@@ -27,7 +33,16 @@ export declare class ResultSet<Format extends DataFormat | unknown> implements B
27
33
  private readonly exceptionTag;
28
34
  private readonly log_error;
29
35
  private readonly jsonHandling;
30
- constructor(_stream: Stream.Readable, format: Format, query_id: string, log_error?: (error: Error) => void, _response_headers?: ResponseHeaders, jsonHandling?: JSONHandling);
36
+ private _consumed;
37
+ constructor(
38
+ /**
39
+ * The stream of the response body.
40
+ *
41
+ * It is expected that the stream is passed directly from the response of the HTTP request
42
+ * and has not been consumed or altered yet.
43
+ */
44
+ _stream: Stream.Readable, format: Format, query_id: string, log_error?: (error: Error) => void, _response_headers?: ResponseHeaders, jsonHandling?: JSONHandling);
45
+ private consume;
31
46
  /** See {@link BaseResultSet.text}. */
32
47
  text(): Promise<string>;
33
48
  /** See {@link BaseResultSet.json}. */
@@ -48,7 +48,15 @@ class ResultSet {
48
48
  exceptionTag = undefined;
49
49
  log_error;
50
50
  jsonHandling;
51
- constructor(_stream, format, query_id, log_error, _response_headers, jsonHandling) {
51
+ _consumed = false;
52
+ constructor(
53
+ /**
54
+ * The stream of the response body.
55
+ *
56
+ * It is expected that the stream is passed directly from the response of the HTTP request
57
+ * and has not been consumed or altered yet.
58
+ */
59
+ _stream, format, query_id, log_error, _response_headers, jsonHandling) {
52
60
  this._stream = _stream;
53
61
  this.format = format;
54
62
  this.query_id = query_id;
@@ -63,21 +71,25 @@ class ResultSet {
63
71
  this.exceptionTag = _response_headers[client_common_1.EXCEPTION_TAG_HEADER_NAME];
64
72
  }
65
73
  }
74
+ consume() {
75
+ if (this._consumed) {
76
+ throw new Error(streamAlreadyConsumedMessage);
77
+ }
78
+ this._consumed = true;
79
+ return this._stream;
80
+ }
66
81
  /** See {@link BaseResultSet.text}. */
67
82
  async text() {
68
- if (this._stream.readableEnded) {
69
- throw Error(streamAlreadyConsumedMessage);
70
- }
71
- return (await (0, utils_1.getAsText)(this._stream)).toString();
83
+ return await (0, utils_1.getAsText)(this.consume());
72
84
  }
73
85
  /** See {@link BaseResultSet.json}. */
74
86
  async json() {
75
- if (this._stream.readableEnded) {
76
- throw Error(streamAlreadyConsumedMessage);
77
- }
78
87
  // JSONEachRow, etc.
79
88
  if ((0, client_common_2.isStreamableJSONFamily)(this.format)) {
80
89
  const result = [];
90
+ // Using the stream() instead of _stream directly to leverage the existing logic
91
+ // for handling incomplete chunks and exception tags.
92
+ // TODO: consider using stream() for all formats to unify the logic and error handling.
81
93
  const stream = this.stream();
82
94
  for await (const rows of stream) {
83
95
  for (const row of rows) {
@@ -88,7 +100,7 @@ class ResultSet {
88
100
  }
89
101
  // JSON, JSONObjectEachRow, etc.
90
102
  if ((0, client_common_2.isNotStreamableJSONFamily)(this.format)) {
91
- const text = await (0, utils_1.getAsText)(this._stream);
103
+ const text = await (0, utils_1.getAsText)(this.consume());
92
104
  return this.jsonHandling.parse(text);
93
105
  }
94
106
  // should not be called for CSV, etc.
@@ -96,12 +108,6 @@ class ResultSet {
96
108
  }
97
109
  /** See {@link BaseResultSet.stream}. */
98
110
  stream() {
99
- // If the underlying stream has already ended by calling `text` or `json`,
100
- // Stream.pipeline will create a new empty stream
101
- // but without "readableEnded" flag set to true
102
- if (this._stream.readableEnded) {
103
- throw Error(streamAlreadyConsumedMessage);
104
- }
105
111
  (0, client_common_2.validateStreamFormat)(this.format);
106
112
  const incompleteChunks = [];
107
113
  const logError = this.log_error;
@@ -155,7 +161,7 @@ class ResultSet {
155
161
  autoDestroy: true,
156
162
  objectMode: true,
157
163
  });
158
- const pipeline = stream_1.default.pipeline(this._stream, toRows, function pipelineCb(err) {
164
+ const pipeline = stream_1.default.pipeline(this.consume(), toRows, function pipelineCb(err) {
159
165
  if (err &&
160
166
  err.name !== 'AbortError' &&
161
167
  err.message !== resultSetClosedMessage) {
@@ -1 +1 @@
1
- {"version":3,"file":"result_set.js","sourceRoot":"","sources":["../src/result_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,EACR,SAAS,EACT,gBAAgB,EAChB,YAAY,CACb,CAAA;IACH,CAAC;CACF;AA/LD,8BA+LC;AAED,MAAM,4BAA4B,GAAG,kCAAkC,CAAA;AACvE,MAAM,sBAAsB,GAAG,2BAA2B,CAAA"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.19.0";
1
+ declare const _default: "1.20.0-head.5423b05.1";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.19.0';
3
+ exports.default = '1.20.0-head.5423b05.1';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,uBAAuB,CAAA"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@clickhouse/client",
3
3
  "description": "Official JS client for ClickHouse DB - Node.js implementation",
4
4
  "homepage": "https://clickhouse.com",
5
- "version": "1.19.0",
5
+ "version": "1.20.0-head.5423b05.1",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "clickhouse",
@@ -44,7 +44,7 @@
44
44
  "build": "rm -rf dist; tsc"
45
45
  },
46
46
  "dependencies": {
47
- "@clickhouse/client-common": "1.19.0"
47
+ "@clickhouse/client-common": "1.20.0-head.5423b05.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "simdjson": "^0.9.2"