I think cast_types name may be not a good fit here, as it is ambiguous. Based on name, I'd expect a list of ecto types instead of types of the lower level.
I was suggesting param_types name just because it is used by Postgrex.Query.
Once again, the desired data in metadata is these type identifiers [Postgrex.Extensions.UUID, Postgrex.Extensions.JSONB], not primitive ecto types.
My view is biased, as it is focused on postgres and I don't know
whether such info about types is available if myxql/tds is used.
I see in docs, that param_types is not in the list of public fields. Actually, Postgrex.Extensions.* modules are not documented as well.
Seems like this is not that easy as I was thinking :/
середа, 11 жовтня 2023 р. о 16:38:13 UTC+3 José Valim пише: