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

Method insert_results

pymongo/results.py:340–347  ·  view source on GitHub ↗

A map of successful insertion operations to their results.

(self)

Source from the content-addressed store, hash-verified

338
339 @property
340 def insert_results(self) -> Mapping[int, InsertOneResult]:
341 """A map of successful insertion operations to their results."""
342 self._raise_if_unacknowledged("insert_results")
343 self._raise_if_not_verbose("insert_results")
344 return cast(
345 Mapping[int, InsertOneResult],
346 self.bulk_api_result.get("insertResults"),
347 )
348
349 @property
350 def update_results(self) -> Mapping[int, UpdateResult]:

Callers

nothing calls this directly

Calls 3

_raise_if_not_verboseMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected