djc / couchdb-python

Python library for working with CouchDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support CouchDB 2.0.0

adrian-the-git opened this issue · comments

Several breaking changes likely make this a fairly significant update

http://docs.couchdb.org/en/stable/whatsnew/2.0.html#version-2-0-0

Does this mean no changes were needed to support CouchDB 2?

It looks like several changes are needed. There's the new query system which uses a declarative syntax instead of map reduce, there are no more temporary views, and some API endpoints appear to have changed.

I closed the issue after realizing it may be outside the scope of this project (maybe a couchdb2-python fork is in order?).

I don't think it's outside of this project, why do you think so?

Some developers don't like to support multiple major versions within one project simultaneously. It's your choice. I didn't feel it was my place to say this project should support Couch 1 AND Couch 2.

In principle I haven't seen anything so far that would make it hard to support CouchDB 2 from the same code base.

Hi guys,

Did this conversation progress at all? I'm starting a new CouchDB 2.0 project. I've been using this project as a pip install to get me started and it's been working fairly well. However I'm starting to hit a few areas now where I want to take advantage of 2.0 features such as the Mango query language and proper support for the Erlang query server. (Please do correct me if I am wrong - I am new to CouchDB). Is there a recommended Github project for working with 2.0 or are there plans to support it here?

@danballance I have no plans to support it proactively in this project, but I'm open to merging patches for 2.0 support, as long as they don't remove 1.x support. I don't know of any other good projects you might use.

@danballance See also #308. Still did not have the time to investigate on that.

So most things are working fine with 2.0. Locally I now have a working branch for #300. It still needs tests and docstrings, so I'll do some more testing and try to get a pull request together before too long. I don't see it clashing with the existing code at all.

If I have some free time I may try and take a look at #308 but since it's not an issue that has hit me I'm not sure when I'll have time either. Let's see how my PR goes and take it from there I guess.

There is a python project which almost support Couchdb 2.0, https://github.com/cloudant/python-cloudant. It has other features as well though.