> 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/eYCCpn9cCBKOYnZA6a8f/building-apps/data-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/eYCCpn9cCBKOYnZA6a8f/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/eYCCpn9cCBKOYnZA6a8f/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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
