@clickhouse/client-web 1.3.0 → 1.4.0

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/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DataFormat, InputJSON, InputJSONObjectEachRow, InsertParams, InsertResult, IsSame, QueryParamsWithFormat } from '@clickhouse/client-common';
1
+ import type { DataFormat, ExecParams, ExecResult, InputJSON, InputJSONObjectEachRow, InsertParams, InsertResult, IsSame, QueryParamsWithFormat } from '@clickhouse/client-common';
2
2
  import { ClickHouseClient } from '@clickhouse/client-common';
3
3
  import type { WebClickHouseClientConfigOptions } from './config';
4
4
  import type { ResultSet } from './result_set';
@@ -6,7 +6,7 @@ import type { ResultSet } from './result_set';
6
6
  * allowing to call all methods with all data shapes variants,
7
7
  * and avoiding generated types that include all possible DataFormat literal values. */
8
8
  export type QueryResult<Format extends DataFormat> = IsSame<Format, DataFormat> extends true ? ResultSet<unknown> : ResultSet<Format>;
9
- export type WebClickHouseClient = Omit<WebClickHouseClientImpl, 'insert'> & {
9
+ export type WebClickHouseClient = Omit<WebClickHouseClientImpl, 'insert' | 'exec'> & {
10
10
  /** See {@link ClickHouseClient.insert}.
11
11
  *
12
12
  * ReadableStream is removed from possible insert values
@@ -14,6 +14,10 @@ export type WebClickHouseClient = Omit<WebClickHouseClientImpl, 'insert'> & {
14
14
  insert<T>(params: Omit<InsertParams<ReadableStream, T>, 'values'> & {
15
15
  values: ReadonlyArray<T> | InputJSON<T> | InputJSONObjectEachRow<T>;
16
16
  }): Promise<InsertResult>;
17
+ /** See {@link ClickHouseClient.exec}.
18
+ *
19
+ * Custom values are currently not supported in the web versions. */
20
+ exec(params: ExecParams): Promise<ExecResult<ReadableStream>>;
17
21
  };
18
22
  declare class WebClickHouseClientImpl extends ClickHouseClient<ReadableStream> {
19
23
  /** See {@link ClickHouseClient.query}. */
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../packages/client-web/src/client.ts"],"names":[],"mappings":";;;AASA,6DAA4D;AAE5D,qCAAkC;AAuBlC,MAAM,uBAAwB,SAAQ,gCAAgC;IACpE,0CAA0C;IAC1C,KAAK,CACH,MAAqC;QAErC,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,CAA+B,CAAA;IAC1D,CAAC;CACF;AAED,SAAgB,YAAY,CAC1B,MAAyC;IAEzC,OAAO,IAAI,uBAAuB,CAAC;QACjC,IAAI,EAAE,gBAAO;QACb,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC;KAClB,CAAC,CAAA;AACJ,CAAC;AAPD,oCAOC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../packages/client-web/src/client.ts"],"names":[],"mappings":";;;AAWA,6DAA4D;AAE5D,qCAAkC;AA8BlC,MAAM,uBAAwB,SAAQ,gCAAgC;IACpE,0CAA0C;IAC1C,KAAK,CACH,MAAqC;QAErC,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,CAA+B,CAAA;IAC1D,CAAC;CACF;AAED,SAAgB,YAAY,CAC1B,MAAyC;IAEzC,OAAO,IAAI,uBAAuB,CAAC;QACjC,IAAI,EAAE,gBAAO;QACb,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC;KAClB,CAAC,CAAA;AACJ,CAAC;AAPD,oCAOC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.3.0";
1
+ declare const _default: "1.4.0";
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.3.0';
3
+ exports.default = '1.4.0';
4
4
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@clickhouse/client-web",
3
3
  "description": "Official JS client for ClickHouse DB - Web API implementation",
4
4
  "homepage": "https://clickhouse.com",
5
- "version": "1.3.0",
5
+ "version": "1.4.0",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "clickhouse",
@@ -20,6 +20,6 @@
20
20
  "dist"
21
21
  ],
22
22
  "dependencies": {
23
- "@clickhouse/client-common": "1.3.0"
23
+ "@clickhouse/client-common": "1.4.0"
24
24
  }
25
25
  }