Filter and update functions in CouchDB?

微笑、不失礼 提交于 2019-12-13 16:08:18

问题


What are these functions?

Where can I read about how they work?

The CouchDB definitive guide doesn't explain it, weird.


回答1:


From the CouchDB definitive guide:

There are other design document functions that are being introduced at the time of this writing, including _update and _filter that we aren’t covering in depth here. Filter functions are covered in Chapter 20, Change Notifications. Imagine a web service that POSTs an XML blob at a URL of your choosing when particular events occur. PayPal’s instant payment notification is one of these. With an _update handler, you can POST these directly in CouchDB and it can parse the XML into a JSON document and save it. The same goes for CSV, multi-part form, or any other format.

More info on update from the wiki:

http://wiki.apache.org/couchdb/Document_Update_Handlers



来源:https://stackoverflow.com/questions/4952419/filter-and-update-functions-in-couchdb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!