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 "Document_Update_Handlers" by Matt Freeman
Date Mon, 06 Dec 2010 03:13:32 GMT
Dear Wiki user,

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

The "Document_Update_Handlers" page has been changed by Matt Freeman.
The comment on this change is: clarify usage.
http://wiki.apache.org/couchdb/Document_Update_Handlers?action=diff&rev1=13&rev2=14

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

  }}}
  NOTE: '''The functions should be quoted'''.
  
- The handler function takes the document and the http request as parameters. It returns a
two-element array: the first element is the (updated) document, which is committed to the
database. The second element is the response that will be sent back to the caller.
+ The handler function takes the document and the http request as parameters. It returns a
two-element array: the first element is the (updated or new) document, which is committed
to the database. If the first element is null no document will be committed to the database.
The second element is the response that will be sent back to the caller.
  
  == Usage ==
  To invoke a handler, use one of:

Mime
View raw message