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 2009/02/24 07:13:49 UTC
[Couchdb Wiki] Trivial Update of "Formatting with Show and List" by JensAlfke
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The following page has been changed by JensAlfke:
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List
The comment on the change is:
Oops, fixed list formatting
------------------------------------------------------------------------------
The `head` parameter -- which is only passed into the first call -- contains an object with information about the view that is to be iterated over. It's much like the response object returned from a view query in the CouchDB JavaScript API; useful properties include `total_rows` and `offset`.
The `row_info` parameter contains an object with information about the iteration state. Its properties include:
- * `row_number` (the current row number)
+ * `row_number` (the current row number)
- * `first_key` (the first key of the view to be listed)
+ * `first_key` (the first key of the view to be listed)
- * `prev_key` (the key of the row in the previous iteration)
+ * `prev_key` (the key of the row in the previous iteration)
Example list function: