feat: add PostgreSQL persistence and unified sync endpoint

- Add sqlx with PostgreSQL support for database operations
- Create DbService with artist/album upsert and listing methods
- Add database schema (14 tables) in containers/init.sql
- Add library controller (GET /api/library/artists, /albums, /stats)
- Merge sync_artist + ingest into single POST /api/sync endpoint
- Support configurable sync: download (bool), store (bool), album filter
- Connect to database at startup with graceful fallback
This commit is contained in:
Alexander
2026-04-29 10:06:01 +02:00
parent 3aaeade4d3
commit f24543f401
12 changed files with 1590 additions and 84 deletions
Generated
+841 -8
View File
File diff suppressed because it is too large Load Diff