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 C7949FE37 for ; Tue, 26 Mar 2013 11:37:00 +0000 (UTC) Received: (qmail 60755 invoked by uid 500); 26 Mar 2013 11:36:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 60374 invoked by uid 500); 26 Mar 2013 11:36:58 -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 60348 invoked by uid 99); 26 Mar 2013 11:36:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 11:36:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rasmussen.bryan@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-we0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 11:36:52 +0000 Received: by mail-we0-f176.google.com with SMTP id s43so1850750wey.35 for ; Tue, 26 Mar 2013 04:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=oFJPLDBWrkskD9J7OoC1zRagh6mE0s0Ue6CSABBzKBQ=; b=SRuu1mD7w3jRVvYgEY6IYa8pIdmbTI/z9d7l8HM3DUkU9qzPoIJgsGLH7b6mAf7v3F NVFrdkhlEwttmW4DCPbjitH95Q+zuGkfHE8ubYbVcuDecXEBJagVOKB/XLi6e6ww48GY S06u0CVj+i7pixR5QiBZ1U+mAcLTYpsoFD6uG0bRgnrHFFkYHKucRlXK3BT/7QwxCJYN qBA1sc0HU4svoudghEHNsFQIeV/NEb+p3ujvOXsL/M7MYw+PQMLIvPhexhaI75Mw3enx janxYOHmkhTWT/VRspK/cATvMe1Vw8kgudPFudueulNWhcwhcy/6FJRI/q8SlVn0UHuH oInw== MIME-Version: 1.0 X-Received: by 10.180.90.35 with SMTP id bt3mr2152011wib.4.1364297791590; Tue, 26 Mar 2013 04:36:31 -0700 (PDT) Received: by 10.194.250.69 with HTTP; Tue, 26 Mar 2013 04:36:31 -0700 (PDT) Date: Tue, 26 Mar 2013 12:36:31 +0100 Message-ID: Subject: couchdb automation tool From: bryan rasmussen To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I seem to remember this a long time ago, but I can't find it now, hoping someone here knows about it so I don't have to build it myself. I have a bunch of records that need to be updated, I would like to do have a tool that provides me some level of abstraction so I can I write something like var x = QUERY; for(var i = 0; i < x.length; i++){ if(x[i]["field"] == "value"){ x[i]["field2" = "value2"]; } } x.saveAll(); And then the tool will take care of going through all the documents in x and updating etc. It would be good if it was a REPL so I could do stuff like x[i]["field2" = input(); and then I would get asked for my input and I could give it a variable or function to evaluate. I swear I saw something like this some small team had developed about 3 years ago, and I would like to use it now. Thanks, Bryan Rasmussen