You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Hey, thanks for the notice. I haven't installed CouchDB 2 yet, but will likely do so soon after release. Still, I'm not sure adding APIs for Mango will be a high priority for me, personally, so it would be great if you're able to contribute some code towards this goal.
Just thought I'd chime in that without some mango support, there will be no way to perform a query without creating a view, as they've removed temporary views in favor of this new json-based query system.
I'm new to CouchDB and this project but I'm looking at trying to add these new functions mango_query and mango_index. If I have any success I'll submit a pull request.
I would like to add an implementation to CouchDB-Python. If you can provide one that fits into the library and has comments in English, I could probably review it.
Activity
djc commentedon Aug 14, 2016
Hey, thanks for the notice. I haven't installed CouchDB 2 yet, but will likely do so soon after release. Still, I'm not sure adding APIs for Mango will be a high priority for me, personally, so it would be great if you're able to contribute some code towards this goal.
adrian-the-git commentedon Sep 29, 2016
Just thought I'd chime in that without some mango support, there will be no way to perform a query without creating a view, as they've removed temporary views in favor of this new json-based query system.
danballance commentedon Nov 2, 2016
I'm new to CouchDB and this project but I'm looking at trying to add these new functions mango_query and mango_index. If I have any success I'll submit a pull request.
mraygalaxy commentedon Jun 25, 2017
Honestly, this was really dead simple to monkeypatch:
_, _, data = db.resource.post_json('_find', body={"selector" : query}, headers = {'Content-Type': 'application/json'})return data["docs"]Almost nearly a one-liner. Anybody wanna make a PR?
pirr commentedon Sep 25, 2017
Maybe like in django:
For example:
I have implementation of this. If it is acceptable, I can provide my implementation.
Q obj - https://github.com/pirr/alt_couch/blob/c690771f729c38ac39041d4fea981b44623a0748/_libs/vb/couch.py#L14
find method - https://github.com/pirr/alt_couch/blob/c690771f729c38ac39041d4fea981b44623a0748/_libs/vb/couch.py#L222
Sorry for my terrible english.
djc commentedon Sep 26, 2017
I would like to add an implementation to CouchDB-Python. If you can provide one that fits into the library and has comments in English, I could probably review it.
pirr commentedon Sep 27, 2017
I added filter method (mango query) with comments:
pirr@6f051bc
djc commentedon Sep 27, 2017
Looks pretty good, do you want to do a pull request for this?
pirr commentedon Sep 27, 2017
#324 this is my first pool reguest. If there are comments, please, I will correct