@chkit/clickhouse 0.1.0-beta.18 → 0.1.0-beta.19

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
@@ -1,6 +1,6 @@
1
1
  import { type ChxConfig, type ColumnDefinition, type ProjectionDefinition, type SkipIndexDefinition } from '@chkit/core';
2
2
  export interface ClickHouseExecutor {
3
- execute(sql: string): Promise<void>;
3
+ command(sql: string): Promise<void>;
4
4
  query<T>(sql: string): Promise<T[]>;
5
5
  insert<T extends Record<string, unknown>>(params: {
6
6
  table: string;
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ export function createClickHouseExecutor(config) {
91
91
  },
92
92
  });
93
93
  return {
94
- async execute(sql) {
94
+ async command(sql) {
95
95
  try {
96
96
  await client.command({ query: sql, http_headers: { 'X-DDL': '1' } });
97
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkit/clickhouse",
3
- "version": "0.1.0-beta.18",
3
+ "version": "0.1.0-beta.19",
4
4
  "description": "ClickHouse client wrapper for chkit",
5
5
  "license": "MIT",
6
6
  "author": "ObsessionDB",
@@ -44,7 +44,7 @@
44
44
  "clean": "rm -rf dist"
45
45
  },
46
46
  "dependencies": {
47
- "@chkit/core": "0.1.0-beta.18",
47
+ "@chkit/core": "0.1.0-beta.19",
48
48
  "@clickhouse/client": "^1.11.0",
49
49
  "p-retry": "^7.1.1"
50
50
  }