mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Recorder docs (#12961)
* Recorder docs * custom directory to postgres socket * fix indent * fix indent
This commit is contained in:
parent
b2f4d2803c
commit
3c05047c89
@ -155,7 +155,7 @@ Call the service `recorder.purge` to start a purge task which deletes events and
|
||||
## Custom database engines
|
||||
|
||||
| Database engine | `db_url` |
|
||||
| :--------------------- | :------------------------------------------------------------------------------------------- |
|
||||
| :----------------------------- | :------------------------------------------------------------------------------------------- |
|
||||
| SQLite | `sqlite:////PATH/TO/DB_NAME` |
|
||||
| MariaDB | `mysql+pymysql://SERVER_IP/DB_NAME?charset=utf8` |
|
||||
| MariaDB | `mysql+pymysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
||||
@ -165,6 +165,7 @@ Call the service `recorder.purge` to start a purge task which deletes events and
|
||||
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
||||
| PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` |
|
||||
| PostgreSQL (Socket) | `postgresql://@/DB_NAME` |
|
||||
| PostgreSQL (Custom socket dir) | `postgresql://@/DB_NAME?host=/path/to/dir` |
|
||||
| MS SQL Server | `mssql+pyodbc://username:password@SERVER_IP/DB_NAME?charset=utf8;DRIVER={DRIVER};Port=1433;` |
|
||||
|
||||
<div class='note'>
|
||||
|
Loading…
x
Reference in New Issue
Block a user