MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / memo

Method memo

lib/sqlalchemy/orm/unitofwork.py:232–237  ·  view source on GitHub ↗
(self, key, callable_)

Source from the content-addressed store, hash-verified

230 return state in self.states and self.states[state][0]
231
232 def memo(self, key, callable_):
233 if key in self.attributes:
234 return self.attributes[key]
235 else:
236 self.attributes[key] = ret = callable_()
237 return ret
238
239 def remove_state_actions(self, state):
240 """Remove pending actions for a state from the uowtransaction."""

Callers 4

presort_savesMethod · 0.45
process_deletesMethod · 0.45
_key_switchersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected