| Crates.io | calibre-db |
| lib.rs | calibre-db |
| version | 0.1.1 |
| created_at | 2021-07-23 14:15:26.168279+00 |
| updated_at | 2021-07-25 19:11:57.314859+00 |
| description | Types and functions for interacting with the Calibre library database |
| homepage | https://src.doom.fm/citruspi/calibre-db-rs |
| repository | https://src.doom.fm/citruspi/calibre-db-rs |
| max_upload_size | |
| id | 426278 |
| size | 9,231 |
Rust types and functions for interacting with the Calibre eBook Library database.
99% of functionality provided via Diesel :hattip:
Full support for annotations and custom columns is yet to be implemented.
[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());
Dedicated to the Public Domain.