1602/jugglingdb — pull request #91 by athieriot (2012-06-10 15:07:01+00:00)
Title: First version of a cradle adapter

Hi,

I made a first implementation of a cradle adapter so that jugglingdb can handle a CouchDB database.

There is some caveat but I think it is a good first version as this adapter pass almost all the common tests.

In the issues I see :

- CouchDB doesn't have the concept of Collections (like mongodb). So, I take the side to add a "nature" field in each objects. I think it is better than creating a new database for each models but it is only my point of view. It is transparent for users.

- The filter implementation is the same that the memory adapter so it is maybe not the most effective way to do it. I thought about using CouchDB views but that can be made in a second time.

- An other side effect of this filter implementation is that it doesn't support advanced querying (between, gt, lt, etc...). This is the only test avoided.

- I must have to convert every dates in strings to pass the tests. I am really not sure this is a good things and I think a double check is necessary.

I will be very pleased if someone can watch the code.
I can made fixes if needed before accepting this pull request.

Thank you !

Aurélien