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

Method get_global_criteria

lib/sqlalchemy/orm/util.py:1498–1504  ·  view source on GitHub ↗
(self, attributes: Dict[Any, Any])

Source from the content-addressed store, hash-verified

1496 self.get_global_criteria(compile_state.global_attributes)
1497
1498 def get_global_criteria(self, attributes: Dict[Any, Any]) -> None:
1499 for mp in self._all_mappers():
1500 load_criteria = attributes.setdefault(
1501 ("additional_entity_criteria", mp), []
1502 )
1503
1504 load_criteria.append(self)
1505
1506
1507inspection._inspects(AliasedClass)(lambda target: target._aliased_insp)

Callers 1

process_compile_stateMethod · 0.95

Calls 3

_all_mappersMethod · 0.95
setdefaultMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected