incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCaffrey" <mmccaff...@ittvis.com>
Subject RE: adding key= clause to view
Date Thu, 06 Aug 2009 21:32:26 GMT
I'm using the couchdb4j.

It's Database.view(String) only has one parameter. 

I see where it's View has functions for setting StartKey, EndKey, etc,
but nothing just for key. 

Thanks

-----Original Message-----
From: Paul Davis [mailto:paul.joseph.davis@gmail.com] 
Sent: Thursday, August 06, 2009 2:14 PM
To: user@couchdb.apache.org
Subject: Re: adding key= clause to view

On Thu, Aug 6, 2009 at 3:49 PM, Michael McCaffrey<mmccaffrey@ittvis.com>
wrote:
> I've got this view working in futon and running directly on a browser
> line.
>
> Any ideashow to get the parameter "key=1" to work with the db.view
>
>

Which db.view?

The python one would be db.view(name, key=1)

The jquery one would be db.view(name, {key: 1}) IIRC, but you'd want
to look at futon code to double check.

Paul Davis

Mime
View raw message