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

Method _register_altered

lib/sqlalchemy/orm/session.py:3426–3432  ·  view source on GitHub ↗
(self, states: Iterable[InstanceState[Any]])

Source from the content-addressed store, hash-verified

3424 self._new.pop(state)
3425
3426 def _register_altered(self, states: Iterable[InstanceState[Any]]) -> None:
3427 if self._transaction:
3428 for state in states:
3429 if state in self._new:
3430 self._transaction._new[state] = True
3431 else:
3432 self._transaction._dirty[state] = True
3433
3434 def _remove_newly_deleted(
3435 self, states: Iterable[InstanceState[Any]]

Callers 2

_register_persistentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected