PYTHON-4255 Add __getitem__ and __getattr__ methods to API docs (#1547)
This commit is contained in:
parent
6a56d09433
commit
7a90fe8828
@ -69,3 +69,5 @@
|
||||
.. automethod:: drop
|
||||
.. automethod:: rename
|
||||
.. automethod:: options
|
||||
.. automethod:: __getitem__
|
||||
.. automethod:: __getattr__
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
.. note:: Use dictionary style access if `collection_name` is an
|
||||
attribute of the :class:`Database` class eg: db[`collection_name`].
|
||||
|
||||
.. automethod:: __getitem__
|
||||
.. automethod:: __getattr__
|
||||
.. autoattribute:: codec_options
|
||||
.. autoattribute:: read_preference
|
||||
.. autoattribute:: write_concern
|
||||
|
||||
@ -35,3 +35,5 @@
|
||||
.. automethod:: get_database
|
||||
.. automethod:: server_info
|
||||
.. automethod:: watch
|
||||
.. automethod:: __getitem__
|
||||
.. automethod:: __getattr__
|
||||
|
||||
Loading…
Reference in New Issue
Block a user