Download Latest Version v0.41.1 source code.tar.gz (636.0 kB)
Email in envelope

Get an email when there's a new version of Bob

Home / v0.41.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-09-02 1.4 kB
v0.41.0 source code.tar.gz 2025-09-02 636.0 kB
v0.41.0 source code.zip 2025-09-02 830.0 kB
Totals: 3 Items   1.5 MB 0

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: https://github.com/stephenafamo/bob/compare/v0.40.2...v0.41.0

Source: README.md, updated 2025-09-02