From user-return-5471-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Jul 09 21:30:29 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 35364 invoked from network); 9 Jul 2009 21:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 21:30:29 -0000 Received: (qmail 97402 invoked by uid 500); 9 Jul 2009 21:30:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97309 invoked by uid 500); 9 Jul 2009 21:30:38 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 97299 invoked by uid 99); 9 Jul 2009 21:30:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:30:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oil.crayons@gmail.com designates 209.85.212.200 as permitted sender) Received: from [209.85.212.200] (HELO mail-vw0-f200.google.com) (209.85.212.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:30:30 +0000 Received: by vwj38 with SMTP id 38so406911vwj.13 for ; Thu, 09 Jul 2009 14:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=vEnpw4dFiDFRHpUHSIRWKyoPymmtUqm7PFEHomN1itQ=; b=PPaXKqRXP5bcgxKE80wuVoIaZDtLVZiGneYTx5kvDjLxoJLLbbhFmCnKdhZrG3aoXo AHLa5uz74ihEsWczWVM3kyZdyyLJMcmX5JMquRbdkmOMh9lmdVTmvXf12+De96NHdf4y HTHo29zddn2SZqmK/+dbG72T1Suq1/15x/jXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=KkSW8uneEpu6N/QV0+9Ex7Zb3e8lPqn9bT0xXzfUh8sTfgL08MCL8HAZbAE0+HAsTy hveCmXVOSl/ee82eB86CieWRmj/huswrcV50Rpd9JHdbQChAG/NLpHrxN5PcXf3aLGU+ iPuf3a8eX/l95GhUg+pqRsC5UDY86wHeZAkzc= MIME-Version: 1.0 Received: by 10.220.45.198 with SMTP id g6mr1827307vcf.34.1247175009080; Thu, 09 Jul 2009 14:30:09 -0700 (PDT) In-Reply-To: References: <26650b020907080702w5fa35b22w2d080896888d9224@mail.gmail.com> <26650b020907090801x4c56154aq5ac5a831f23b552f@mail.gmail.com> From: Dmitry Unkovsky Date: Fri, 10 Jul 2009 00:29:49 +0300 Message-ID: <558050c20907091429i74fddb63uf8eeb930dd44e934@mail.gmail.com> Subject: Re: CouchDB equivalent of SQL update To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I haven't come ready to start just reading all of code yet, while 21K lines in trunk feels ok, I'll start that campaign just a bit later. For the beginning I'd try to figure out how to put hands on the feature mentioned. If you don't mind to outline something like list of files I should look through at first place, with few lines what to add there, I'll try to get it done. But beware! I'm not really erl-speaking now, and you probably should take care not to waste time on numb, as it's only question of time to get me there on my own. Best, Dmitry. 2009/7/9 Chris Anderson : > We've been talking about an _update handler which will allow this to > be implemented in JavaScript. > > Basically the idea is that you can write a js function that gets the > oldDoc, and the HTTP request / userCtx, and saves whatever it wants. > If anyone feels like writing some patches I can help you get started > on the dev list. >