Module: CouchPotato::View

Defined in:
lib/couch_potato/view/raw_view_spec.rb,
lib/couch_potato/view/view_query.rb,
lib/couch_potato/view/custom_views.rb,
lib/couch_potato/view/base_view_spec.rb,
lib/couch_potato/view/model_view_spec.rb,
lib/couch_potato/view/custom_view_spec.rb,
lib/couch_potato/view/properties_view_spec.rb

Overview

a view for custom map/reduce functions that returns the raw data fromcouchdb example: view :my_custom_view, :map => “function(doc) { emit(doc._id, null); }”, :type => :raw, :reduce => nil optionally you can pass in a results filter which you can use to process the raw couchdb results before returning them example: view :my_custom_view, :map => “function(doc) { emit(doc._id, null); }”, :type => :raw, :results_filter => lambda{|results| results.map{|row| row}}

Defined Under Namespace

Modules: CustomViews Classes: BaseViewSpec, CustomViewSpec, ModelViewSpec, PropertiesViewSpec, RawViewSpec, ViewQuery