Skip to content

Releases: volatiletech/sqlboiler

v4.17.1

11 Nov 11:03
Compare
Choose a tag to compare

Fixed

  • Update the version constant to prevent inaccurate warnings about the version mismatch

Full Changelog: v4.17.0...v4.17.1

v4.17.0

10 Nov 11:49
Compare
Choose a tag to compare

Changes

Added

  • Add MySQL unix socket support (thanks @c9s)
  • Implement (Un-)marshalText for Decimal and NullDecimal (thanks @MJacred)
  • Add version checking flags to make sure CLI and project runtime versions are the same (thanks @090809)
  • Add SIMILAR TO method for Postgres (thanks @090809)
  • Skip code generation for replaced enum types using the flag --skip-replaced-enum-types (thanks @MJacred)

Fixed

  • Fix compilation errors with TIMESTAMP columns in sqlite3 driver (thanks @hirasawayuki)
  • Fix issue scanning column_full_type when column_type is NULL (thanks @mattdbush)
  • Fix performance issue with DeleteAll by using a WHERE IN instead of WHERE OR (thanks @jakeiotechsys)
  • Use renamed created column in Update method (thanks @glerchundi)
  • Fix comment position in first column of table (thanks @hizzuu)
  • Count from subquery if query uses HAVING or GROUP BY. This is because aggregate functions are run for each group separately, but we need to return the count of returned rows. (thanks @renom)
  • Fix output filenames that contain a forward slash or backslash. Replace with an underscore (thanks @MJacred)

New Contributors

Full Changelog: v4.16.2...v4.17.0

v4.16.2

12 Feb 20:20
Compare
Choose a tag to compare

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: v4.16.1...v4.16.2

v4.16.1

20 Jan 21:24
Compare
Choose a tag to compare

Fixed

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

New Contributors

Full Changelog: v4.16.0...v4.16.1

v4.16.0

16 Jan 20:52
Compare
Choose a tag to compare

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

v4.15.0

18 Aug 16:13
Compare
Choose a tag to compare

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.
v4.14.2...v4.15.0

v4.14.2

21 Mar 12:24
Compare
Choose a tag to compare
  • 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

31 Jan 20:20
Compare
Choose a tag to compare
  • 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

14 Dec 17:45
Compare
Choose a tag to compare

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

28 Aug 20:24
Compare
Choose a tag to compare

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)