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 2F624FE8D for ; Wed, 27 Mar 2013 22:03:11 +0000 (UTC) Received: (qmail 25849 invoked by uid 500); 27 Mar 2013 22:03:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25815 invoked by uid 500); 27 Mar 2013 22:03:09 -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 25807 invoked by uid 99); 27 Mar 2013 22:03:09 -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:03:09 +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 ryan.ramage@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 22:03:04 +0000 Received: by mail-ob0-f179.google.com with SMTP id un3so8703985obb.10 for ; Wed, 27 Mar 2013 15:02:43 -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=vBYjrwHEsw+CCvTO2zfF3N2PcbSf1fx3FMVH8fzZIqQ=; b=XUsZWZ25yR1qQZfMQb9d2KSBjOqXUisgx+E4STFsQqe1cK5QXtMaPWPTBe7/hgYUx3 j1nuYxcaAtdWiPhaOxxV2lxbUMvnZAkpS9/+hK/pSZ8hnFidKkhvYq2XvoSGHx317dwe 8h8NOLP9amE9y29ZrJE3ujrG0y8hmgZloxnY5MVnJiR5CYmja/6+P4ooDwFMJSO2lcAW 1DvIOrXxS2vJGvW7dwAts63Yrhx7aPmy1fkvMlIzEK4Ia5G6VWxEFjacC1g/3eH1VnVU QWLkh3ZOm7UdGhm7JCgaG1bEPuZjXy6tSEmT5CmTscqcGGgV4va73qWMVDaZ3qA2YUhb lrrg== MIME-Version: 1.0 X-Received: by 10.60.3.130 with SMTP id c2mr15872835oec.59.1364421763202; Wed, 27 Mar 2013 15:02:43 -0700 (PDT) Received: by 10.60.39.169 with HTTP; Wed, 27 Mar 2013 15:02:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Mar 2013 16:02:43 -0600 Message-ID: Subject: Re: couchdb automation tool From: Ryan Ramage To: user Content-Type: multipart/alternative; boundary=e89a8fb2017e850a1c04d8ef3279 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb2017e850a1c04d8ef3279 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 it does. On Wed, Mar 27, 2013 at 3:47 PM, matt j. sorenson wr= ote: > 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 > > 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 > --e89a8fb2017e850a1c04d8ef3279--