diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-08-12 19:58:14 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-08-12 19:58:14 +0000 |
commit | e10858cd53e9b2a1cf769d7d71e4c1adcf30b4f3 (patch) | |
tree | 3f2ed7cdde56caf6559b6402b0861e3249ca54f4 /share/www/script/couch.js | |
parent | d6cb0bc17d834675a69620940036490b909a4b0d (diff) |
Introduces native Erlang query servers. Closes COUCHDB-377
Thanks Mark Hammond and Paul Davis for doing most of the work, and Michael McDaniel for the inspiration.
There is still room for improvement on the APIs exposed to the Erlang views, as well as likely a whole lot of work to be done to increase parallelism. But the important part now is that we have native Erlang views.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index af3bb8fb..eba60ad5 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -127,8 +127,8 @@ function CouchDB(name, httpHeaders) { } // Applies the map function to the contents of database and returns the results. - this.query = function(mapFun, reduceFun, options, keys) { - var body = {language: "javascript"}; + this.query = function(mapFun, reduceFun, options, keys, language) { + var body = {language: language || "javascript"}; if(keys) { body.keys = keys ; } |