Ent Versions Save

An entity framework for Go

v0.2.5

3 years ago

v0.2.4

3 years ago

Schema changes

Add the StorageKey option for edges.

Codegen changes

Add a hook.Unless function for hook package.

Schema migration

A few bug fixes for Postgres and default values.

v0.2.3

3 years ago

Schema changes

2 options were added to the schema fields:

  • SchemaType - an option to override the default database-type used by ent. docs
  • GoType - an option to provide a custom Go type for fields. docs

Codegen

A few bug fixes and another option for getting the Mutation object of a builder. More info can be found in the PR.

v0.2.2

3 years ago

v0.2.1

4 years ago

v0.2.0

4 years ago

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:

  • If you use one of the mixins in schemautil (like schemautil.TimeMixin), you should replace the import path to be ent/schema/mixin instead (and drop the Mixin suffix).
  • If you use your own mixin, you should embed mixin.Schema in your struct instead of implementing the rest of the methods.

v0.1.5

4 years ago

v0.1.4

4 years ago

Hooks and mutation layers were added to builders.

v0.1.3

4 years ago

v0.1.2

4 years ago

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)