couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edoardo Marcora" <marc...@caltech.edu>
Subject Re: Is it possible to pass multiple values to the view key param?
Date Mon, 13 Oct 2008 06:22:49 GMT
Great!!! Thanx!!!

On Sun, Oct 12, 2008 at 10:45 PM, Paul Davis
<paul.joseph.davis@gmail.com> wrote:
> Dado,
>
> If you're using a relatively recent copy of trunk you can post
> {"keys": ["key1", "key2", ....etc]} to any user defined view and the
> _all_docs view to get the rows that match.
>
> HTH,
> Paul
>
> On Mon, Oct 13, 2008 at 1:02 AM, Edoardo Marcora <marcora@caltech.edu> wrote:
>> If I understand correctly, the "key" url query arg of a view is used
>> to select a single record whereas "starkey" and "endkey" are for
>> selecting multiple adjacent records. Is there a way to select multiple
>> non-adjacent records by, e.g., passing multiple "key" url query args?
>> What I am trying to get at is something like the IN operator in SQL (I
>> know, I know).
>>
>> Thanx in adv for your help,
>>
>> Dado
>>
>> --
>> Edoardo "Dado" Marcora, Ph.D.
>>
>> California Institute of Technology
>> Division of Biology
>> Beckman Behavioral Biology Laboratories, Room 238
>> MC 216-76
>> 1200 E California Blvd
>> Pasadena, CA 91125
>>
>> Home:  (626) 628-5342
>> Work:  (626) 395-3924
>> Fax:   (626) 395-8474
>> Email: marcora@caltech.edu
>> Web:   http://marcora.caltech.edu/
>>
>> ''Sono diverso perche' sono omozigoto.''
>> http://marcora.caltech.edu/omozigoto.wav
>>
>



-- 
Edoardo "Dado" Marcora, Ph.D.

California Institute of Technology
Division of Biology
Beckman Behavioral Biology Laboratories, Room 238
MC 216-76
1200 E California Blvd
Pasadena, CA 91125

Home:  (626) 628-5342
Work:  (626) 395-3924
Fax:   (626) 395-8474
Email: marcora@caltech.edu
Web:   http://marcora.caltech.edu/

''Sono diverso perche' sono omozigoto.''
http://marcora.caltech.edu/omozigoto.wav

Mime
View raw message