A CouchDB Mango/Cloudant query client for rust. It supports creating indexes, listing indexes and querying indexes
For (docs)[http://garrensmith.com/mango_smoothie/]
``` extern crate mangosmoothie; use mangosmoothie::database;
extern crate serde_json;
let queryresp = db.queryindex(json!({ "selector": { "diet": { "$eq": "omnivore" } }, "fields": ["id", "rev", "name", "class", "diet"] }));
let result = queryresp.unwrap(); let doc = &result.docs[0]; asserteq!(doc.get("class").unwrap().as_str().unwrap(), "mammal"); ```
Mango Smoothie is licensed under MIT. See the LICENSE file for more