> 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/app-builder/build-backend/functions/storage.md).

# Storage

The storage category contains the classes that persist and manage your App data. Heisenware includes two internal databases (PostgreSQL and InfluxDB) to store data automatically. These same classes also connect to external database servers.

## Relational storage

Use the [Relational database](/app-builder/build-backend/functions/storage/relational-database.md) class for structured data such as user profiles, orders, or inventory.

Every account includes a pre-configured instance named `internal-postgres`. It runs a managed PostgreSQL database, letting you drag database functions onto the canvas to store data immediately.

To connect an existing SQL server instead (PostgreSQL, MySQL, MariaDB, MSSQL, or SQLite), open the Function Explorer, select the relational database class, and call its `create` function. Enter your connection details to generate a new, standalone database instance.

## Timeseries storage

Use the [Timeseries database](/app-builder/build-backend/functions/storage/timeseries-database.md) class for high-frequency data such as sensor readings or machine telemetry.

Every account includes a managed InfluxDB instance named `internal-influx`. To populate it, attach a [recorder extension node](/app-builder/build-backend/extension-nodes/recorder.md) to any function output to store every value with no configuration. Use the timeseries database functions to read and query this recorded data.

To connect an external InfluxDB server instead, open the Function Explorer, select the timeseries database class, and call its `create` function to generate a new instance.

## In-memory storage

For temporary data that lives only during a session and does not save to disk, use these lightweight classes:

* [Data store](/app-builder/build-backend/functions/storage/data-store.md): Simple state management.
* [Circular buffer](/app-builder/build-backend/functions/storage/circular-buffer.md): Rolling data, such as the last 100 values for a live chart.


---

# 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/app-builder/build-backend/functions/storage.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.
