Skip to content

v0.41.0

Choose a tag to compare

@stephenafamo stephenafamo released this 02 Sep 11:18
· 484 commits to main since this release

Added

  • drivers/pgx.Pool now includes the methods Acquire and AcquireFunc which mirror the methods in pgx/v5/pgxpool to acquire a connection from the pool (thanks @Eyal-Shalev).
  • Added the drivers/pgx.PoolConn type which is a wrapper around pgx/v5/pgxpool.Conn.

Changed

  • Use the full column type and not just the datatype as the DBType in bobgen-mysql.
  • bob.Transactor is now a generic interface so that implementations can use a concrete transaction type.
  • The data types generated for SQLite now follow SQLite's type affinity rules more closely (excluding some common names). As a result, all integer types are now mapped to int64 and all floating point types are mapped to float64.

Fixed

  • Fixed an issue where bobgen-mysql could not detect unsigned integer columns in queries.
  • Properly close pgx transactions if the context used in BeginTx is cancelled.
  • Fix issues with generating code for relationships defined with WhereExpr.
  • Support uint64 type when scanning columns as types.Uint64. This fixes scanning BIGINT UNSIGNED MySQL columns as types.Uint64 when interpolateParams is enabled. (thanks @luiscleto)
  • Properly handle code generation tests for compound queries in MySQL.
  • Fix an issue where some ids are uppercased by the MySQL query code generator.

Full Changelog: v0.40.2...v0.41.0