MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / generate_relationship

Function generate_relationship

lib/sqlalchemy/ext/automap.py:925–933  ·  view source on GitHub ↗
(
    base: Type[Any],
    direction: RelationshipDirection,
    return_fn: Callable[..., Relationship[Any]],
    attrname: str,
    local_cls: Type[Any],
    referred_cls: Type[Any],
    **kw: Any,
)

Source from the content-addressed store, hash-verified

923
924@overload
925def generate_relationship(
926 base: Type[Any],
927 direction: RelationshipDirection,
928 return_fn: Callable[..., Relationship[Any]],
929 attrname: str,
930 local_cls: Type[Any],
931 referred_cls: Type[Any],
932 **kw: Any,
933) -> Relationship[Any]: ...
934
935
936@overload

Callers 3

_gen_relationshipMethod · 0.90
_relationships_for_fksFunction · 0.85
_m2m_relationshipFunction · 0.85

Calls

no outgoing calls

Tested by 1

_gen_relationshipMethod · 0.72