8000 Release v0.7.0 · ent/ent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.7.0

Compare
Choose a tag to compare
@a8m a8m released this 11 Mar 18:45
· 1246 commits to master since this release
36e3492

This release contains 1 major feature, small improvements and bug fixes to ent codegen and its runtime, and an experimental integration with protobuf.

Global

Code Generation

  • The generated ent.IsConstraintError function catches now FK constraint violations (#1316) - Thanks @rotemtam
  • The edge.Annotation provides a way to override the struct-tag for the Edges field in generated models. #1315 changes the implementation to extend the struct-tag and override the default JSON tag only if it was provided by the annotation.

Schema

  • Add support for DefaultFunc in user-defined PKs (#1290)
  • Add support for MySQL spatial types in migration and add example for it - a8m/entspatial

Contrib

  • OSS entproto. An experimental package for generating .proto files from ent/schema.

CLI

  • ent init now creates a `generate.go file that matches Go 1.16 (#1300) - Thanks @uta-mori

Thanks @kercylan98, @HarikiRito, @SogoCZE, @wenj91 for reporting issues and being involved in the project.

0