You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2011/05/11 15:00:45 UTC

[Couchdb Wiki] Update of "Formatting_with_Show_and_List" by JamesHowe

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Formatting_with_Show_and_List" page has been changed by JamesHowe.
The comment on this change is: clarification.
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List?action=diff&rev1=25&rev2=26

--------------------------------------------------

  }
  }}}
  == Listing Views with CouchDB 0.9 ==
- List functions were introduced in CouchDB 0.9 and had different, more complex API:
+ List functions were introduced in CouchDB 0.9 and had different, more complex API. This API is no longer available after 0.10.
  
  A list function has a more interesting signature, as it is passed the head of the view on first invocation, then each row in turn, then called one more time for the tail of the view. The function should check the `head` and `row` parameters to identify which state it's being called in; the sequence of calls to `listfn`, for a view with three rows, would look like: