Minor doc updates.
This commit is contained in:
parent
5133b0f68b
commit
f3d8b86a26
@ -51,7 +51,8 @@ This is the new BSON binary subtype for UUIDs. The
|
||||
current default is :data:`OLD_UUID_SUBTYPE` but will
|
||||
change to this in a future release.
|
||||
|
||||
.. versionchanged:: 2.0.1+
|
||||
.. versionchanged:: 2.1
|
||||
Changed to subtype 4.
|
||||
.. versionadded:: 1.5
|
||||
"""
|
||||
|
||||
@ -61,7 +62,7 @@ OLD_UUID_SUBTYPE = 3
|
||||
:class:`uuid.UUID` instances will automatically be encoded
|
||||
by :mod:`bson` using this subtype.
|
||||
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
"""
|
||||
|
||||
MD5_SUBTYPE = 5
|
||||
|
||||
@ -30,6 +30,7 @@ Important New Features:
|
||||
- Added support for the MongoDB URI options socketTimeoutMS and connectTimeoutMS.
|
||||
- Added support for the ContinueOnError insert flag.
|
||||
- Added basic SSL support.
|
||||
- Added basic support for Jython.
|
||||
- Secondaries can be used for :meth:`~pymongo.cursor.Cursor.count`,
|
||||
:meth:`~pymongo.cursor.Cursor.distinct`, :meth:`~pymongo.collection.Collection.group`,
|
||||
and querying :class:`~gridfs.GridFS`.
|
||||
|
||||
@ -33,7 +33,7 @@ GEO2D = "2d"
|
||||
GEOHAYSTACK = "geoHaystack"
|
||||
"""Index specifier for a 2-dimensional `haystack index`_.
|
||||
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
|
||||
.. note:: Geo-spatial indexing requires server version **>= 1.5.6+**.
|
||||
|
||||
|
||||
@ -63,6 +63,8 @@ class Collection(common.BaseObject):
|
||||
- `**kwargs` (optional): additional keyword arguments will
|
||||
be passed as options for the create collection command
|
||||
|
||||
.. versionadded:: 2.1
|
||||
uuid_subtype attribute
|
||||
.. versionchanged:: 1.5
|
||||
deprecating `options` in favor of kwargs
|
||||
.. versionadded:: 1.5
|
||||
@ -280,7 +282,7 @@ class Collection(common.BaseObject):
|
||||
|
||||
.. note:: `continue_on_error` requires server version **>= 1.9.1**
|
||||
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
Support for continue_on_error.
|
||||
.. versionadded:: 1.8
|
||||
Support for passing `getLastError` options as keyword
|
||||
|
||||
@ -186,7 +186,8 @@ class BaseObject(object):
|
||||
def __get_slave_okay(self):
|
||||
"""DEPRECATED. Use `read_preference` instead.
|
||||
|
||||
.. versionchanged:: 2.0.1+
|
||||
.. versionchanged:: 2.1
|
||||
Deprecated slave_okay.
|
||||
.. versionadded:: 2.0
|
||||
"""
|
||||
return self.__slave_okay
|
||||
@ -204,7 +205,7 @@ class BaseObject(object):
|
||||
|
||||
See :class:`~pymongo.ReadPreference` for available options.
|
||||
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
"""
|
||||
return self.__read_pref
|
||||
|
||||
|
||||
@ -270,7 +270,7 @@ class Connection(common.BaseObject):
|
||||
instead.
|
||||
|
||||
.. seealso:: :meth:`end_request`
|
||||
.. versionchanged:: 2.0.1+
|
||||
.. versionchanged:: 2.1
|
||||
Support `w` = integer or string.
|
||||
Added `ssl` option.
|
||||
DEPRECATED slave_okay/slaveOk.
|
||||
@ -720,7 +720,7 @@ class Connection(common.BaseObject):
|
||||
could lead to unexpected results.
|
||||
|
||||
.. seealso:: :meth:`end_request`
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
"""
|
||||
self.disconnect()
|
||||
|
||||
|
||||
@ -179,7 +179,7 @@ class ReplicaSetConnection(common.BaseObject):
|
||||
- `slave_okay` or `slaveOk` (deprecated): Use `read_preference`
|
||||
instead.
|
||||
|
||||
.. versionadded:: 2.0.1+
|
||||
.. versionadded:: 2.1
|
||||
"""
|
||||
self.__max_pool_size = max_pool_size
|
||||
self.__document_class = document_class
|
||||
|
||||
Loading…
Reference in New Issue
Block a user