![]() ![]() ids contains the book ids for all newly created books in theĭatabase. Returns a pair of lists: ids, duplicates. Metadata object and format_map is a dictionary of the form. Books should be an iterable ofĢ-tuples, each 2-tuple of the form (mi, format_map) where mi is a ![]() When some metadata is changed for some books, withĪrguments: (name of changed field, set of affected book ids) add_books ( books, add_duplicates = True, apply_import_tags = True, preserve_uuid = False, run_hooks = True, dbapi = None ) ¶Īdd the specified books to the library. When items such as tags or authors are renamed in some or all books.Īrguments: (field_name, affected book ids, map of old item id to new item id) metadata_changed = 1 ¶ When items such as tags or authors are removed from some books.Īrguments: (field_name, affected book ids, ids of removed items) items_renamed = 6 ¶ When the indexing progress changes items_removed = 7 ¶ (mapping of book id to set of formats removed from the book) indexing_progress_changed = 9 ¶ When formats are removed from a book, with arguments: When a format is added to a book, with arguments: Ids as the only argument format_added = 2 ¶ When books are removed from the database with the list of book When a book format is edited, with arguments: (book_id, fmt) books_removed = 5 ¶ When a new book record is created in the database, with theīook id as the only argument book_edited = 8 ¶ class EventType ( value, names = None, *, module = None, qualname = None, type = None, start = 1, boundary = None ) ¶ book_created = 4 ¶ Was necessary for maximum performance and flexibility. SQLITE is simply used as a way to read and write from metadata.db robustly.Īll table reading/sorting/searching/caching logic is re-implemented. The in-memory cache is maintained in normal form for maximum performance. This class also serves as a threadsafe API for accessing the database. Cache ( backend, library_database_instance = None ) ¶Īn in-memory cache of the metadata.db file from a calibre library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |