1 :class:`Database` -- The underlying notmuch database
2 ====================================================
4 .. currentmodule:: notmuch
6 .. autoclass:: Database([path=None[, create=False[, mode=MODE.READ_ONLY]]])
10 .. automethod:: open(path, status=MODE.READ_ONLY)
14 .. automethod:: get_path
16 .. automethod:: get_version
18 .. automethod:: needs_upgrade
20 .. automethod:: upgrade
22 .. automethod:: begin_atomic
24 .. automethod:: end_atomic
26 .. automethod:: get_directory
28 .. automethod:: add_message
30 .. automethod:: remove_message
32 .. automethod:: find_message
34 .. automethod:: find_message_by_filename
36 .. automethod:: get_all_tags
38 .. automethod:: create_query
40 .. attribute:: Database.MODE
42 Defines constants that are used as the mode in which to open a database.
45 Open the database in read-only mode
48 Open the database in read-write mode
50 .. autoattribute:: db_p