Skip to content

v4.16.0

Compare
Choose a tag to compare
@stephenafamo stephenafamo released this 16 Jan 20:52
· 50 commits to master since this release

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

Full Changelog: v4.15.0...v4.16.0