update to use sqlalchemy

- change from mysql-connector-python to sqlalchemy
    - allow for connection to sqlite3, mysql, mariadb, postgres, and
oracle databases
- change `DATE` columns to `DATETIME` type
- add WHO columns
- install database connectors and required packages
This commit is contained in:
ksyasuda
2024-09-06 02:14:12 -07:00
parent 497320c082
commit 1c0eb91333
8 changed files with 85 additions and 115 deletions

View File

@@ -10,10 +10,7 @@ Restart=on-failure
Environment="MPV_SOCKET=/tmp/mpvsocket"
Environment="LISTEN_ADDRESS=0.0.0.0"
Environment="LISTEN_PORT=42069"
Environment="MYSQL_HOST=http://localhost"
Environment="MYSQL_USER=mpvuser"
Environment="MYSQL_PASSWORD=SecretPassword"
Environment="MYSQL_PORT=3306"
Environment="DATABASE_URL=mysql+mysqldb://user:password@localhost:3306/mpv"
[Install]
WantedBy=multi-user.target