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 "Introduction_to_CouchDB_views" by wolfgangkuehn
Date Thu, 13 Oct 2011 15:11:19 GMT
Dear Wiki user,

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

The "Introduction_to_CouchDB_views" page has been changed by wolfgangkuehn:
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views?action=diff&rev1=39&rev2=40

Comment:
Fixed chopped of sentences

    emit(doc._id, doc);
  }
  }}}
- This function defines a table that contains all the documents in a CouchDB database, with
the _id as the .
+ This function defines a table that contains all the documents in a CouchDB database, with
the _id as the key.
  
- A view function should accept a single argument: the document object. To produce results,
it should call the implicitly available ''emit(key, value)'' function. For every invocation
of that function, a result row is added to the view (if neither the ''key'' nor the ''value''
are undefined). The rows in the computed table are updated automatically with any changes
that have been made (additions, edits, or deletions) since the view w
+ A view function should accept a single argument: the document object. To produce results,
it should call the implicitly available ''emit(key, value)'' function. For every invocation
of that function, a result row is added to the view (if neither the ''key'' nor the ''value''
are undefined). The rows in the computed table are updated automatically with any changes
that have been made (additions, edits, or deletions) since the view was created.
  
  Here is a slightly more complex example of a function that defines a view on values computed
from customer documents:
  

Mime
View raw message