OpenQuizz
Une application de gestion des contenus pédagogiques
_WriteResult Class Reference
Inheritance diagram for _WriteResult:
Collaboration diagram for _WriteResult:

Public Member Functions

def __init__ (self, acknowledged)
 
def acknowledged (self)
 

Detailed Description

Base class for write result classes.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  acknowledged 
)

Member Function Documentation

◆ acknowledged()

def acknowledged (   self)
Is this the result of an acknowledged write operation?

The :attr:`acknowledged` attribute will be ``False`` when using
``WriteConcern(w=0)``, otherwise ``True``.

.. note::
  If the :attr:`acknowledged` attribute is ``False`` all other
  attibutes of this class will raise
  :class:`~pymongo.errors.InvalidOperation` when accessed. Values for
  other attributes cannot be determined if the write operation was
  unacknowledged.

.. seealso::
  :class:`~pymongo.write_concern.WriteConcern`

The documentation for this class was generated from the following file: