v4.16.0
Added
- Add
Ordinal
function to enum types (thanks @EmiPhil) - Add ability to extend upsert expression with options (thanks @atzedus)
- Add support for different case style for different struct tags (thanks @c9s)
Changed
- Improve loads by using maps for deduplication (thanks @nicowolf91)
- Return all columns not in both insert and update columns when doing upsert (thanks @adsa95)
Fixed
- Composite foreign keys are now ignored to prevent generating invalid code (thanks @paulo-raca)
- Ignore cross-schema foreign keys to prevent invalid code gen (thanks @caleblloyd)
- Fix data race when registring hooks (thanks @nejtr0n)
- Fix types.JSON.MarshalJSON to handle nil values (thanks @agis)
- Properly quote column names in psql upsert (thanks @Flo4604)
- Use aliased field name for
LastInsertID
(thanks @motemen) - Fix panic with nil pointers in structs to bind (thanks @stephenafamo)
- Use
sync.Map
for unique columns to prevent concurrent write and read (thanks @Maxibond)
New Contributors
- @paulo-raca made their first contribution in #1299
- @nejtr0n made their first contribution in #1300
- @EmiPhil made their first contribution in #1305
- @caleblloyd made their first contribution in #1313
- @atzedus made their first contribution in #1316
- @Maxibond made their first contribution in #1327
- @motemen made their first contribution in #1328
- @nicowolf91 made their first contribution in #1337
- @Flo4604 made their first contribution in #1322
- @c9s made their first contribution in #1336
- @adsa95 made their first contribution in #1306
Full Changelog: v4.15.0...v4.16.0