Question

It looks like using CouchDB with the standard web2py DAL is still a ways off:

I'm working on using CouchDB from web2py. python-couchdb looks fairly powerful and well designed but not particularly well documented. Does anybody have good examples of using CouchDB from in a DAL-like way? The best I've found is this blog entry by David Watson, but it doesn't go into much depth. I'm looking for more.

Alternatively, I'll accept information about the status of CouchDB in web2py that is more recent.

Was it helpful?

Solution

Look into the file gluon/contrib/gql.py which overrides the DAL to work on GAE. couchdb would work very much the same. we have one partial implementation of MondoDB support. We have solved the problem of uuid vs autoincrement integer id. Joins us on the web2py mailing list to discuss more.

OTHER TIPS

The new web2py DAL is in trunk (still being tested before release), and it looks like it will have support for CouchDB and MongoDB (also here and here), and probably more to come.

CouchDB has been working in web2py as of about 1/6/11. This is me talking with Massimo about the bugs, and subsequent fixes, here:

http://groups.google.com/group/web2py/browse_thread/thread/b110d60a4e13953e/9c6f46805d106d17?lnk=gst&q=couchdb#9c6f46805d106d17

I'm not sure if this has been promoted into the stable branch or not yet, so you may need to synch against trunk for this to work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top