It is a tiny parse transform.
License: MIT
Author: Uvarov Michael ([email protected])
Rec#rec{FieldName = FieldValue}
get_multi_field(K1, K2, K3, A) ->
#rec{K1 = V} = #rec{K2 = V} = A#rec{K3 = updated},
V.
get_nested_field(K1, A) ->
[#rec{K1 = V}] = A,
V.
It does not work with query comprehensions.