Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
88
def
_connection_string(h):
89
if
h.startswith((
"mongodb://"
,
"mongodb+srv://"
)):
90
return
h
91
return
f
"mongodb://{h!s}"
92
93
94
class
ClientContext:
Callers
2
_unmanaged_async_mongo_client
Method · 0.70
_async_mongo_client
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected