cloudant / python-cloudant

A Python library for Cloudant and CouchDB
Apache License 2.0
163 stars 55 forks source link

Add get_query_result convenience method to CouchDatabase #316

Closed vvasuki closed 4 years ago

vvasuki commented 7 years ago

I had the same question as https://github.com/cloudant/python-cloudant/issues/234 , and I think found what I was looking for. But, it would have been much better if get_query_result convenience method were in CouchDatabase, where I sought in vain.

ricellis commented 7 years ago

Yes, this is a hangover from when query was specific to Cloudant before it merged into CouchDB 2.0. I'll leave this open as we may eventually get around to refactoring for the Couch 2 APIs. As you've seen using the CloudantDatabase works for many CouchDB 2 functions.

ricellis commented 4 years ago

We're not doing any enhancements here. In our new cloudant-python-sdk(beta) there is currently no segregation between Couch/Cloudant functionality - if it is necessary to introduce that kind of API split then query functionality will definitely also be available to the Couch models.