OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self) |
def | __call__ (self, selection) |
def | __repr__ (self) |
def | __eq__ (self, other) |
![]() | |
def | __init__ (self, mode, tag_sets=None, max_staleness=-1, hedge=None) |
def | name (self) |
def | mongos_mode (self) |
def | document (self) |
def | mode (self) |
def | tag_sets (self) |
def | max_staleness (self) |
def | hedge (self) |
def | min_wire_version (self) |
def | __ne__ (self, other) |
def | __getstate__ (self) |
def | __setstate__ (self, value) |
Additional Inherited Members | |
![]() | |
mode | |
tag_sets | |
max_staleness | |
hedge | |
Primary read preference. * When directly connected to one mongod queries are allowed if the server is standalone or a replica set primary. * When connected to a mongos queries are sent to the primary of a shard. * When connected to a replica set queries are sent to the primary of the replica set.
def __init__ | ( | self | ) |
def __call__ | ( | self, | |
selection | |||
) |
Apply this read preference to a Selection.
def __eq__ | ( | self, | |
other | |||
) |
Reimplemented from _ServerMode.
def __repr__ | ( | self | ) |
Reimplemented from _ServerMode.