Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « pymongo »

Classe « MongoReplicaSetClient »

Informations générales

Héritage

builtins.object
    BaseObject
        MongoClient
            MongoReplicaSetClient

Définition

class MongoReplicaSetClient(MongoClient):

Description [extrait de MongoReplicaSetClient.__doc__]

Deprecated alias for :class:`~pymongo.mongo_client.MongoClient`.

    :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`
    will be removed in a future version of PyMongo.

    .. versionchanged:: 3.0
       :class:`~pymongo.mongo_client.MongoClient` is now the one and only
       client class for a standalone server, mongos, or replica set.
       It includes the functionality that had been split into
       :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`: it
       can connect to a replica set, discover all its members, and monitor
       the set for stepdowns, elections, and reconfigs.

       The ``refresh`` method is removed from
       :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`,
       as are the ``seeds`` and ``hosts`` properties.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, *args, **kwargs)

Liste des attributs statiques

Nom de l'attribut Valeur
HOSTlocalhost
PORT27017

Liste des propriétés

Nom de la propriétéDescription
address(host, port) of the current standalone, primary, or mongos, or None. [extrait de __doc__]
arbitersArbiters in the replica set. [extrait de __doc__]
codec_optionsRead only access to the :class:`~bson.codec_options.CodecOptions` [extrait de __doc__]
event_listenersThe event listeners registered for this client. [extrait de __doc__]
is_locked**DEPRECATED**: Is this server locked? While locked, all write [extrait de __doc__]
is_mongosIf this client is connected to mongos. If the client is not [extrait de __doc__]
is_primaryIf this client is connected to a server that can accept writes. [extrait de __doc__]
local_threshold_msThe local threshold for this instance. [extrait de __doc__]
max_bson_sizeThe largest BSON object the connected server accepts in bytes. [extrait de __doc__]
max_idle_time_msThe maximum number of milliseconds that a connection can remain [extrait de __doc__]
max_message_sizeThe largest message the connected server accepts in bytes. [extrait de __doc__]
max_pool_sizeThe maximum allowable number of concurrent connections to each [extrait de __doc__]
max_write_batch_sizeThe maxWriteBatchSize reported by the server. [extrait de __doc__]
min_pool_sizeThe minimum required number of concurrent connections that the pool [extrait de __doc__]
nodesSet of all currently connected servers. [extrait de __doc__]
primaryThe (host, port) of the current primary of the replica set. [extrait de __doc__]
read_concernRead only access to the :class:`~pymongo.read_concern.ReadConcern` [extrait de __doc__]
read_preferenceRead only access to the read preference of this instance. [extrait de __doc__]
retry_readsIf this instance should retry supported write operations. [extrait de __doc__]
retry_writesIf this instance should retry supported write operations. [extrait de __doc__]
secondariesThe secondary members known to this client. [extrait de __doc__]
server_selection_timeoutThe server selection timeout for this instance in seconds. [extrait de __doc__]
topology_descriptionThe description of the connected MongoDB deployment. [extrait de __doc__]
write_concernRead only access to the :class:`~pymongo.write_concern.WriteConcern` [extrait de __doc__]

Liste des opérateurs

Opérateurs hérités de la classe MongoClient

__eq__, __getitem__, __ne__

Liste des opérateurs

Opérateurs hérités de la classe object

__ge__, __gt__, __le__, __lt__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__repr__(self)

Méthodes héritées de la classe MongoClient

__enter__, __exit__, __getattr__, __hash__, __init_subclass__, __iter__, __next__, __subclasshook__, close, close_cursor, database_names, drop_database, fsync, get_database, get_default_database, kill_cursors, list_database_names, list_databases, next, server_info, set_cursor_manager, start_session, unlock, watch

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__