
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@starghost/doris-driver
Advanced tools
Apache Doris driver for Cube.js.
This driver has been tested with Apache Doris 2.0+ and is compatible with its MySQL protocol interface.
First install the package:
npm install --save @starghost/doris-driver
# or
yarn add @starghost/doris-driver
You can configure the driver by providing a set of connection options:
const CubejsServer = require('@cubejs-backend/server');
module.exports = new CubejsServer({
driverFactory: () => new DorisDriver({
host: process.env.CUBEJS_DB_HOST,
port: process.env.CUBEJS_DB_PORT,
user: process.env.CUBEJS_DB_USER,
password: process.env.CUBEJS_DB_PASS,
database: process.env.CUBEJS_DB_NAME,
// Optional: SSL configuration
ssl: process.env.CUBEJS_DB_SSL ? { rejectUnauthorized: false } : undefined,
})
});
This driver is available as a custom Cube.js Docker image that includes the Doris driver pre-installed and configured.
The repository includes a docker-compose.yml that sets up a complete environment with:
To use it:
# Build and start the environment
docker-compose up -d --build
# View logs
docker-compose logs -f
# Stop the environment
docker-compose down -v # Add -v to remove volumes
The included Dockerfile builds a custom Cube.js image with the Doris driver pre-installed. You can use this as a base for your own custom images:
FROM cubejs/cube:latest
# Install the Doris driver
RUN npm install -g @starghost/doris-driver
Or build from scratch using the provided Dockerfile:
# Build the image
docker build -t my-cubejs-doris .
# Run the container
docker run -p 4000:4000 -p 3000:3000 \
-e CUBEJS_DEV_MODE=true \
-e CUBEJS_DB_HOST=doris-host \
-e CUBEJS_DB_PORT=9030 \
-e CUBEJS_DB_NAME=test \
-e CUBEJS_DB_USER=root \
-e CUBEJS_DB_PASS= \
-e CUBEJS_API_SECRET=secret \
my-cubejs-doris
| Environment Variable | Description | Default Value |
|---|---|---|
| CUBEJS_DB_HOST | The host URL where your Doris database is running. | localhost |
| CUBEJS_DB_PORT | The port number to use for the connection. | 9030 |
| CUBEJS_DB_NAME | The name of the database to connect to. | null |
| CUBEJS_DB_USER | The username used to connect to the database. | null |
| CUBEJS_DB_PASS | The password used to connect to the database. | null |
| CUBEJS_DB_SSL | Whether to use SSL for the connection. | null |
The driver maps Cube.js types to Doris types as follows:
| Cube.js Type | Doris Type | Notes |
|---|---|---|
| string | VARCHAR(255) | Default string type |
| text | STRING | For longer text content |
| decimal | DECIMAL(38,10) | High precision decimal type |
| integer | INT | Standard integer type |
| smallint | SMALLINT | Small integer type |
| bigint | BIGINT | Large integer type |
| tinyint | TINYINT | Tiny integer type |
| boolean | BOOLEAN | Native boolean support |
| timestamp | DATETIME | For date and time values |
| binary | STRING | Binary data stored as string |
These limitations are inherent to Doris or specific to this driver implementation:
Table Name Length
Data Types
SQL Features
Time Functions
To run tests:
# Run all tests
yarn test
# Run unit tests only
yarn unit
# Run integration tests only
yarn integration
git checkout -b feature/my-new-feature)git commit -am 'Add some feature')git push origin feature/my-new-feature)Apache-2.0
FAQs
Cube.js Doris database driver
We found that @starghost/doris-driver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.