mibes / couch-rs

CouchDB library for Rust
Apache License 2.0
59 stars 17 forks source link

Key for view can now be of type other than String #18

Closed marius851000 closed 2 years ago

marius851000 commented 2 years ago

I'm learning CouchDB by reading the documentatio, and saw the ability to index views by type other than String. This looked pretty interesting, and actually needed it for the school project where I decided to use couchdb (cause it seems cool).

I only did the required change for views, not for document, where they are still indexed by DocumentId (a.k.a String).

This introduce breaking change, mostly due to needing to convert String to Value for query_raw (nothing a .into() can't handle)

I also executed the tests.

mibes commented 2 years ago

Hi Marius, thanks for the pull request.

I've merged it into the "develop" branch for now, so I can better assess any impact on backwards compatibility. If all is OK, I'll release a new version with the changes.

mibes commented 2 years ago

Hi Marius, your changes are in the 0.8.37 release.

Thanks!