feat(config): add database configuration layer with backend detection

Add AppConfig loaded from .env via dotenvy. DATABASE_URL prefix
determines the backend (sqlite:// → SQLite, postgresql:// → PostgreSQL).
ConfigError via thiserror gives clear messages on missing or unknown URLs.
Server logs the chosen backend at startup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 19:44:55 +02:00
parent 18134d6f4b
commit b6d1e22d25
7 changed files with 141 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
/target
.env
data/