github volatiletech/sqlboiler v4.16.0

latest releases: v4.17.1, v4.17.0, v4.16.2...
10 months ago

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

Don't miss a new sqlboiler release

NewReleases is sending notifications on new releases.