Fluent builder for event migration property transformations.
The builder produces the JMESPath-compatible JSON fragments Chronicle expects when registering event type migrations.
Summary
Functions
Combines multiple source properties into a target property.
Copies a property unchanged.
Copies a property from one name to another.
Sets a default value for a property.
Creates an empty migration builder.
Renames a property from source_property to target_property.
Alias for rename_property/3 with the target property first.
Splits a source property and maps one part to a target property.
Returns the builder as JSON.
Returns the builder as a map.
Types
Functions
@spec combine_properties(t(), [property_name()], property_name(), String.t()) :: t()
Combines multiple source properties into a target property.
@spec copy_property(t(), property_name()) :: t()
Copies a property unchanged.
Since Chronicle preserves unspecified properties automatically, the single argument form is a no-op that keeps pipeline code expressive.
@spec copy_property(t(), property_name(), property_name()) :: t()
Copies a property from one name to another.
@spec default_value(t(), property_name(), term()) :: t()
Sets a default value for a property.
@spec new() :: t()
Creates an empty migration builder.
@spec rename_property(t(), property_name(), property_name()) :: t()
Renames a property from source_property to target_property.
@spec renamed_from(t(), property_name(), property_name()) :: t()
Alias for rename_property/3 with the target property first.
@spec set_property(t(), property_name(), term()) :: t()
Alias for default_value/3.
@spec split_property( t(), property_name(), property_name(), String.t(), non_neg_integer() ) :: t()
Splits a source property and maps one part to a target property.
Returns the builder as JSON.
Returns the builder as a map.