|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, bulk_api_result, acknowledged) |
| def | bulk_api_result (self) |
| def | inserted_count (self) |
| def | matched_count (self) |
| def | modified_count (self) |
| def | deleted_count (self) |
| def | upserted_count (self) |
| def | upserted_ids (self) |
Public Member Functions inherited from _WriteResult | |
| def | __init__ (self, acknowledged) |
| def | acknowledged (self) |
An object wrapper for bulk API write results.
| def __init__ | ( | self, | |
| bulk_api_result, | |||
| acknowledged | |||
| ) |
Create a BulkWriteResult instance.
:Parameters:
- `bulk_api_result`: A result dict from the bulk API
- `acknowledged`: Was this write result acknowledged? If ``False``
then all properties of this object will raise
:exc:`~pymongo.errors.InvalidOperation`.
| def bulk_api_result | ( | self | ) |
The raw bulk API result.
| def deleted_count | ( | self | ) |
The number of documents deleted.
| def inserted_count | ( | self | ) |
The number of documents inserted.
| def matched_count | ( | self | ) |
The number of documents matched for an update.
| def modified_count | ( | self | ) |
The number of documents modified. .. note:: modified_count is only reported by MongoDB 2.6 and later. When connected to an earlier server version, or in certain mixed version sharding configurations, this attribute will be set to ``None``.
| def upserted_count | ( | self | ) |
The number of documents upserted.
| def upserted_ids | ( | self | ) |
A map of operation index to the _id of the upserted document.