MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / extend

Method extend

lib/sqlalchemy/orm/dynamic.py:264–271  ·  view source on GitHub ↗

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

(self, iterator: Iterable[_T])

Source from the content-addressed store, hash-verified

262 self._add_all_impl([item])
263
264 def extend(self, iterator: Iterable[_T]) -> None:
265 """Add an iterable of items to this :class:`_orm.AppenderQuery`.
266
267 The given items will be persisted to the database in terms of
268 the parent instance's collection on the next flush.
269
270 """
271 self._add_all_impl(iterator)
272
273 def append(self, item: _T) -> None:
274 """Append an item to this :class:`_orm.AppenderQuery`.

Callers 12

_listenMethod · 0.45
_setup_orm_returningMethod · 0.45
get_historyMethod · 0.45
self_and_descendantsMethod · 0.45
_sorted_tablesMethod · 0.45
_all_mappersMethod · 0.45
classes_for_baseMethod · 0.45
_postfetchFunction · 0.45
add_columnsMethod · 0.45

Calls 1

_add_all_implMethod · 0.80

Tested by

no test coverage detected