Enhancements
- Support fragments in queries with the
fragment(...)
function - Interpolated values in queries are now automatically cast. For example,
from u in User, where: u.age > ^"10"
will automatically cast "10" to an integer. Failing to cast will trigger anEcto.CastError
preload
,lock
andorder_by
now allow dynamic values- Improve and relax type inference. Ecto no longer requires
array(array, type)
,binary(...)
and so on for interpolated values. In fact, the functions above have been removed
Backwards incompatible changes
:virtual
type no longer exists, instead passvirtual: true
as field option- Adapter API for
insert
,update
anddelete
has been simplified