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] Trivial Update of "Formatting with Show and List" by JensAlfke
Date Tue, 24 Feb 2009 06:13:49 GMT
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:
  

Mime
View raw message