/usr/share/doc/python-pymongo-doc/html/_sources/api/pymongo/database.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 | :mod:`database` -- Database level operations
============================================
.. automodule:: pymongo.database
:synopsis: Database level operations
.. autodata:: pymongo.auth.MECHANISMS
.. autodata:: pymongo.OFF
.. autodata:: pymongo.SLOW_ONLY
.. autodata:: pymongo.ALL
.. autoclass:: pymongo.database.Database
:members:
.. describe:: db[collection_name] || db.collection_name
Get the `collection_name` :class:`~pymongo.collection.Collection` of
:class:`Database` `db`.
Raises :class:`~pymongo.errors.InvalidName` if an invalid collection
name is used.
.. note:: Use dictionary style access if `collection_name` is an
attribute of the :class:`Database` class eg: db[`collection_name`].
.. autoattribute:: read_preference
.. autoattribute:: tag_sets
.. autoattribute:: secondary_acceptable_latency_ms
.. autoattribute:: write_concern
.. autoattribute:: slave_okay
.. autoattribute:: safe
.. automethod:: get_lasterror_options
.. automethod:: set_lasterror_options
.. automethod:: unset_lasterror_options
.. autoclass:: pymongo.database.SystemJS
:members:
|