ecto v3.9.0 Release Notes
Release Date: 2022-09-27 // over 1 year ago-
✨ Enhancements
- [Ecto.Changeset] Add
:force_changes
option tocast/4
- [Ecto.Enum] Allow enum fields to be embed either as their values or their dumped versions
- [Ecto.Query] Support
^%{field: dynamic(...)}
inselect
andselect_merge
- [Ecto.Query] Support
%{field: subquery(...)}
inselect
andselect_merge
- [Ecto.Query] Support select aliases through
selected_as/1
andselected_as/2
- [Ecto.Query] Allow
parent_as/1
intype/2
- [Ecto.Query] Add
with_named_binding/3
- [Ecto.Query] Allow fragment sources in keyword queries
- [Ecto.Repo] Support
idle_interval
query parameter in connection URL - [Ecto.Repo] Log human-readable UUIDs by using pre-dumped query parameters
- [Ecto.Schema] Support preloading associations in embedded schemas
🐛 Bug fix
- [Ecto.Changeset] Raise when schemaless changeset or embedded schema is used in
unsafe_validate_unique/4
- [Ecto.Query] Respect virtual field type in subqueries
- [Ecto.Query] Don't select struct fields overridden with
nil
- [Ecto.Query] Fix
select_merge
not trackingload_in_query: false
field - [Ecto.Query] Fix field source when used in
json_extract_path
- [Ecto.Query] Properly build CTEs at compile time
- [Ecto.Query] Properly order subqueries in
dynamic
- [Ecto.Repo] Fix
insert_all
query parameter count when using value queries alongsideplaceholder
- [Ecto.Repo] Raise if combination query is used in a
many
preload - [Ecto.Schema] Ignore associations that aren't loaded on insert
- [Ecto.Changeset] Add