mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
The previous implementation incorrectly checked if MYSQL_URL was a SQLite URL using parseDefinitelySqliteUrl(). This fix properly checks the protocol of environment URLs to determine the correct adapter: - mysql://, mariadb://, mysqls:// → mysql adapter - postgres://, postgresql:// → postgres adapter - SQLite URLs (detected by parseDefinitelySqliteUrl) → sqlite adapter Added tests to verify MYSQL_URL and POSTGRES_URL environment variables correctly infer their respective adapters and that precedence is respected. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>