This change adds two new top level classes, MongoClient and MongoReplicaSetClient. They work almost exactly the same as Connection and ReplicaSetConnection with a few differences: 1. These connection objects awknowledge write operations by default. 2. The network_timeout parameter is gone, use socketTimeoutMS instead. 3. auto_start_request defaults to False. Default acknowledged write operation will be the biggest change for most users. Using MongoClient and MongoReplicaSetClient you no longer have to pass safe=True to a write method (save, update, insert, remove) to request an acknowledgement from the server. Connection and ReplicaSetConnection are now deprecated but retain their previous behavior. This should not be a backward breaking change. |
||
|---|---|---|
| .. | ||
| bson | ||
| gridfs | ||
| pymongo | ||
| index.rst | ||