NAME
Couchbase::Couch::Design - Object representing a design document
DESCRIPTION
This manual page describes several convenience methods.
get_view_path($view_name)
Given the name of a view belonging to this design document, yields a path appropriate for executing the view, e.g.
my $design = $cbo->couch_design_get("a_design");
my $vpath = $design->get_view_path("a_view");
print $vpath;
# => "_design/a_design/_view/a_view"
get_view_iterator($view_name,%options
Given a view name, get the Couchbase::Couch::Handle object appropriate for it.
Equivalent to:
$cbo->couch_view_iterator($design->get_view_path($view_name))
get_view_results($view_name,%options)
Equivalent to:
$cbo->couch_view_slurp($design->get_view_path($view_name));