MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / append

Method append

lib/sqlalchemy/orm/dynamic.py:273–280  ·  view source on GitHub ↗

Append an item to this :class:`_orm.AppenderQuery`. The given item will be persisted to the database in terms of the parent instance's collection on the next flush.

(self, item: _T)

Source from the content-addressed store, hash-verified

271 self._add_all_impl(iterator)
272
273 def append(self, item: _T) -> None:
274 """Append an item to this :class:`_orm.AppenderQuery`.
275
276 The given item will be persisted to the database in terms of
277 the parent instance's collection on the next flush.
278
279 """
280 self._add_all_impl([item])
281
282 def remove(self, item: _T) -> None:
283 """Remove an item from this :class:`_orm.AppenderQuery`.

Callers 15

_get_current_adapterMethod · 0.45
__init__Method · 0.45
setup_compile_stateMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
setup_compile_stateMethod · 0.45
__init__Method · 0.45
setup_compile_stateMethod · 0.45
__init__Method · 0.45

Calls 1

_add_all_implMethod · 0.80

Tested by

no test coverage detected