MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / contains_alias

Function contains_alias

lib/sqlalchemy/orm/_orm_constructors.py:90–96  ·  view source on GitHub ↗

r"""Return a :class:`.MapperOption` that will indicate to the :class:`_query.Query` that the main table has been aliased.

(alias: Union[Alias, Subquery])

Source from the content-addressed store, hash-verified

88 enable_warnings=False, # AliasOption itself warns
89)
90def contains_alias(alias: Union[Alias, Subquery]) -> AliasOption:
91 r"""Return a :class:`.MapperOption` that will indicate to the
92 :class:`_query.Query`
93 that the main table has been aliased.
94
95 """
96 return AliasOption(alias)
97
98
99def mapped_column(

Callers 1

goMethod · 0.90

Calls 1

AliasOptionClass · 0.85

Tested by 1

goMethod · 0.72