Skip to content

Releases: aarondl/sqlboiler

v4.19.5

27 Jun 05:44
Compare
Choose a tag to compare

Ensure (again), that main.go:version is up to date. Apologies for the noise everyone!

v4.19.4

26 Jun 20:10
Compare
Choose a tag to compare
  • Fix a bug related to the old import paths where go.mod could not be found to locate templates.
  • Correct license copyright holder

v4.19.3

26 Jun 18:44
Compare
Choose a tag to compare

Update main.go's version number to be consistent with tag

v4.19.2

26 Jun 06:05
Compare
Choose a tag to compare

Update import paths

v4.19.1

20 May 11:40
Compare
Choose a tag to compare

Fixed

  • Fix performance issue in v4.19.0 by reverting the cleanup of unused imports.
  • Updated minimum required Go version to 1.23.
  • Updated dependencies to fix CVEs.

Full Changelog: v4.19.0...v4.19.1

v4.19.0

09 May 08:00
Compare
Choose a tag to compare

Added

  • Add relation getters on base model structs. (thanks @parnic)
  • Added --no-relation-getters option to prevent generation relation getters on the main structs. (thanks @parnic)
  • Add Query, Exec, and Bind helpers to the global executor. (thanks @parnic)
    • BindGP
    • QueryRowG
    • QueryRowContextG
    • ExecG
    • ExecGP
    • QueryG
    • QueryGP
    • ExecContextG
    • ExecContextP
    • ExecContextGP
    • QueryContextG
    • QueryContextP
    • QueryContextGP

Fixed

  • Fix count from subquery on postgresql. (thanks @renom)
  • Cleanup unused imports after code generation. (thanks @eklatzer)
  • Fix InsertWhitelist test in composite primary key table. (thanks @benevolent0505)

New Contributors

Full Changelog: v4.18.0...v4.19.0

v4.18.0

03 Jan 16:05
Compare
Choose a tag to compare

Added

  • Added --no-schema option scaffolding. (thanks @morganhein)

Fixed

  • Revert change to DeleteAll method. The change causes incorrect changes on tables with multi-column primary keys

New Contributors

Full Changelog: v4.17.1...v4.18.0

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