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 <[email protected]>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 <[email protected]> wrote: > > > > > On Mar 26, 2013, at 4:36 AM, bryan rasmussen <[email protected]> > > wrote: > > > > > var x = QUERY; > > > > > > for(var i = 0; i < x.length; i++){ > > > if(x[i]["field"] == "value"){ > > > x[i]["field2" = "value2"]; > > > } > > > } > > > > Sounds like the JavaScript CouchDB API. Or there are similar APIs for > > Ruby, Python or whatever other favorite scripting language you have. > > > > —Jens >
