Minor Changes
-
Added
createPostgresDatabase()with config-backed construction, connection-scoped migration locking, database wiping forremix db, andclose()for releasing an internally created pool. Existingpgpools and clients 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 orPGDATABASEinstead of guessingpostgres. Migration lock acquisition is bounded by a 60 secondlock_timeoutand fails with an error instead of waiting forever. 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
PostgresDatabaseAdapterandcreatePostgresDatabaseAdapter()from the public entry point. UsePostgresDatabaseandcreatePostgresDatabase()to get a complete PostgreSQL-backedDatabase;PostgresDatabaseAdapterOptionswas renamed toPostgresDatabaseOptions.
Patch Changes
-
Use bound parameters for compiled
limitandoffsetclauses. -
Bumped
@remix-run/*dependencies: