calibre-db

Crates.iocalibre-db
lib.rscalibre-db
version0.1.1
created_at2021-07-23 14:15:26.168279+00
updated_at2021-07-25 19:11:57.314859+00
descriptionTypes and functions for interacting with the Calibre library database
homepagehttps://src.doom.fm/citruspi/calibre-db-rs
repositoryhttps://src.doom.fm/citruspi/calibre-db-rs
max_upload_size
id426278
size9,231
Mihir (citruspi)

documentation

README

calibre-db-rs

Rust types and functions for interacting with the Calibre eBook Library database.

99% of functionality provided via Diesel :hattip:

To-Do

Full support for annotations and custom columns is yet to be implemented.

Sample Usage

[dependencies]
calibre-db = "0.1.0"
let conn = diesel::sqlite::SqliteConnection::establish("/path/to/library/db")
    .expect("failed to open Calibre DB");

let books = calibre_db::books::dsl::books
    .load::<calibre_db::Book>(&conn)
    .expect("error loading books");

println!("# of books - {}", books.len());

License

Dedicated to the Public Domain.

Commit count: 0

cargo fmt