/usr/share/doc/python-pymongo-doc/html/_sources/api/pymongo/collection.txt is in python-pymongo-doc 2.6.3-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | :mod:`collection` -- Collection level operations
================================================
.. automodule:: pymongo.collection
:synopsis: Collection level operations
.. autodata:: pymongo.ASCENDING
.. autodata:: pymongo.DESCENDING
.. autodata:: pymongo.GEO2D
.. autodata:: pymongo.GEOHAYSTACK
.. autodata:: pymongo.GEOSPHERE
.. autodata:: pymongo.HASHED
.. autoclass:: pymongo.collection.Collection(database, name[, create=False[, **kwargs]]])
.. describe:: c[name] || c.name
Get the `name` sub-collection of :class:`Collection` `c`.
Raises :class:`~pymongo.errors.InvalidName` if an invalid
collection name is used.
.. autoattribute:: full_name
.. autoattribute:: name
.. autoattribute:: database
.. autoattribute:: read_preference
.. autoattribute:: tag_sets
.. autoattribute:: secondary_acceptable_latency_ms
.. autoattribute:: write_concern
.. autoattribute:: uuid_subtype
.. automethod:: insert(doc_or_docs[, manipulate=True[, safe=None[, check_keys=True[, continue_on_error=False[, **kwargs]]]]])
.. automethod:: save(to_save[, manipulate=True[, safe=None[, check_keys=True[, **kwargs]]]])
.. automethod:: update(spec, document[, upsert=False[, manipulate=False[, safe=None[, multi=False[, check_keys=True[, **kwargs]]]]]])
.. automethod:: remove([spec_or_id=None[, safe=None[, **kwargs]]])
.. automethod:: drop
.. automethod:: find([spec=None[, fields=None[, skip=0[, limit=0[, timeout=True[, snapshot=False[, tailable=False[, sort=None[, max_scan=None[, as_class=None[, slave_okay=False[, await_data=False[, partial=False[, manipulate=True[, read_preference=ReadPreference.PRIMARY[, exhaust=False[,**kwargs]]]]]]]]]]]]]]]]])
.. automethod:: find_one([spec_or_id=None[, *args[, **kwargs]]])
.. automethod:: count
.. automethod:: create_index
.. automethod:: ensure_index
.. automethod:: drop_index
.. automethod:: drop_indexes
.. automethod:: reindex
.. automethod:: index_information
.. automethod:: options
.. automethod:: aggregate
.. automethod:: group
.. automethod:: rename
.. automethod:: distinct
.. automethod:: map_reduce
.. automethod:: inline_map_reduce
.. automethod:: find_and_modify
.. autoattribute:: slave_okay
.. autoattribute:: safe
.. automethod:: get_lasterror_options
.. automethod:: set_lasterror_options
.. automethod:: unset_lasterror_options
|