> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QuestDB

This is the implementation of the QuestDB data handler for MindsDB.

[QuestDB](https://questdb.io/) is a columnar time-series database with high performance ingestion and SQL analytics. It is open-source and available on the cloud.

## Prerequisites

Before proceeding, ensure the following prerequisites are met:

1. Install MindsDB locally via [Docker](/setup/self-hosted/docker) or [Docker Desktop](/setup/self-hosted/docker-desktop).
2. To connect QuestDB to MindsDB, install the required dependencies following [this instruction](/setup/self-hosted/docker#install-dependencies).
3. Install or ensure access to QuestDB.

## Implementation

This handler is implemented by extending the PostgreSQL data handler.

The required arguments to establish a connection are as follows:

* `user` is the database user.
* `password` is the database password.
* `host` is the host name, IP address, or URL.
* `port` is the port used to make TCP/IP connection.
* `database` is the database name.
* `public` stores a value of `True` or `False`. Defaults to `True` if left blank.

## Usage

In order to make use of this handler and connect to the QuestDB server in MindsDB, the following syntax can be used:

```sql theme={null}
CREATE DATABASE questdb_datasource
WITH
  ENGINE = 'questdb',
  PARAMETERS = {
    "host": "127.0.0.1",
    "port": 8812,
    "database": "qdb",
    "user": "admin",
    "password": "password"
  };
```

You can use this established connection to query your table as follows:

```sql theme={null}
SELECT *
FROM questdb_datasource.demo_table
LIMIT 10;
```
