github elixir-ecto/ecto v0.11.0

latest releases: v3.11.2, v3.11.1, v3.11.0...
8 years ago

Enhancements

  • Add Ecto.Repo.get_by/3 and Ecto.Repo.get_by!/3
  • Add to_erl/from_erl to datetime modules
  • Add :scope option to Ecto.Changeset.validate_unique/2
  • Allow distinct(query, true) query expression
  • Effectively track dirty changes in Ecto.Changeset. If the value being sent as parameter is the same as the value in the model, it won't be sent to the Repo on insert/update

Deprecations

  • Deprecate nil as parameters in Ecto.Changeset.cast/4 in favor of :empty

Backwards incompatible changes

  • The pool size now defaults to 10 with no overflow. This will affect you if you were not explicitly setting those values in your pool configuration.
  • Ecto.Model now only imports from/2 from Ecto.Query out of the box
  • Ecto.Changeset.apply/1 was removed in favor of Ecto.Changeset.apply_changes/1

Don't miss a new ecto release

NewReleases is sending notifications on new releases.