Skip to content

Commit

Permalink
added json views for the design document
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidkahl committed Mar 12, 2012
1 parent 9529f37 commit a379464
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dbsetup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"_id": "_design/sparks",
"language": "javascript",
"views": {
"all": {
"map": "function(doc) {\n emit(null, doc);\n}"
},
"byid": {
"map": "function(doc) {if(doc._id){emit(doc._id, doc);}}"
},
"allbyid": {
"map": "function(doc) {if(doc.url){emit(doc._id, null);}}"
}
}
}

0 comments on commit a379464

Please sign in to comment.