Skip to content

chairxiao/CouchCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

安装

  • CouchDB

新建数据库

  • mydb

新建设计文档

  • filter_person: 捕捉类型为person的变化
  • getAll: 获取全部类型为person的文档
{
  "_id": "_design/person",
  "filters": {
    "filter_person": "function (doc,req) {\n  if(doc.$doctype !=\"person\")\n  {return false;}\n  return true;\n}"
  },
  "views": {
    "getAll": {
      "map": "function (doc) {\n  if(doc.$doctype && doc.$doctype == \"person\")\n  emit(doc._id, 1);\n}"
    }
  },
  "language": "javascript"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages