开发者

Using CouchDB in a DAL-like way from web2py

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

  • User suggestion for couchdb DAL in web2py
  • Discussion with mdipierro almost a year ago

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 开发者_Python百科more.

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


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜