couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Formatting_with_Show_and_List" by JamesHowe
Date Wed, 11 May 2011 13:00:45 GMT
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:
  

Mime
View raw message