v1.0.0-rc.3
Breaking Changes📦 drizzle-ormView on GitHub →
⚠ 1 breaking✨ 3 features🐛 2 fixes🔧 4 symbols
Summary
This release ports PostgreSQL changes to the MySQL dialect, including RQBv1 removal, internal session refactoring, and enabling optimized mappers. It also fixes issues with MySQL proxy driver response handling.
⚠️ Breaking Changes
- Removed RQBv1 from `mysql` dialect (`._query`). Users relying on RQBv1 for MySQL queries must adapt to RQBv2 or standard query methods.
Migration Steps
- If using RQBv1 for MySQL queries via `._query`, update code to use RQBv2 or standard query methods.
✨ New Features
- Internal MySQL sessions refactoring to use a unified query preparation function.
- Enabled optimized non-jit mappers for regular queries in the MySQL dialect.
- Switched RQBv2 to array mode querying for MySQL, disabling root query level JSON conversions.
🐛 Bug Fixes
- Fixed MySQL proxy driver not correctly using `lastInsertId` and `affectedRows` from dedicated response fields.
- Fallback to regular queries on iterators implemented for drivers that do not support streaming, preventing errors.