Ent Versions Save

An entity framework for Go

v0.5.3

3 years ago

v0.5.3 is a small release for fixing schema annotations when they are defined both in mixin.Schema and ent.Schema.

v0.5.2

3 years ago

We release this version although it's quite small, in order to provide a stable version for supporting JSON fields migration in MariaDB.

entql

  • Add support for driver.Valuer in typed predicates

dialect/sql/schema

  • Support JSON fields migration for MariaDB

Misc

  • Small changes and improvements for the runtime code

v0.5.1

3 years ago

cmd/ent

  • Replace entc to ent - #989

dialect/entsql

  • Add support for table options in ent/schema (#925)
  • Add Size annotation (#947)

dialect/sql/sqlgraph

  • Improve perf for UpadteMany operations.

dialect/sql/schema

  • Add support for PostgreSQL net types
  • Allow migrations from integer columns to string

v0.5.0

3 years ago

This version contains multiple bug fixes and perf improvements, but also includes a major feature which is the privacy support and additional small features for ent/schema and code-generation.

schema

dialect/sql/schema

  • Add the WithForeighKeys option to migrate
  • Properly handle indexes of tables with uncountable name (#828)
  • Apply size-check only if it is defined in schema (#855)

dialect/sql/sqljson

  • Initial work for json_contains predicate

dialect/sql

  • Add Left/Right join for the SQL builder

entc/gen:

  • Add gen.Template for ent extensions
  • Rename generated FirstXID to FirstIDX
  • Add hook.FixedError helper

entc/internal

  • Add feature-flag support for code-generation (allow opt-in to specific features)
  • Support schema versioning (#852)

v0.4.3

3 years ago

entc/gen (codegen)

  • Add an option for clearing non-unique edges.
  • Add validators on group-by and order-by arguments.
  • Add templates for supporting custom predicates in codegen (#758).
  • Improve API for custom templates (add an option for passing template.FuncMap for template execution).

dialect/sql

  • Add an experiment package for supporting JSON predicates at runtime named sqljson. In the future, JSON predicates will be added to the generated predicates.

schema migration

  • Change the WithFixture default value to be false. It's likely to be removed in the upcoming versions. Users that migrate from v0.0.1, directly to v0.4.3, should pass WithFixture(true) on migration.

misc

v0.4.2

3 years ago

Small release with a few bug fixes and the following schema changes:

ent/schema

  • Added support for setting default values for fields with a custom GoType.
  • The Enum.NamedValues method was added to replace Enum.ValueMap.

v0.4.0

3 years ago

The repository was migrated from facebookincubator to facebook organization.

v0.3.0

3 years ago

This version includes multiple bug fixes, changes in ent/schema, the generated-code and the database migration.

Schema changes

  • Add schema annotations support for fields and edges. This API allows to attach metadata to fields and edges and inject them to external templates. More info can be found in the docs.
  • Add GoType support for enum fields. This change makes it possible to share the same enum type between multiple schemas.
  • Add the Unique option to UUID fields.

Codegen changes

  • Add an API for creating bulk of entities. More info can be found in the docs.
  • Add the fail function to template functions.
  • Import codegen out (makes goimports faster).

Migration changes

  • Fix default value option to enum fields.
  • Change ent_types table id type to uint64 (from int).

v0.2.7

3 years ago

Codegen changes

The OnlyXID method was renamed to OnlyIDX (breaking changes).

v0.2.6

3 years ago

Ent changes:

  • Add OldField to the ent.Mutation interface

Schema changes:

  • Add the Unique option to UUID fields

SQL runtime changes:

  • Minor bug fixes: #561, #587, etc
  • Initial work for batch inserts

Codegen changes:

  • Official release for transaction hooks
  • Add singular finishers for querying primitives, e.g: .String(), .Int(), etc
  • Add condition helpers foe generated hooks
  • Add option to extend existing templates: #583