MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / rs_client

Method rs_client

test/__init__.py:1095–1097  ·  view source on GitHub ↗

Connect to the replica set and authenticate if necessary.

(self, h: Any = None, p: Any = None, **kwargs: Any)

Source from the content-addressed store, hash-verified

1093 return self._async_mongo_client(h, p, authenticate=False, **kwargs)
1094
1095 def rs_client(self, h: Any = None, p: Any = None, **kwargs: Any) -> MongoClient[dict]:
1096 """Connect to the replica set and authenticate if necessary."""
1097 return self._async_mongo_client(h, p, **kwargs)
1098
1099 def rs_or_single_client_noauth(
1100 self, h: Any = None, p: Any = None, **kwargs: Any

Calls 1

_async_mongo_clientMethod · 0.95