Name | Modified | Size | Downloads / 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 methodsAcquire
andAcquireFunc
which mirror the methods inpgx/v5/pgxpool
to acquire a connection from the pool (thanks @Eyal-Shalev).- Added the
drivers/pgx.PoolConn
type which is a wrapper aroundpgx/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 tofloat64
.
Fixed
- Fixed an issue where
bobgen-mysql
could not detect unsigned integer columns in queries. - Properly close
pgx
transactions if the context used inBeginTx
is cancelled. - Fix issues with generating code for relationships defined with
WhereExpr
. - Support
uint64
type when scanning columns astypes.Uint64
. This fixes scanningBIGINT UNSIGNED
MySQL columns astypes.Uint64
wheninterpolateParams
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