A document stored in the database. This class provides a way to access both a document's content and its ID using ``doc.doc_id``.
| 24 | |
| 25 | |
| 26 | class Document(dict): |
| 27 | """ |
| 28 | A document stored in the database. |
| 29 | |
| 30 | This class provides a way to access both a document's content and |
| 31 | its ID using ``doc.doc_id``. |
| 32 | """ |
| 33 | |
| 34 | def __init__(self, value: Mapping, doc_id: int): |
| 35 | super().__init__(value) |
| 36 | self.doc_id = doc_id |
| 37 | |
| 38 | |
| 39 | class Table: |
no outgoing calls
searching dependent graphs…