Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 9955584118b2135ac21554fe39454ae6 > files > 200

python2-bson-3.7.2-1.mga7.armv7hl.rpm

:mod:`read_preferences` -- Utilities for choosing which member of a replica set to read from.
=============================================================================================

.. automodule:: pymongo.read_preferences
   :synopsis: Utilities for choosing which member of a replica set to read from.

   .. autoclass:: pymongo.read_preferences.Primary

      .. max_staleness, min_wire_version, mongos_mode, and tag_sets don't
         make sense for Primary.

      .. autoattribute:: document
      .. autoattribute:: mode
      .. autoattribute:: name

   .. autoclass:: pymongo.read_preferences.PrimaryPreferred
      :inherited-members:
   .. autoclass:: pymongo.read_preferences.Secondary
      :inherited-members:
   .. autoclass:: pymongo.read_preferences.SecondaryPreferred
      :inherited-members:
   .. autoclass:: pymongo.read_preferences.Nearest
      :inherited-members:

   .. autoclass:: ReadPreference

      .. autoattribute:: PRIMARY
      .. autoattribute:: PRIMARY_PREFERRED
      .. autoattribute:: SECONDARY
      .. autoattribute:: SECONDARY_PREFERRED
      .. autoattribute:: NEAREST