Skip to content

Instantly share code, notes, and snippets.

@thanos
Created August 24, 2010 20:27
Show Gist options
  • Select an option

  • Save thanos/548253 to your computer and use it in GitHub Desktop.

Select an option

Save thanos/548253 to your computer and use it in GitHub Desktop.
{
"_id": "_design/erlang_reports",
"_rev": "10-3d4e646c0990861c315e984056c397a7",
"language": "erlang",
"views": {
"revisions": {
"map": "fun({Doc}) ->\u000a <<K,_/binary>> = proplists:get_value(<<\"_rev\">>, Doc, null),\u000a V = proplists:get_value(<<\"_id\">>, Doc, null),\u000a Emit(<<K>>, V)\u000aend.\u000a\u000a",
"reduce": "fun(Keys, Values, ReReduce) -> length(Values) end."
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment