> A) GET /db/_show_view/mydesign/myview
> B) GET /db/_show_view/mydesign/myshowfunc/myview
> C) GET /db/_view/mydesign/myview?strartkey="foo"&show=myshowfunc
Call me thick but C looks cleaner to me.
> {
> ...
> "show" : {
> "docs" : { ... },
> "views" : {
> "myshowfunc" : "function(row, head) { ... }"
> }
> }
how about including your show fns in show { } ?
{
...
views: {
foo : { map : ... }
},
show: {
as_xml: function(...) { ... },
}
}
> I'm leaning toward letting the user decide at query-time which view to
> render using which show-func, that is, options B or C.
Well I thought that that was a given, flexibility so that users can
define a couple of views, a couple of shows so that the combinations
then are more useful.
U