Minor Changes
-
Added
createMysqlDatabase()with config-backed construction, connection-scoped migration locking, database wiping forremix db, andclose()for releasing an internally created pool. Existingmysql2pools and connections remain supported for applications that own the driver lifecycle, but wiping requires config-backed construction (see #11608, #11639).wipe()throws when no database name can be resolved from the connection config instead of guessing one. Failed migration runs and failed transaction startup destroy the reserved connection instead of returning a dirty session to the pool, and nested lock acquisition throws instead of deadlocking.BREAKING CHANGE: Removed
MysqlDatabaseAdapterandcreateMysqlDatabaseAdapter()from the public entry point. UseMysqlDatabaseandcreateMysqlDatabase()to get a complete MySQL-backedDatabase;MysqlDatabaseAdapterOptionswas renamed toMysqlDatabaseOptions.
Patch Changes
-
Use bound parameters for compiled
limitandoffsetclauses. -
Bumped
@remix-run/*dependencies: