All Versions
48
Latest Version
Avg Release Cycle
34 days
Latest Release
205 days ago
Changelog History
Page 2
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 zerotypes.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)
- โ Add
-
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.
- โ Add
-
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)