Skip to content

Commit

Permalink
fix(@cubejs-backend/athena-driver): Batching and export support (#4039)
Browse files Browse the repository at this point in the history
* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok

* ok
  • Loading branch information
cristipp committed Feb 9, 2022
1 parent 9d37eef commit 108f42a
Show file tree
Hide file tree
Showing 39 changed files with 2,188 additions and 157 deletions.
1 change: 1 addition & 0 deletions packages/cubejs-athena-driver/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
15 changes: 15 additions & 0 deletions packages/cubejs-athena-driver/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const fromExports = require('./dist/src');
const { AthenaDriver } = require('./dist/src/AthenaDriver');

/**
* After 5 years working with TypeScript, now I know
* that commonjs and nodejs require is not compatibility with using export default
*/
const toExport = AthenaDriver;

// eslint-disable-next-line no-restricted-syntax
for (const [key, module] of Object.entries(fromExports)) {
toExport[key] = module;
}

module.exports = toExport;
26 changes: 22 additions & 4 deletions packages/cubejs-athena-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,36 @@
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
},
"scripts": {
"lint": "eslint src/index.d.ts"
"build": "rm -rf dist && npm run tsc",
"tsc": "tsc",
"watch": "tsc -w",
"test": "yarn integration",
"integration": "jest --verbose dist/test",
"lint": "eslint src/* --ext .ts",
"lint:fix": "eslint --fix src/* --ext .ts"
},
"main": "src/AthenaDriver.ts",
"types": "src/index.d.ts",
"files": [
"dist/src",
"index.js"
],
"main": "index.js",
"types": "dist/src/index.d.ts",
"dependencies": {
"@aws-sdk/client-athena": "^3.22.0",
"@aws-sdk/client-s3": "^3.49.0",
"@aws-sdk/s3-request-presigner": "^3.49.0",
"@cubejs-backend/query-orchestrator": "^0.29.25",
"@cubejs-backend/shared": "^0.29.23",
"sqlstring": "^2.3.1"
},
"devDependencies": {
"@cubejs-backend/linter": "^0.29.23"
"@cubejs-backend/linter": "^0.29.23",
"@cubejs-backend/testing": "^0.29.24",
"@types/ramda": "^0.27.40",
"typescript": "~4.1.5"
},
"publishConfig": {
"access": "public"
},
"eslintConfig": {
"extends": "../cubejs-linter"
Expand Down

0 comments on commit 108f42a

Please sign in to comment.