> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/nodes/database.md).

# Database

Database components let your workflow work with data that already lives in your business systems.

Use them when you want to read records, look up information, or send workflow results back into a database.

## Available database connectors

Diaflow currently supports 6 database connectors:

* **Qdrant** — for vector search and AI knowledge retrieval.
* **MySQL** — for common business apps and operational data.
* **PostgreSQL** — for structured business data and custom applications.
* **Microsoft SQL** — for Microsoft-based business systems.
* **Microsoft Azure SQL Database** — for cloud-hosted SQL data on Azure.
* **Snowflake** — for cloud analytics and large-scale reporting data.

<figure><img src="/files/iWYmldR4W6EqymRttk8q" alt=""><figcaption></figcaption></figure>

## How to choose the right database

Start with where your data already lives.

* Choose **MySQL**, **PostgreSQL**, or **Microsoft SQL** for day-to-day application data.
* Choose **Snowflake** for reporting, analytics, and large data sets.
* Choose **Qdrant** when your workflow needs semantic search or AI retrieval.
* Choose **Microsoft Azure SQL Database** when your SQL data is managed in Azure.

If you are not sure, ask a technical owner which database your team already uses. That is usually the right starting point.

## Common business use cases

Teams often use database components to:

* find customer, order, or ticket data before the next step runs
* update records after an approval, form submission, or AI task
* combine database data with email, documents, or workflow outputs

## Detailed guides

Detailed setup guides are currently available for these 4 database connectors:

* [MySQL](/workflow-builder/nodes/database/mysql.md)
* [Microsoft SQL](/workflow-builder/nodes/database/microsoft-sql.md)
* [PostgreSQL](/workflow-builder/nodes/database/postgresql.md)
* [Snowflake](/workflow-builder/nodes/database/snowflake.md)

Open the connector that matches your system, then follow its setup steps.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.diaflow.io/workflow-builder/nodes/database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
