An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Mango Smoothie [![Build Status](https://travis-ci.org/garrensmith/mango_smoothie.svg?branch=master)](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