ankidb gives you an opinionated API to Anki’s database.
ankidb
use ankidb::Database; let db = Database::open(&"/path/to/collection.anki2")?;