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

Method single_client

test/__init__.py:1087–1089  ·  view source on GitHub ↗

Make a direct connection, and authenticate if necessary.

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

Source from the content-addressed store, hash-verified

1085 return self._async_mongo_client(h, p, authenticate=False, directConnection=True, **kwargs)
1086
1087 def single_client(self, h: Any = None, p: Any = None, **kwargs: Any) -> MongoClient[dict]:
1088 """Make a direct connection, and authenticate if necessary."""
1089 return self._async_mongo_client(h, p, directConnection=True, **kwargs)
1090
1091 def rs_client_noauth(self, h: Any = None, p: Any = None, **kwargs: Any) -> MongoClient[dict]:
1092 """Connect to the replica set. Don't authenticate."""

Calls 1

_async_mongo_clientMethod · 0.95