1

在允许将文档添加到数据库之前,我需要编写一个设计文档来检查其他数据库(相同的 CouchDB 实例)中的产品上是否存在 ID。

这应该遵循以下原则:

Actor -> Requests to store a document in the database. 
System -> Checks if a document exists in an other database so it can validate the input from the request. 
System -> Adds the document if validation succeeds or refuses the document if validation fails.

我的问题是。是否可以针对其他数据库的内容进行验证?到目前为止,我还没有找到任何关于从设计文档(更新处理程序)中访问其他数据库中的文档的信息。

4

0 回答 0