read_concern – Tools for working with read concern.¶
Tools for working with read concerns.
-
class
pymongo.read_concern.ReadConcern(level=None)¶ 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
majoritywill only return data that has been written to a majority of nodes. If the level is left unspecified, the server default will be used.
New in version 3.2.
-
document¶ The document representation of this read concern.
Note
ReadConcernis immutable. Mutating the value ofdocumentdoes not mutate thisReadConcern.
-
level¶ The read concern level.
-
ok_for_legacy¶ Return
Trueif this read concern is compatible with old wire protocol versions.
- 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