Skip to navigation
Get a couchdb reduce map couchdb view with rust
17.10.23
```rust use couch_rs::types::query::QueryParams; use couch_rs::types::view::RawViewCollection; use couch_rs::Client; let c = Client::new( "http://couchdb.bar.net/", "user", "password", ) .unwrap(); let db = c.db("logger").await; if db.is_ok() { let mut o: Option
> = Some(QueryParams::default().group(true).group(true)); let doc: RawViewCollection
= db.unwrap().query("loggers", "loggers", o).await.unwrap(); println!("{:?}", doc); } ```
https://docs.rs/couch_rs/latest/couch_rs/types/query/struct.QueryParams.html
Reply
Anonymous
Information Epoch 1751565883
Save trees.
Home
Notebook
Contact us