Repository navigation
v0.41.0
Added
drivers/pgx.Poolnow includes the methodsAcquireandAcquireFuncwhich mirror the methods inpgx/v5/pgxpoolto acquire a connection from the pool (thanks @Eyal-Shalev).- Added the
drivers/pgx.PoolConntype which is a wrapper aroundpgx/v5/pgxpool.Conn.
Changed
- Use the full column type and not just the datatype as the
DBTypein bobgen-mysql. bob.Transactoris 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
int64and all floating point types are mapped tofloat64.
Fixed
- Fixed an issue where
bobgen-mysqlcould not detect unsigned integer columns in queries. - Properly close
pgxtransactions if the context used inBeginTxis cancelled. - Fix issues with generating code for relationships defined with
WhereExpr. - Support
uint64type when scanning columns astypes.Uint64. This fixes scanningBIGINT UNSIGNEDMySQL columns astypes.Uint64wheninterpolateParamsis 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