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

Class Version

test/version.py:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class Version(BaseVersion):
22 @classmethod
23 def from_client(cls, client):
24 info = client.server_info()
25 if "versionArray" in info:
26 return cls.from_version_array(info["versionArray"])
27 return cls.from_string(info["version"])
28
29 @classmethod
30 async def async_from_client(cls, client):
31 info = await client.server_info()
32 if "versionArray" in info:
33 return cls.from_version_array(info["versionArray"])
34 return cls.from_string(info["version"])

Callers 15

__init__Method · 0.90
require_version_minMethod · 0.90
require_version_maxMethod · 0.90
test_drop_indexMethod · 0.90
__init__Method · 0.90
require_version_minMethod · 0.90

Calls

no outgoing calls