All Versions
48
Latest Version
Avg Release Cycle
34 days
Latest Release
205 days ago

Changelog History
Page 2

  • v4.8.5 Changes

    January 28, 2022

    โž• Added

    • Do not generate a template file if the content is empty
    • โž• Add function drivers.RegisterBinaryFromCmdArg() to extract binary registration

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix panic on zero value of types.NullDecimal
    • driver.Value() for zero types.Decimal is now "0".
  • v4.8.4 Changes

    January 27, 2022

    โž• Added

    • โž• Add new --always-wrap-errors flag that does not unwrap sql.ErrNoRows so it can retain the stack trace. This supports the best practice of using errors.Is() anyway and will eventually become the default behavior in a breaking v5 (thanks @jhnj)
    • โž• Add support for * as a wildcard for white/blacklisting columns. See readme for details (thanks @Yoshiji)
    • โž• Add missing function func (modelQuery) UpdateAllGP(...) (thanks @MeanSquaredError)
    • โž• Add support for generated columns
    • โž• Add support for database views
    • โž• Add a _model suffix to the generated file for tables names that end with _test or _goos or _goarch since Go treats such files specially.
    • โž• Add C in front of model column attributes that begin with a number since a struct field cannot begin with a number in Go
    • Add sqlite3 driver to the main repo using the CGo-free port

    ๐Ÿ”„ Changes

    • Modify the --add-enum-types flag to also use the generated types in the model fields (thanks @optiman)
    • 0๏ธโƒฃ Mark nullable columns as having a default in Postgres driver
    • โฌ†๏ธ Bump MySQL version used for testing to 8.0

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix panic when a column referrring a foreign key is ignored (thanks @zapo)
    • ๐Ÿ›  Fix bug with using the zero value of the decimal type for a nullable column (thanks @hongshaoyang)
  • v4.8.3 Changes

    November 16, 2021

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bad use of titlecase in mysql enum name generation
  • v4.8.2 Changes

    November 16, 2021

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix regression in enum name generation
  • v4.8.1 Changes

    November 14, 2021

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix a regression in the soft delete test template generation introduced in 4.8.1
  • v4.8.0 Changes

    November 14, 2021

    โž• Added

    • โž• Add --add-enum-types to create distinct enum types instead of strings (thanks @stephenamo)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix a regression in soft delete generation introduced in 4.7.1 (thanks @stephenamo)
  • v4.7.1 Changes

    September 30, 2021

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Change template locations to templates/{main,test}. This unfortunate move is necessary to preserve old behavior.

    ๐Ÿ›  Fixed

    • โช Revert change to boilingcore.New() both in behavior and function signature
  • v4.7.0 Changes

    September 26, 2021

    โž• Added

    • โž• Add configuration for overriding custom timestamp column names (thanks @stephanafamo)
    • โž• Add support for arguments to order by (thanks @emwalker and @alexdor)
    • โž• Add support for comments to mysql (thanks @Wuvist)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix CVEs in transitive dependencies by bumping cobra & viper
    • ๐Ÿ›  Fix inconsistent generation of IsNull/IsNotNull where helpers for types that appear both as null and not null in the database.
    • JSON unmarshalling null into types.NullDecimal will no longer panic. String and format have been overridden to return "nil" when the underlying decimal is nil instead of crashing.

    โœ‚ Removed

    • โœ‚ Removed bindata in favor of go:embed. This is not a breaking change as there are no longer supported versions of Go that do not support go:embed.
  • v4.6.0 Changes

    June 06, 2021

    โž• 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.
  • v4.5.0 Changes

    March 14, 2021

    โž• 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)