pg_utils.pg_model.base.map_collection
- pg_utils.pg_model.base.map_collection(maps_from: LabeledCollection, maps_to: LabeledCollection) dict [source]
Construct mapping from one Collection object to another Collection
- Parameters:
maps_from (LabeledCollection) – Collection of fields to be mapped from
maps_to (LabeledCollection) – Collection of fields to be mapped to
- Returns:
a dictionary of the map