MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _contains_state

Method _contains_state

lib/sqlalchemy/orm/session.py:4476–4477  ·  view source on GitHub ↗
(self, state: InstanceState[Any])

Source from the content-addressed store, hash-verified

4474 )
4475
4476 def _contains_state(self, state: InstanceState[Any]) -> bool:
4477 return state in self._new or self.identity_map.contains_state(state)
4478
4479 def flush(self, objects: Optional[Sequence[Any]] = None) -> None:
4480 """Flush all the object changes to the database.

Callers 6

__contains__Method · 0.95
_synchronizeMethod · 0.80
_synchronizeMethod · 0.80
appendFunction · 0.80
set_Function · 0.80
register_objectMethod · 0.80

Calls 1

contains_stateMethod · 0.45

Tested by

no test coverage detected