Skip to content

featurebyte.Relationship.enable

enable( )

Description

Enables a Relationship object. A Relationship object of parent-child is automatically created when the primary key (or natural key in the context of a SCD table) identifies one entity. This entity is the child entity. Other entities that are referenced in the table are identified as the parent entities.

Examples

Enable a relationship

>>> import featurebyte as fb
>>> relationship = fb.Relationship.get_by_id(<relationship_id>)
>>> relationship.enable()