ent

An entity framework for Go

APACHE-2.0 License

Stars
15.1K
Committers
224

Bot releases are visible (Hide)

ent - v0.2.5

Published by a8m over 4 years ago

ent - v0.2.4

Published by a8m over 4 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.

ent - v0.2.3

Published by a8m over 4 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.

ent - v0.2.2

Published by a8m over 4 years ago

ent - v0.2.1

Published by a8m over 4 years ago

ent - v0.2.0

Published by a8m over 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.
ent - v0.1.5

Published by a8m over 4 years ago

ent - v0.1.4

Published by a8m over 4 years ago

Hooks and mutation layers were added to builders.

ent - v0.1.3

Published by a8m over 4 years ago

ent - v0.1.2

Published by a8m over 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)

ent - v0.1.1

Published by a8m over 4 years ago

#286 addressed the issue that described in #285.

Although, this PR was heavily tested internally before it was merged, we suggest that if you upgrade an older version of ent, run migration with offline mode before, to make sure it goes smoothly.

ent - v0.1.0

Published by a8m over 4 years ago

Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Twitter Discord
Related Projects