couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: CouchDB equivalent of SQL update
Date Fri, 10 Jul 2009 00:15:38 GMT
On Thu, Jul 9, 2009 at 2:29 PM, Dmitry Unkovsky<oil.crayons@gmail.com> wrote:
> 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.
>

It'd be about bridging the Erlang and JavaScript stuff. Take a look at
test/query_server_spec.rb for a test suite if you are curious.
Hopefully _update will make it into 0.10.0.

Chris

> Best, Dmitry.
>
> 2009/7/9 Chris Anderson <jchris@apache.org>:
>> 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.
>>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message