Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/cubejs-doris-driver/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const fromExports = require('./dist/src');
const { DorisDriver } = require('./dist/src/DorisDriver');

/**
* After 5 years working with TypeScript, now I know
* that commonjs and nodejs require is not compatibility with using export default
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "compatibility" is misspelled as "not compatibility". It should be "is not compatible" to be grammatically correct.

Suggested change
* that commonjs and nodejs require is not compatibility with using export default
* that commonjs and nodejs require is not compatible with using export default

Copilot uses AI. Check for mistakes.
*/
const toExport = DorisDriver;

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

module.exports = toExport;
7 changes: 7 additions & 0 deletions packages/cubejs-doris-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
};
52 changes: 52 additions & 0 deletions packages/cubejs-doris-driver/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "@cubejs-backend/doris-driver",
"description": "Cube.js Apache Doris database driver",
"author": "Cube Dev, Inc.",
"version": "1.6.1",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
"directory": "packages/cubejs-doris-driver"
},
"engines": {
"node": "^14.0.0 || ^16.0.0 || >=17.0.0"
},
"files": [
"dist/src",
"index.js"
],
"main": "index.js",
"typings": "dist/src/index.d.ts",
"scripts": {
"build": "rm -rf dist && npm run tsc",
"tsc": "tsc",
"watch": "tsc -w",
"integration": "npm run integration:doris",
"integration:doris": "jest --verbose dist/test",
"lint": "eslint src/* test/* --ext .ts,.js",
"lint:fix": "eslint --fix src/* test/* --ext .ts,.js"
},
"dependencies": {
"@cubejs-backend/base-driver": "1.6.1",
"@cubejs-backend/shared": "1.6.1",
"generic-pool": "^3.9.0",
"mysql": "^2.18.1"
},
"devDependencies": {
"@cubejs-backend/linter": "1.6.1",
"@cubejs-backend/testing-shared": "1.6.1",
"@types/jest": "^29",
"@types/mysql": "^2.15.21",
"jest": "^29",
"stream-to-array": "^2.3.0",
"testcontainers": "^10.28.0",
"typescript": "~5.2.2"
},
"eslintConfig": {
"extends": "../cubejs-linter"
},
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
}
}
Loading