calibre/manual/db_api.rst
ron 6b7acd199f Fix typos, grammar errors, and incorrect references across documentation
Fix ~85 issues across 28 documentation files including misspellings,
subject-verb agreement errors, incorrect articles, missing punctuation,
and one incorrect URL scheme reference in url_scheme.rst.
2026-02-11 01:18:31 -05:00

23 lines
631 B
ReStructuredText

.. _db_api:
API documentation for the database interface
======================================================
.. module:: calibre.db.cache
:synopsis: The API for accessing and manipulating a calibre library.
This API is thread safe (it uses a multiple reader, single writer locking scheme). You can access this API like this::
from calibre.library import db
db = db('Path to calibre library folder').new_api
If you are in a calibre plugin that is part of the main calibre GUI, you
get access to it like this instead::
db = self.gui.current_db.new_api
.. autoclass:: Cache
:members: