Enhancements
- Add
ecto.migrate
andecto.rollback
tasks, support--to
,--step
and--all
- Do not require Ecto URI schema to start with
ecto
- Allow
:on
with association joins on keywords syntax - Add Decimal support
- Add 'distinct' query expression
- Add
Validator.bin_dict/2
- Add
Ecto.Repo.rollback
for explicit transaction rollback - Add support for timeouts on Repo calls
- Add
:date
and:time
types
Bug fixes
- Fix association functions resetting the entity when manually loading associated entities
- Fix a bug where an association join's 'on' expression didn't use the bindings
Enum.count/1
on has_many associations shouldn't break
Deprecations
- Rename
Repo.create/1
toRepo.insert/1
Backwards incompatible changes
Ecto.Binary[]
is no longer used to wrap binary values. Instead always usebinary/1
in queries:list
type changed name to:array
. Need to specify inner type for arrays in entity fields- Literal lists no longer supported in queries. Need to specify inner type; use
array(list, ^:integer)
instead - Remove
url/0
for configuration of repos in favor ofconf/0
in conjunction withparse_url/1
- Query functions
date_add/1
anddate_sub/1
renamed totime_add/1
andtime_sub/1
respectively, they also accept the types:time
and:date