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

Method append_with_event

lib/sqlalchemy/orm/collections.py:497–502  ·  view source on GitHub ↗

Add an entity to the collection, firing mutation events.

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

Source from the content-addressed store, hash-verified

495 return self._data()._sa_appender
496
497 def append_with_event(
498 self, item: Any, initiator: Optional[AttributeEventToken] = None
499 ) -> None:
500 """Add an entity to the collection, firing mutation events."""
501
502 self._data()._sa_appender(item, _sa_initiator=initiator)
503
504 def _set_empty(self, user_data):
505 assert (

Callers 10

appendMethod · 0.80
_test_adapterMethod · 0.80
_test_empty_initMethod · 0.80
_test_set_dataclassesMethod · 0.80
_test_dict_bulkMethod · 0.80
_test_scalar_mappedMethod · 0.80
test_dict_wrapperMethod · 0.80

Calls 1

_sa_appenderMethod · 0.80

Tested by 9

_test_adapterMethod · 0.64
_test_empty_initMethod · 0.64
_test_set_dataclassesMethod · 0.64
_test_dict_bulkMethod · 0.64
_test_scalar_mappedMethod · 0.64
test_dict_wrapperMethod · 0.64