@transitive-sdk/clickhouse 0.6.1 → 0.6.2
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/index.js +2 -3
- package/package.json +1 -1
- package/test/clickhouse.test.js +1 -2
package/index.js
CHANGED
|
@@ -97,7 +97,7 @@ class ClickHouse {
|
|
|
97
97
|
},
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
await this._client.
|
|
100
|
+
await this._client.command({ query: 'SELECT 1' });
|
|
101
101
|
|
|
102
102
|
// start interval for batch insertion
|
|
103
103
|
setInterval(this.batchInsertCache.bind(this), interval);
|
|
@@ -138,7 +138,7 @@ class ClickHouse {
|
|
|
138
138
|
${settings.join(' ')}`;
|
|
139
139
|
|
|
140
140
|
try {
|
|
141
|
-
return await this.client.
|
|
141
|
+
return await this.client.command({
|
|
142
142
|
query,
|
|
143
143
|
clickhouse_settings: {
|
|
144
144
|
wait_end_of_query: 1,
|
|
@@ -489,7 +489,6 @@ class ClickHouse {
|
|
|
489
489
|
query: `SELECT name FROM system.users WHERE name = '${orgUser}'`,
|
|
490
490
|
format: 'JSONEachRow'
|
|
491
491
|
});
|
|
492
|
-
|
|
493
492
|
const users = await userExists.json();
|
|
494
493
|
|
|
495
494
|
if (users.length > 0) {
|
package/package.json
CHANGED
package/test/clickhouse.test.js
CHANGED
|
@@ -70,8 +70,7 @@ describe('ClickHouse', function() {
|
|
|
70
70
|
|
|
71
71
|
describe('basics', () => {
|
|
72
72
|
it('creates tables without crashing', async () => {
|
|
73
|
-
|
|
74
|
-
['text String']);
|
|
73
|
+
await clickhouse.createTable('test_tmp', ['text String']);
|
|
75
74
|
|
|
76
75
|
// clean up
|
|
77
76
|
await clickhouse.client.command({
|