An entity framework for Go
Add the StorageKey option for edges.
Add a hook.Unless
function for hook package.
A few bug fixes for Postgres and default values.
2 options were added to the schema fields:
A few bug fixes and another option for getting the Mutation object of a builder. More info can be found in the PR.
Add Indexes/Edges/Hooks to ent.Mixin
, and also rename schema/schemautil
to schema/mixin
.
This means that if you upgrade to v0.2.0 and you used mixins before, you should do the following:
schemautil.TimeMixin
), you should replace the import path to be ent/schema/mixin
instead (and drop the Mixin suffix).mixin.Schema
in your struct instead of implementing the rest of the methods.Hooks and mutation layers were added to builders.
integration: update mysql8 version and remove test container integration: add pg and mysql test for customids (#342) doc: fix a doc error (#339) entc/gen: currently handle user-defined string ids (#338) dialect/sql/mysql: fix verifyrange check for mysql (#337) entc/gen: better formatted codegen for predicates (#336) dialect/sql/schema: setrange on custom column name of pks (#333) entc/gen: fix eager-loading for m2m edges (#335) ci: upgrade to mysql latest in integration (#331) dialect/sql/schema: support mysql latest numeric type format (#328) entc/gen: allow defining custom tag for id field (#330) dialect/sql/schema: verify and fix mysql auto-increment on reset (#329)