在CouchDB中过滤和更新功能? [英] Filter and update functions in CouchDB?

查看:87
本文介绍了在CouchDB中过滤和更新功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些功能是什么?

在哪里可以了解它们的工作原理?

Where can I read about how they work?

CouchDB的权威

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

推荐答案

来自CouchDB权威指南:

From the CouchDB definitive guide:


在撰写本文时,还有其他设计文档
函数正在
引入,包括
_update和_filter我们还没有在这里深入介绍。 过滤
函数在第20章
更改通知中进行了介绍。
想象一下一个Web
服务在您选择的
URL上发布XML Blob的情况。发生了特定的
事件。 PayPal的即时付款
通知就是其中之一。使用
_update处理程序,您可以直接在CouchDB中发布这些内容,并且可以将
的XML解析为JSON文档并保存
。 CSV,多部分
表单或任何其他格式也是如此。

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.

有关Wiki更新的更多信息:

More info on update from the wiki:

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

这篇关于在CouchDB中过滤和更新功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆