Skip to main content
QuestDB is a high-performance time-series database which helps you overcome ingestion bottlenecks.
The driver for QuestDB is supported by its vendor. Please report any issues to their Slack.

Prerequisites

  • The hostname for the QuestDB database server
    • If QuestDB is not running, checkout the QuestDB quick start
  • Docker (optional)

Setup

Docker

Create a dockerfile within the project directory:
docker-compose.yml
Within your project directory, create an .env file:
Finally, bring it all up with Docker:
shell
Access Cube at http://localhost:4000 & QuestDB at http://localhost:9000
Development mode is an authentication bypass. Cube is in development mode when CUBEJS_DEV_MODE=true — which, under the cubejs CLI and the official Docker images, also forces NODE_ENV=development and so switches off JWT verification on the REST (JSON) and GraphQL APIs — and whenever NODE_ENV is not production. Playground’s endpoints are served with no authentication too: anyone who can reach the instance is handed a ready-to-use API token, can mint others carrying any security context, can read your data model files, and can overwrite your data model and your .env. With CUBEJS_DEV_MODE=true and no CUBEJS_SQL_PASSWORD set, the SQL API accepts any credentials as well, allowing arbitrary SQL against connected data sources. Use it only on a local development machine, never in production. See CUBEJS_DEV_MODE.

Environment Variables