async fn import_library(
pool: &SqlitePool,
library_id: i64,
library_path: &Path,
) -> (usize, usize)Expand description
Imports all books and reading states from a single library directory.
Loads .metadata.json and the .reading-states/ directory, inserts all
entries into the database within a single transaction, then renames the
legacy files and removes .thumbnail-previews/.
Returns (books_imported, reading_states_imported).