File tree 3 files changed +6
-14
lines changed 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Changelog
6
6
Version 0.5.2 (TBD)
7
7
-----------------
8
8
* Add support for Replica Sets (Thanks @r4fek)
9
+ * PyMongo 3 support
9
10
10
11
11
12
Version 0.5.1 (Nov 2013)
Original file line number Diff line number Diff line change @@ -248,12 +248,8 @@ def pop(name, default=None):
248
248
conn_options = dict (
249
249
host = host ,
250
250
port = int (port ),
251
- max_pool_size = None ,
252
251
document_class = dict ,
253
252
tz_aware = False ,
254
- _connect = True ,
255
- auto_start_request = True ,
256
- safe = False
257
253
)
258
254
conn_options .update (options )
259
255
Original file line number Diff line number Diff line change @@ -29,12 +29,13 @@ MongoDB Engine does is lower-casing the names before passing the flags to
29
29
30
30
.. _operations-setting :
31
31
32
- Safe Operations (`` getLastError ``)
33
- ----------------------------------
32
+ Acknowledged Operations
33
+ -----------------------
34
34
Use the ``OPERATIONS `` dict to specify extra flags passed to
35
35
:meth: `Collection.save <pymongo.collection.Collection.save> `,
36
36
:meth: `~pymongo.collection.Collection.update ` or
37
- :meth: `~pymongo.collection.Collection.remove ` (and thus to ``getLastError ``):
37
+ :meth: `~pymongo.collection.Collection.remove ` (and thus included in the
38
+ write concern):
38
39
39
40
.. code-block :: python
40
41
@@ -43,19 +44,13 @@ Use the ``OPERATIONS`` dict to specify extra flags passed to
43
44
...
44
45
}
45
46
46
- Since any options to ``getLastError `` imply ``safe=True ``,
47
- this configuration passes ``safe=True, w=3 `` as keyword arguments to each of
48
- :meth: `~pymongo.collection.Collection.save `,
49
- :meth: `~pymongo.collection.Collection.update ` and
50
- :meth: `~pymongo.collection.Collection.remove `.
51
-
52
47
Get a more fine-grained setup by introducing another layer to this dict:
53
48
54
49
.. code-block :: python
55
50
56
51
' OPTIONS' : {
57
52
' OPERATIONS' : {
58
- ' save' : {' safe ' : True },
53
+ ' save' : {' w ' : 3 },
59
54
' update' : {},
60
55
' delete' : {' fsync' : True }
61
56
},
You can’t perform that action at this time.
0 commit comments