~ubuntu-branches/ubuntu/wily/pymongo/wily-proposed

« back to all changes in this revision

Viewing changes to pymongo/__init__.py

  • Committer: Package Import Robot
  • Author(s): Federico Ceratto
  • Date: 2014-05-26 20:59:05 UTC
  • mfrom: (24.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140526205905-32l0x6vwqlyhigna
Tags: 2.7.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
.. note:: Geo-spatial indexing requires server version **>= 1.3.3**.
29
29
 
30
 
.. _geospatial index: http://docs.mongodb.org/manual/core/geospatial-indexes/
 
30
.. _geospatial index: http://docs.mongodb.org/manual/core/2d/
31
31
"""
32
32
 
33
33
GEOHAYSTACK = "geoHaystack"
37
37
 
38
38
.. note:: Geo-spatial indexing requires server version **>= 1.5.6**.
39
39
 
40
 
.. _haystack index: http://docs.mongodb.org/manual/core/geospatial-indexes/#haystack-indexes
 
40
.. _haystack index: http://docs.mongodb.org/manual/core/geohaystack/
41
41
"""
42
42
 
43
43
GEOSPHERE = "2dsphere"
47
47
 
48
48
.. note:: 2dsphere indexing requires server version **>= 2.4.0**.
49
49
 
50
 
.. _spherical geospatial index: http://docs.mongodb.org/manual/release-notes/2.4/#new-geospatial-indexes-with-geojson-and-improved-spherical-geometry
 
50
.. _spherical geospatial index: http://docs.mongodb.org/manual/core/2dsphere/
51
51
"""
52
52
 
53
53
HASHED = "hashed"
57
57
 
58
58
.. note:: hashed indexing requires server version **>= 2.4.0**.
59
59
 
60
 
.. _hashed index: http://docs.mongodb.org/manual/release-notes/2.4/#new-hashed-index-and-sharding-with-a-hashed-shard-key
 
60
.. _hashed index: http://docs.mongodb.org/manual/core/index-hashed/
 
61
"""
 
62
 
 
63
TEXT = "text"
 
64
"""Index specifier for a `text index`_.
 
65
 
 
66
.. versionadded:: 2.7.1
 
67
 
 
68
.. note:: text search requires server version **>= 2.4.0**.
 
69
 
 
70
.. _text index: http://docs.mongodb.org/manual/core/index-text/
61
71
"""
62
72
 
63
73
OFF = 0
67
77
ALL = 2
68
78
"""Profile all operations."""
69
79
 
70
 
version_tuple = (2, 7)
 
80
version_tuple = (2, 7, 1)
71
81
 
72
82
def get_version_string():
73
83
    if isinstance(version_tuple[-1], basestring):