MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / items

Method items

lib/sqlalchemy/orm/identity.py:235–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 return o
234
235 def items(self) -> List[Tuple[_IdentityKeyType[Any], InstanceState[Any]]]:
236 values = self.all_states()
237 result = []
238 for state in values:
239 value = state.obj()
240 key = state.key
241 assert key is not None
242 if value is not None:
243 result.append((key, value))
244 return result
245
246 def values(self) -> List[object]:
247 values = self.all_states()

Callers 15

_setup_for_generateMethod · 0.45
_coerce_stratMethod · 0.45
_bulk_insertFunction · 0.45
_changed_dictFunction · 0.45
_bulk_updateFunction · 0.45
_get_resolved_valuesMethod · 0.45

Calls 2

all_statesMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected