Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added help for running js demo, removed some cruft from cdb-view

  • Loading branch information...
commit 73cbb649d9eb85d5587ec5ab418f8565b6c8ed05 1 parent 96b6915
@codehero authored
Showing with 8 additions and 2 deletions.
  1. +6 −0 README
  2. +2 −2 javascript/cdb-view.js
View
6 README
@@ -35,6 +35,12 @@ RUNNING TESTS
the web pages for system installation packages.
-As a development package, this doesn't really establish linking rules.
If you get linker errors, point LD_LIBRARY_PATH to the lib directory.
+ -cdb-view.js is meant to take as stdin input a couchdb view response.
+ -Run
+
+ node nodetest.js < config.json
+
+ as demonstration of the library.
NOTES
View
4 javascript/cdb-view.js
@@ -6,6 +6,7 @@ var viewParser = {
/* Force distinct callback for beginning of map.
* Key will be null here. */
"{":function(key){
+ sys.puts("Beginning couchdb response..");
},
/* Catchall for other data.
@@ -33,13 +34,12 @@ var viewParser = {
},
function(){
sys.puts("Ended Rows.");
- },
- function(err){
}
],
/* Force distinct callback for end of map. */
"}":function(){
+ sys.puts("Ending couchdb response..");
}
}

0 comments on commit 73cbb64

Please sign in to comment.
Something went wrong with that request. Please try again.