> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/~/changes/Q625pQNc0nXqVGPtyjAY/building-apps/integration/data-connectors/relational-database-wip.md).

# Relational database (WIP)

Here, you can create one or multiple database connections to already existing PostgreSQL databases.

See [Internal PostgreSQL](/~/changes/Q625pQNc0nXqVGPtyjAY/building-apps/data-and-file-storage/internal-postgresql.md) for a list of available functions after the connection has been established and a deeper explanation of relational databases.

## Connecting to the database

With the `create` function, you can create an instance for each new database you want to connect to. To do so, insert a name in the first field and fill the following information in the second field:

<table><thead><tr><th width="150">Parameter</th><th width="119">Type</th><th>Description</th></tr></thead><tbody><tr><td>dialect</td><td>String</td><td>The dialect of the database you are connecting to. One of mysql, postgres, sqlite, db2, mariadb and mssql.</td></tr><tr><td>database</td><td>String</td><td>The name of the database.</td></tr><tr><td>username</td><td>String</td><td>The username which is used to authenticate against the database.</td></tr><tr><td>host</td><td>String</td><td>The host of the database.</td></tr><tr><td>port</td><td>String</td><td>(optional) The port of the database. If not defined, the standard port is tried.</td></tr><tr><td>ssl</td><td>String</td><td>(default: <code>true</code>) A flag that defines if the connection should encrypted with ssl or not.</td></tr></tbody></table>

Fill the third field with the password for accessing the database.

After creating a connection to a database, you can use all the functions listed in [internal PostgreSQL](/~/changes/Q625pQNc0nXqVGPtyjAY/building-apps/data-and-file-storage/internal-postgresql.md).

## Deleting a database connection

Simply drag the `delete` function onto the board and insert the name of the instance, whose connection you want to delete.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.heisenware.com/~/changes/Q625pQNc0nXqVGPtyjAY/building-apps/integration/data-connectors/relational-database-wip.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
