File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -108,21 +108,21 @@ PyMongo
108
108
~~~~~~~
109
109
110
110
Add the "``ssl=True``" parameter to a PyMongo
111
- py:module:`connection <pymongo:pymongo.connection >`
111
+ py:module:`MongoClient <pymongo:pymongo.MongoClient >`
112
112
to create a MongoDB connection to an SSL MongoDB instance:
113
113
114
114
.. code-block:: python
115
115
116
- from pymongo import Connection
117
- c = Connection (host="mongodb.example.net", port=27017, ssl=True)
116
+ from pymongo import MongoClient
117
+ c = MongoClient (host="mongodb.example.net", port=27017, ssl=True)
118
118
119
119
To connect to a replica set, use the following operation:
120
120
121
121
.. code-block:: python
122
122
123
- from pymongo import ReplicaSetConnection
124
- c = ReplicaSetConnection ("mongodb.example.net:27017",
125
- replicaSet="mysetname", ssl=True)
123
+ from pymongo import MongoReplicaSetClient
124
+ c = MongoReplicaSetClient ("mongodb.example.net:27017",
125
+ replicaSet="mysetname", ssl=True)
126
126
127
127
PyMongo also supports an "``ssl=true``" option for the MongoDB URI:
128
128
You can’t perform that action at this time.
0 commit comments