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 StephaneAlnet
Date Sun, 15 May 2011 20:55:27 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 StephaneAlnet.
The comment on this change is: Added couple links to CouchDB Guide relevant sections..
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List?action=diff&rev1=26&rev2=27

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

  Show and list functions are side effect free and idempotent. They can not make additional
HTTP requests against CouchDB. Their purpose is to render JSON documents in other formats.
  
  == Showing Documents ==
+   [[http://guide.couchdb.org/draft/show.html|CouchDB Guide section]]
+ 
  Show functions are stored in your design document, under the `shows` key. Here's an example
set of show functions:
  
  {{{#!highlight javascript
@@ -65, +67 @@

  Since CouchDB 0.11.0 you can use the `send()` function as explained below in show functions
as well.
  
  == Listing Views with CouchDB 0.10 and later ==
+   [[http://guide.couchdb.org/draft/transforming.html|CouchDB Guide section]]
+ 
  List functions are stored under the `lists` key of a design document. Here's an example
design doc with list functions, in addition to views:
  
  {{{#!highlight javascript

Mime
View raw message