Unique constraints in couchdb

后端 未结 4 1538
自闭症患者
自闭症患者 2020-12-05 05:03

Are there any techniques/proposals to enforce unique constraints? Yes, we can create key that\'s unique, but we cannot change key and keys and also this approach is not suit

4条回答
  •  天命终不由人
    2020-12-05 05:09

    CouchDB has "changes feed" http://docs.couchdb.org/en/2.3.1/api/database/changes.html#changes

    An update action is the same as a new action, only differing by _rev and object's 'new' property.

    Filter functions work like a list or a show function but differ in being oriented to 'changes queue actions' http://docs.couchdb.org/en/2.3.1/ddocs/ddocs.html#filterfun

    Design documents, contemplate the ability to filter any adding to the changes queue.

    https://docs.couchdb.org/en/master/ddocs/index.html

提交回复
热议问题