adminforth 1.3.54-next.2 → 1.3.54-next.3
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.
|
@@ -265,6 +265,7 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
|
|
|
265
265
|
const tableName = resource.table;
|
|
266
266
|
const where = this.whereClause(resource, filters);
|
|
267
267
|
const d = this.whereParams(filters);
|
|
268
|
+
|
|
268
269
|
|
|
269
270
|
const countQ = await this.client.query({
|
|
270
271
|
query: `SELECT COUNT(*) FROM ${tableName} ${where}`,
|
|
@@ -272,6 +273,8 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
|
|
|
272
273
|
query_params: d,
|
|
273
274
|
});
|
|
274
275
|
const countResp = await countQ.json()
|
|
276
|
+
process.env.HEAVY_DEBUG && console.log('🪲🪲⏲️ Clickhouse COUNT', `SELECT COUNT(*) FROM ${tableName} ${where}`, d, 'resp', countResp);
|
|
277
|
+
|
|
275
278
|
return countResp[0]['COUNT()'];
|
|
276
279
|
}
|
|
277
280
|
|
|
@@ -252,6 +252,7 @@ class ClickhouseConnector extends AdminForthBaseConnector {
|
|
|
252
252
|
query_params: d,
|
|
253
253
|
});
|
|
254
254
|
const countResp = yield countQ.json();
|
|
255
|
+
process.env.HEAVY_DEBUG && console.log('🪲🪲⏲️ Clickhouse COUNT', `SELECT COUNT(*) FROM ${tableName} ${where}`, d, 'resp', countResp);
|
|
255
256
|
return countResp[0]['COUNT()'];
|
|
256
257
|
});
|
|
257
258
|
}
|