SQLBoiler v4.6.0 Release Notes

Release Date: 2021-06-06 // 5 months ago
  • โž• Added

    • โž• Add models.TableColumns.MODELNAME which has the table.column name, useful for custom printf style queries (thanks @sadayuki-matsuno)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix limit 0 queries (no longer omits limit clause) (thanks @longngn)
    • ๐Ÿ›  Fix ordering issue when doing where clause on deleted_at and also trying to query for deleted_at
    • ๐Ÿ›  Fix filename generation for tables that begin with _
    • โž• Add MarshalJSON implementation to NullDecimal to fix marshalling this type when nil.
    • ๐Ÿ›  Fix issue with Go 1.16 compatibility for mssql driver by bumping mssql version (thanks @stefkampen)
    • ๐Ÿ›  Fix Remove set operations for to-many relationships error when passing in nil or empty arrays of related models, it's now a no-op.

Previous changes from v4.5.0

  • โž• Added

    • โž• Add new query mod WithDeleted to sidestep soft deletes in queries that support query mods (note there still is no way to do this for exists/find operations, see #854 for details)
    • โž• Add select hooks to the Find() methods, this was an accidental omission in previous versions (thanks @jakecoffman)

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Change go-bindata to v3.22.0
    • ๐Ÿ”„ Change datetimeoffset and uniqueidentifier types in mssql this is a breaking change if you are using these types, but at least in the case of uniquedidentifier it was not possible to use without this change (thanks @severedsea)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix unnecessary copies in JSON type which improves performance (thanks @bouk)
    • ๐Ÿ›  Fix inclusion of foreign key constraints that target generated pg columns (thanks @chochihim)
    • ๐Ÿ›  Fix generation failure bug in delete template when using --no-context --add-global-variants and --add-soft-deletes
    • ๐Ÿ›  Fix cross-schema psql enum generation bug (thanks @csueiras)
    • ๐Ÿ›  Fix bug where column alias was not respected in Load names (thanks @jalan)
    • ๐Ÿ›  Fix bug with large uint64 values in eager loading (thanks @maku693)