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

Public Member Functions

def __init__ (self)
 
def __call__ (self, selection)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
- Public Member Functions inherited from _ServerMode
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

- Data Fields inherited from _ServerMode
 mode
 
 tag_sets
 
 max_staleness
 
 hedge
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ __call__()

def __call__ (   self,
  selection 
)
Apply this read preference to a Selection.

◆ __eq__()

def __eq__ (   self,
  other 
)

Reimplemented from _ServerMode.

◆ __repr__()

def __repr__ (   self)

Reimplemented from _ServerMode.


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