# Database

Settings for the database of operational data, e.g. processes, metadata, persisted session summaries, and so on.

## Configuration

{% tabs %}
{% tab title="JSON" %}

```
{
   "db": {
      "dir": "./config"
   },
}
```

{% endtab %}

{% tab title="ENV" %}

```
CORE_DB_DIR="./config"
```

{% endtab %}
{% endtabs %}

### dir (string)

Directory for holding the operational data. The path is relative to where the binary is executed and the directory must exist.

The default value is `./config`


---

# Agent Instructions: 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.datarhei.com/core/configuration/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.
