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,lockandorder_bynow 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
:virtualtype no longer exists, instead passvirtual: trueas field option- Adapter API for
insert,updateanddeletehas been simplified