From e10858cd53e9b2a1cf769d7d71e4c1adcf30b4f3 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 12 Aug 2009 19:58:14 +0000 Subject: 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 --- share/www/script/couch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/www/script/couch.js') 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 ; } -- cgit v1.2.3