MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_global_criteria

Method get_global_criteria

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

Source from the content-addressed store, hash-verified

1514 self.get_global_criteria(compile_state.global_attributes)
1515
1516 def get_global_criteria(self, attributes: Dict[Any, Any]) -> None:
1517 for mp in self._all_mappers():
1518 load_criteria = attributes.setdefault(
1519 ("additional_entity_criteria", mp), []
1520 )
1521
1522 load_criteria.append(self)
1523
1524
1525inspection._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