mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-03 05:34:29 -04:00
23 lines
627 B
ReStructuredText
23 lines
627 B
ReStructuredText
.. _db_api:
|
|
|
|
API documentation for the database interface
|
|
======================================================
|
|
|
|
.. module:: calibre.db.cache
|
|
:synopsis: The API 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:
|
|
|
|
|