Refactored db logic. Can now specify schema in config

This commit is contained in:
Jonas Linter
2025-11-04 09:20:02 +01:00
parent e7b789fcac
commit eb10e070b1
6 changed files with 107 additions and 15 deletions

View File

@@ -3,7 +3,8 @@
database:
url: "sqlite+aiosqlite:///alpinebits.db" # For local dev, use SQLite. For prod, override with PostgreSQL URL.
# url: "postgresql://user:password@host:port/dbname" # Example for Postgres
# url: "postgresql+asyncpg://user:password@host:port/dbname" # Example for Postgres
# schema: "alpinebits" # Optional: PostgreSQL schema name (default: public)
# AlpineBits Python config
# Use annotatedyaml for secrets and environment-specific overrides