@transitive-sdk/clickhouse 0.5.1 → 0.5.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 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -269,8 +269,8 @@ class ClickHouse {
|
|
|
269
269
|
|
|
270
270
|
/** Add the given rows to the cache for batch-insertion to the given table */
|
|
271
271
|
addToCache(table, rows) {
|
|
272
|
-
this.rowCache[
|
|
273
|
-
this.rowCache[
|
|
272
|
+
this.rowCache[table] ||= [];
|
|
273
|
+
this.rowCache[table].push(...rows);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/** Function responsible fgor inserting all cached rows */
|
package/package.json
CHANGED