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 — and also under cubejs dev-server, the cubejs-dev-server bin, or the devServer option, which turn it on with the variable unset. It switches off JWT verification on the REST (JSON) and GraphQL APIs. 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 specifically, 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