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

Function _connection_string

test/__init__.py:88–91  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

86
87
88def _connection_string(h):
89 if h.startswith(("mongodb://", "mongodb+srv://")):
90 return h
91 return f"mongodb://{h!s}"
92
93
94class ClientContext:

Callers 2

_async_mongo_clientMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected