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

Public Member Functions

def __init__ (self, level=None)
 
def level (self)
 
def ok_for_legacy (self)
 
def document (self)
 
def __eq__ (self, other)
 
def __repr__ (self)
 

Data Fields

 level
 
 document
 

Detailed Description

ReadConcern

:Parameters:
    - `level`: (string) The read concern level specifies the level of
      isolation for read operations.  For example, a read operation using a
      read concern level of ``majority`` will only return data that has been
      written to a majority of nodes. If the level is left unspecified, the
      server default will be used.

.. versionadded:: 3.2

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  level = None 
)

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __repr__()

def __repr__ (   self)

◆ document()

def document (   self)
The document representation of this read concern.

.. note::
  :class:`ReadConcern` is immutable. Mutating the value of
  :attr:`document` does not mutate this :class:`ReadConcern`.

◆ level()

def level (   self)
The read concern level.

◆ ok_for_legacy()

def ok_for_legacy (   self)
Return ``True`` if this read concern is compatible with
old wire protocol versions.

Field Documentation

◆ document

document

◆ level

level

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