api_db.api_db
=============

.. py:module:: api_db.api_db




Module Contents
---------------

.. py:class:: AAApiDb

   Bases: :py:obj:`auto_archiver.core.Database`


   Connects to auto-archiver-api instance


   .. py:method:: fetch(item: auto_archiver.core.Metadata) -> Union[auto_archiver.core.Metadata, bool]

      query the database for the existence of this item.
      Helps avoid re-archiving the same URL multiple times.



   .. py:method:: done(item: auto_archiver.core.Metadata, cached: bool = False) -> None

      archival result ready - should be saved to DB



