MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / append_without_event

Method append_without_event

lib/sqlalchemy/orm/collections.py:526–531  ·  view source on GitHub ↗

Add or restore an entity to the collection, firing no events.

(self, item: Any)

Source from the content-addressed store, hash-verified

524 )
525
526 def append_without_event(self, item: Any) -> None:
527 """Add or restore an entity to the collection, firing no events."""
528
529 if self.empty:
530 self._refuse_empty()
531 self._data()._sa_appender(item, _sa_initiator=False)
532
533 def append_multiple_without_event(self, items: Iterable[Any]) -> None:
534 """Add or restore an entity to the collection, firing no events."""

Callers 6

mergeMethod · 0.80
set_committed_valueMethod · 0.80
_test_adapterMethod · 0.80
_test_empty_initMethod · 0.80

Calls 2

_refuse_emptyMethod · 0.95
_sa_appenderMethod · 0.80

Tested by 4

_test_adapterMethod · 0.64
_test_empty_initMethod · 0.64