We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f014e66 commit 47ec939Copy full SHA for 47ec939
pymongo/master_slave_connection.py
@@ -135,6 +135,25 @@ def max_message_size(self):
135
"""
136
return self.master.max_message_size
137
138
+ @property
139
+ def min_wire_version(self):
140
+ """The minWireVersion reported by the server.
141
+
142
+ Returns ``0`` when connected to server versions prior to MongoDB 2.6.
143
144
+ .. versionadded:: 2.7
145
+ """
146
+ return self.master.min_wire_version
147
148
149
+ def max_wire_version(self):
150
+ """The maxWireVersion reported by the server.
151
152
153
154
155
156
+ return self.master.max_wire_version
157
158
def disconnect(self):
159
"""Disconnect from MongoDB.
0 commit comments