vj12
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

list.js
application/javascript

Download raw (267 bytes)

// Helpers for writing server-side _list functions in CouchDB
exports.withRows = function(fun) {
 var f = function() {
    var row = getRow();
    return row && fun(row);
  };
  f.iterator = true;
  return f;
}

exports.send = function(chunk) {
  send(chunk + "\n")
}