https://github.com/garrensmith/mango_smoothie
CouchDB Mango client for rust
https://github.com/garrensmith/mango_smoothie
couchdb couchdb-mango rust
Last synced: about 1 month ago
JSON representation
CouchDB Mango client for rust
- Host: GitHub
- URL: https://github.com/garrensmith/mango_smoothie
- Owner: garrensmith
- License: mit
- Created: 2016-11-22T08:02:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T07:01:59.000Z (over 8 years ago)
- Last Synced: 2025-04-15T03:13:44.416Z (about 1 month ago)
- Topics: couchdb, couchdb-mango, rust
- Language: Rust
- Size: 612 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mango Smoothie [](https://travis-ci.org/garrensmith/mango_smoothie)
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 mango_smoothie;
use mango_smoothie::database;
#[macro_use]
extern crate serde_json;let query_resp = db.query_index(json!({
"selector": {
"diet": {
"$eq": "omnivore"
}
},
"fields": ["_id", "_rev", "name", "class", "diet"]
}));let result = query_resp.unwrap();
let doc = &result.docs[0];
assert_eq!(doc["class"], "mammal");
```## License
*Mango Smoothie* is licensed under MIT. See the LICENSE file for more