pg_utils.pg_model.base.map_PG_fields

pg_utils.pg_model.base.map_PG_fields(maps_from: CollectionPG, maps_to: CollectionPG) dict[source]

Create mapping from one CollectionPG object to another CollectionPG

Parameters:
  • maps_from – CollectionPG of fields to be mapped from

  • maps_to – CollectionPG of fields to be mapped to

Returns:

a dictionary