Sqlboiler Versions Save

Generate a Go ORM tailored to your database schema.

v4.16.2

2 months ago

Fixed

  • Replace rand.seed method to support golang 1.20 (thanks @pbr0ck3r)
  • Fix issue with invalid template generation on ignored struct tags (thanks @090809)

New Contributors

Full Changelog: https://github.com/volatiletech/sqlboiler/compare/v4.16.1...v4.16.2

v4.16.1

3 months ago

Fixed

  • Fix an issue caused in the last release where column names were double quoted (thanks @eirikbell)

New Contributors

Full Changelog: https://github.com/volatiletech/sqlboiler/compare/v4.16.0...v4.16.1

v4.16.0

3 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: https://github.com/volatiletech/sqlboiler/compare/v4.15.0...v4.16.0

v4.15.0

8 months ago

Added

  • Add LIKE and ILIKE Operators (thanks @jerrysalonen)
  • Allow defining foreign key relationships in config file (thanks @chrisngyn)

Fixed

  • Fix missing types import on non nullable char column in postgres driver (thanks @Ebbele)
  • Fix struct len check for columns whitelist and blacklist in sqlite driver (thanks @oscar-refacton)
  • Properly clean name before title casing (thanks @MJacred)
  • Fix parsing pgeo point in scientific notation format (thanks @zhongduo)
  • Downgrade decimal version before decompose interface (thanks @zhongduo)
  • Fix UPSERT query to respect conflict_target in postgres driver (thanks @agis)
  • Fix column type conversion in SQLite3 driver, specifically, columns with types such as FLOAT(2, 1) or TYNYINT(1) (thanks @Jumpaku)

See CHANGELOG.md for details. https://github.com/volatiletech/sqlboiler/compare/v4.14.2...v4.15.0

v4.14.2

1 year ago
  • Fix qm.WithDeleted helper with a custom soft delete column (thanks @lopezator)
  • Skipping empty values from the update list (thanks @bvigar)

See CHANGELOG.md for details.

v4.14.1

1 year ago
  • Fix composite key handling in sqlite3 driver (thanks @vortura).
  • Use correct executor for relationship test when no-context is true.

See CHANGELOG.md for details.

v4.14.0

1 year ago

See CHANGELOG.md for details.

  • Allow calling struct.Exists() without having to pass on PK fields (thanks @MJacred)
  • Stop using deprecated methods from io/ioutil (thanks @stefafafan)
  • Fixed correct hooks when loading relationships to-one (thanks @parnic)

v4.13.0

1 year ago

See CHANGELOG.md for details.

  • Generate IN/NIN whereHelpers for nullable types (thanks @fdegiuli)
  • Fixed concurrent map writes in psql driver (thanks @pavel-krush)
  • Force title case for enum null prefix (thanks @optiman)

v4.12.0

1 year ago

See CHANGELOG.md for details.

  • Fetch column and table info in parallel (thanks @pavel-krush)
  • Generate IN/NIN methods for enum type query helpers (thanks @optiman)
  • Improve psql performance by isolating uniqueness query (thanks @peterldowns)
  • Support for psql materialized view (thanks @severedsea)
  • Support loading model relationships when binding to a struct with an embedded model (thanks @optiman)

v4.11.0

1 year ago

See CHANGELOG.md for details.