Repository: couchdb-couch-mrview Updated Branches: refs/heads/1993-bigcouch-couch-mrview 9410bc6b3 -> f407a9e0f
Export extract_view for use with ddoc validation in fabric Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/f407a9e0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/f407a9e0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/f407a9e0 Branch: refs/heads/1993-bigcouch-couch-mrview Commit: f407a9e0fe3bc4e2905639f4118d75c7ad329010 Parents: 9410bc6 Author: Russell Branca <[email protected]> Authored: Tue Mar 11 13:11:57 2014 -0400 Committer: Russell Branca <[email protected]> Committed: Tue Mar 11 13:11:57 2014 -0400 ---------------------------------------------------------------------- src/couch_mrview_util.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/f407a9e0/src/couch_mrview_util.erl ---------------------------------------------------------------------- diff --git a/src/couch_mrview_util.erl b/src/couch_mrview_util.erl index 8a36c0b..815bf08 100644 --- a/src/couch_mrview_util.erl +++ b/src/couch_mrview_util.erl @@ -24,8 +24,9 @@ -export([calculate_data_size/2]). -export([validate_args/1]). -export([maybe_load_doc/3, maybe_load_doc/4]). --export([extract_view_reduce/1]). +-export([extract_view/4, extract_view_reduce/1]). -export([get_view_keys/1, get_view_queries/1]). +-export([set_view_type/3]). -define(MOD, couch_mrview_index). @@ -711,6 +712,7 @@ index_of(Key, [_ | Rest], Idx) -> mrverror(Mesg) -> throw({query_parse_error, Mesg}). + extract_view_reduce({red, {N, _Lang, #mrview{reduce_funs=Reds}}, _Ref}) -> {_Name, FunSrc} = lists:nth(N, Reds), FunSrc.
