Database - Home Assistant
https://www.home-assistant.io/docs/backend/databaseHome Assistant uses database to store events and parameters for history and tracking. The default database used is SQLite and the database file is stored in your configuration directory (e.g., <path to config dir>/home-assistant_v2.db); however, other databases can be used.If you prefer to run a database server (e.g., PostgreSQL), use the recorder component.
Recorder - Home Assistant
https://www.home-assistant.io/integrations/recorderHome Assistant uses SQLAlchemy, which is an Object Relational Mapper (ORM).This makes it possible to use a number of database solutions. The supported database solutions are: MariaDB ≥ 10.3; MySQL ≥ 8.0; PostgreSQL ≥ 12; SQLite ≥ 3.31.0; Although SQLAlchemy supports additional database solutions, it will behave differently on different databases, and features relied on by …