feat(db): switch to MySQL via DB_* environment variables
database.py now reads DB_HOST/DB_PORT/DB_NAME/DB_USER/DB_PASSWORD from .env file (via python-dotenv) to build mysql+pymysql:// URL. Falls back to DATABASE_URL (SQLite) when DB_HOST is not set. conftest.py now uses the same MySQL engine as production instead of SQLite in-memory, ensuring tests validate against real MySQL. 42/42 core tests pass against MySQL. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
3 changed files
with
25 additions
and
16 deletions
-
Please register or sign in to post a comment