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

Method remove_with_event

lib/sqlalchemy/orm/collections.py:544–548  ·  view source on GitHub ↗

Remove an entity from the collection, firing mutation events.

(
        self, item: Any, initiator: Optional[AttributeEventToken] = None
    )

Source from the content-addressed store, hash-verified

542 return self._data()._sa_remover
543
544 def remove_with_event(
545 self, item: Any, initiator: Optional[AttributeEventToken] = None
546 ) -> None:
547 """Remove an entity from the collection, firing mutation events."""
548 self._data()._sa_remover(item, _sa_initiator=initiator)
549
550 def remove_without_event(self, item: Any) -> None:
551 """Remove an entity from the collection, firing no events."""

Callers 3

removeMethod · 0.80
_test_adapterMethod · 0.80
_test_scalar_mappedMethod · 0.80

Calls 1

_sa_removerMethod · 0.80

Tested by 2

_test_adapterMethod · 0.64
_test_scalar_mappedMethod · 0.64