couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCaffrey" <>
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. 


-----Original Message-----
From: Paul Davis [] 
Sent: Thursday, August 06, 2009 2:14 PM
Subject: Re: adding key= clause to view

On Thu, Aug 6, 2009 at 3:49 PM, Michael McCaffrey<>
> 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

View raw message