MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _add_unpresent

Method _add_unpresent

lib/sqlalchemy/orm/identity.py:91–96  ·  view source on GitHub ↗

optional inlined form of add() which can assume item isn't present in the map

(
        self, state: InstanceState[Any], key: _IdentityKeyType[Any]
    )

Source from the content-addressed store, hash-verified

89 raise NotImplementedError()
90
91 def _add_unpresent(
92 self, state: InstanceState[Any], key: _IdentityKeyType[Any]
93 ) -> None:
94 """optional inlined form of add() which can assume item isn't present
95 in the map"""
96 self.add(state)
97
98 def _manage_incoming_state(self, state: InstanceState[Any]) -> None:
99 state._instance_dict = self._wr

Callers 1

_instanceFunction · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected