|
def | __init__ (self, *args, **kwargs) |
|
def | __repr__ (self) |
|
def | __init__ (self, host=None, port=None, document_class=dict, tz_aware=None, connect=None, type_registry=None, **kwargs) |
|
def | watch (self, pipeline=None, full_document=None, resume_after=None, max_await_time_ms=None, batch_size=None, collation=None, start_at_operation_time=None, session=None, start_after=None) |
|
def | event_listeners (self) |
|
def | address (self) |
|
def | primary (self) |
|
def | secondaries (self) |
|
def | arbiters (self) |
|
def | is_primary (self) |
|
def | is_mongos (self) |
|
def | max_pool_size (self) |
|
def | min_pool_size (self) |
|
def | max_idle_time_ms (self) |
|
def | nodes (self) |
|
def | max_bson_size (self) |
|
def | max_message_size (self) |
|
def | max_write_batch_size (self) |
|
def | local_threshold_ms (self) |
|
def | server_selection_timeout (self) |
|
def | retry_writes (self) |
|
def | retry_reads (self) |
|
def | close (self) |
|
def | set_cursor_manager (self, manager_class) |
|
def | __eq__ (self, other) |
|
def | __ne__ (self, other) |
|
def | __getattr__ (self, name) |
|
def | __getitem__ (self, name) |
|
def | close_cursor (self, cursor_id, address=None) |
|
def | kill_cursors (self, cursor_ids, address=None) |
|
def | start_session (self, causal_consistency=True, default_transaction_options=None) |
|
def | server_info (self, session=None) |
|
def | list_databases (self, session=None, **kwargs) |
|
def | list_database_names (self, session=None) |
|
def | database_names (self, session=None) |
|
def | drop_database (self, name_or_database, session=None) |
|
def | get_default_database (self, default=None, codec_options=None, read_preference=None, write_concern=None, read_concern=None) |
|
def | get_database (self, name=None, codec_options=None, read_preference=None, write_concern=None, read_concern=None) |
|
def | is_locked (self) |
|
def | fsync (self, **kwargs) |
|
def | unlock (self, session=None) |
|
def | __enter__ (self) |
|
def | __exit__ (self, exc_type, exc_val, exc_tb) |
|
def | __iter__ (self) |
|
def | __next__ (self) |
|
def | __init__ (self, codec_options, read_preference, write_concern, read_concern) |
|
def | codec_options (self) |
|
def | write_concern (self) |
|
def | read_preference (self) |
|
def | read_concern (self) |
|
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.