Skip to content

Commit 07670df

Browse files
committed
use native Array.reduce instead of Ramda
1 parent b27f83a commit 07670df

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/cubejs-base-driver/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@
3434
"@azure/identity": "^4.4.1",
3535
"@azure/storage-blob": "^12.9.0",
3636
"@cubejs-backend/shared": "^1.0.2",
37-
"@google-cloud/storage": "^7.13.0",
38-
"ramda": "^0.27.0"
37+
"@google-cloud/storage": "^7.13.0"
3938
},
4039
"devDependencies": {
4140
"@cubejs-backend/linter": "^1.0.0",
4241
"@types/jest": "^27",
43-
"@types/node": "^14",
44-
"@types/ramda": "^0.27.32",
42+
"@types/node": "^18",
4543
"jest": "^27",
4644
"typescript": "~5.2.2"
4745
},

packages/cubejs-base-driver/src/BaseDriver.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
isSslKey,
1515
isSslCert,
1616
} from '@cubejs-backend/shared';
17-
import { reduce } from 'ramda';
1817
import fs from 'fs';
1918
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
2019
import { S3, GetObjectCommand, S3ClientConfig } from '@aws-sdk/client-s3';
@@ -428,10 +427,10 @@ export abstract class BaseDriver implements DriverInterface {
428427
return sortByKeys(result);
429428
}
430429

431-
public tablesSchema() {
430+
public tablesSchema(): Promise<any> {
432431
const query = this.informationSchemaQuery();
433432

434-
return this.query(query).then(data => reduce(this.informationColumnsSchemaReducer, {}, data));
433+
return this.query(query, []).then(data => data.reduce(this.informationColumnsSchemaReducer, {}));
435434
}
436435

437436
// Extended version of tablesSchema containing primary and foreign keys

0 commit comments

Comments
 (0)