Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 8391 invoked from network); 4 Jun 2008 01:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 01:45:12 -0000 Received: (qmail 79900 invoked by uid 500); 4 Jun 2008 01:45:15 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 79871 invoked by uid 500); 4 Jun 2008 01:45:15 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 79860 invoked by uid 99); 4 Jun 2008 01:45:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 18:45:14 -0700 X-ASF-Spam-Status: No, hits=3.3 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [219.235.231.7] (HELO t3gserver01.t3gt.com) (219.235.231.7) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 01:44:21 +0000 Subject: about the "map" in JavaScript query function To: couchdb-dev@incubator.apache.org X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: zhengji.li@t3gt.com Date: Wed, 4 Jun 2008 09:44:04 +0800 X-MIMETrack: Serialize by Router on t3gserver01/pdue(Release 7.0.2|September 26, 2006) at 2008-06-04 09:44:32 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I guess the "map" is going to be changed to "emit". But I think I better choice would be "sow": One *sow* something in the function, then the main.js can *reap* them. function (doc) { map(null, doc); } BTW, couch_server:all_databases() does not work well on Windows, because it's file/directory name are not case-sensitive. Could I submit some update for this?