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

Class AliasOption

lib/sqlalchemy/orm/query.py:3435–3452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3433
3434
3435class AliasOption(interfaces.LoaderOption):
3436 inherit_cache = False
3437
3438 @util.deprecated(
3439 "1.4",
3440 "The :class:`.AliasOption` object is not necessary "
3441 "for entities to be matched up to a query that is established "
3442 "via :meth:`.Query.from_statement` and now does nothing.",
3443 )
3444 def __init__(self, alias: Union[Alias, Subquery]):
3445 r"""Return a :class:`.MapperOption` that will indicate to the
3446 :class:`_query.Query`
3447 that the main table has been aliased.
3448
3449 """
3450
3451 def process_compile_state(self, compile_state: _ORMCompileState) -> None:
3452 pass
3453
3454
3455class BulkUD:

Callers 1

contains_aliasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected