MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _save_or_update_impl

Method _save_or_update_impl

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

Source from the content-addressed store, hash-verified

4353 self.dispatch.deleted_to_persistent(self, state)
4354
4355 def _save_or_update_impl(self, state: InstanceState[Any]) -> None:
4356 if state.key is None:
4357 self._save_impl(state)
4358 else:
4359 self._update_impl(state)
4360
4361 def enable_relationship_loading(self, obj: object) -> None:
4362 """Associate an object with this :class:`.Session` for related

Callers 1

_save_or_update_stateMethod · 0.95

Calls 2

_save_implMethod · 0.95
_update_implMethod · 0.95

Tested by

no test coverage detected