# Stores

Configuration documentations for all available stores in Pyot.

Each store is configured at pipeline definition, the configurable values of stores are the params in the `__init__` definition of each store. For example if a store can take `host` and `db` in the `__init__` method, it can be configured in the pipeline like this:

```python
    # ... Other stores
    {
        "backend": "pyot.stores.x.y",
        "host": "somehost",
        "db": "somedb"
    }
```

There are a few configurable values that exists across multiple stores, they will be documented here.

* `log_level`: `int = 0`

  > Used in all stores. Defines the log level of the logger used in the store, these uses the level specified in the [Python logging facilities](https://docs.python.org/3/library/logging.html#logging-levels), along with an extra level `0` which completely ignores the logging process. Defaults to `0`.
* `expirations`: `Dict[int, int | float | timedelta] = None`

  > Used in cache stores. Detailed documentations in **Pipeline > Expirations**.
* `error_handler`: `Dict[int, Tuple[int]] = None`

  > Used in services stores. Detailed documentations in **Pipeline > Handler**.


---

# 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://pyot.iann838.com/stores.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.
