MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _add_to_bulk

Method _add_to_bulk

pymongo/operations.py:690–700  ·  view source on GitHub ↗

Add this operation to the _AsyncBulk/_Bulk instance `bulkobj`.

(self, bulkobj: _AgnosticBulk)

Source from the content-addressed store, hash-verified

688 super().__init__(filter, update, upsert, collation, array_filters, hint, namespace, None)
689
690 def _add_to_bulk(self, bulkobj: _AgnosticBulk) -> None:
691 """Add this operation to the _AsyncBulk/_Bulk instance `bulkobj`."""
692 bulkobj.add_update(
693 self._filter,
694 self._doc,
695 True,
696 self._upsert,
697 collation=validate_collation_or_none(self._collation),
698 array_filters=self._array_filters,
699 hint=self._hint,
700 )
701
702 def _add_to_client_bulk(self, bulkobj: _AgnosticClientBulk) -> None:
703 """Add this operation to the _AsyncClientBulk/_ClientBulk instance `bulkobj`."""

Callers

nothing calls this directly

Calls 2

add_updateMethod · 0.45

Tested by

no test coverage detected