Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83407F3B4 for ; Wed, 27 Mar 2013 22:45:28 +0000 (UTC) Received: (qmail 74856 invoked by uid 500); 27 Mar 2013 22:45:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 74795 invoked by uid 500); 27 Mar 2013 22:45:27 -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 74784 invoked by uid 99); 27 Mar 2013 22:45:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 22:45:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chewbranca@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 22:45:21 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so9219255oag.39 for ; Wed, 27 Mar 2013 15:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=y5CYAE+RlJu3V521BcSM7VfRznen9qneeh+KhWVqseA=; b=RP4K2Ib3h5a/aAzrdnIH1xy0QiWoqmCTX9U0ZQBg4+1Z2pW+Gwuy+OmnvM1anLuKKw FoDVQ5Vv6K4lHLK/kzyv5pBFr9IXlrgrBcnFaNwcrJWutUHeR0Oil7HtNEYBuLxYYBhc RHiTzCrPMqxJoQ6JuiqUhOq7CCehHuMGdL8pKeW6O4sKcRIwJWGaUz1iq08QaCS1SX/L Clo0U/vNTGFdLnd2XUgFU9rfK5g1r1eXd7JR2VAtKycSDhC/2D4hxb9z9g4fQO7UehO/ BwQFKpu8LBWC9/whA5vcI/uY+3wooCCwEgwQx0VjCjGmAwjWuikC1PIPdnEu7v7HCHCr QFlQ== MIME-Version: 1.0 X-Received: by 10.60.31.15 with SMTP id w15mr16620080oeh.0.1364424300019; Wed, 27 Mar 2013 15:45:00 -0700 (PDT) Received: by 10.60.165.103 with HTTP; Wed, 27 Mar 2013 15:44:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Mar 2013 15:44:59 -0700 Message-ID: Subject: Re: couchdb automation tool From: Russell Branca To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=e89a8f643250b9c87004d8efc965 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f643250b9c87004d8efc965 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable This popped up on the mailing list recently: https://github.com/datahogs/couch_normalizer. I haven't played with it yet, but it looks quite interesting. -Russell On Wed, Mar 27, 2013 at 3:02 PM, Ryan Ramage wrote: > There is this couchapp for updating docs: > > http://harthur.github.com/costco/ > > It lets you apply a function to update the data against all matching docs= . > Its probably not fast, nor efficient, but it works fairly well for what i= t > does. > > > > > On Wed, Mar 27, 2013 at 3:47 PM, matt j. sorenson >wrote: > > > this sounds cool... what if you could just pop up a terminal and type: > > > > $ cash money read-my-mind --dry-run > > > > where 'cash' stands for the [c]ouch [a]utomation [sh]ell, of course! > > > > -- > > *matt j. sorenson* > > mobile: 320-424-0309 > > > > phone calls always welcome :) > > > > > > On Tue, Mar 26, 2013 at 8:38 PM, Jens Alfke wrote: > > > > > > > > On Mar 26, 2013, at 4:36 AM, bryan rasmussen < > rasmussen.bryan@gmail.com> > > > wrote: > > > > > > > var x =3D QUERY; > > > > > > > > for(var i =3D 0; i < x.length; i++){ > > > > if(x[i]["field"] =3D=3D "value"){ > > > > x[i]["field2" =3D "value2"]; > > > > } > > > > } > > > > > > Sounds like the JavaScript CouchDB API. Or there are similar APIs for > > > Ruby, Python or whatever other favorite scripting language you have. > > > > > > =97Jens > > > --e89a8f643250b9c87004d8efc965--