We use our own library (Jetty (asynchronous) HTTP client & Gson or Jackson), 
but we do use the ViewQuery class in ektorp, which does a really nice job of 
encapsulating and encoding the various querystring parameters that can be used 
when getting views.

Martin

On 8 Mar 2012, at 13:44, Patrick Maia wrote:

> Thank you. I'll take a look in ektorp, but I think I'll end up writing my
> own lib as most of you did.
> 
> Patrick Maia
> +55 83 8740-8192
> 
> 
> On Thu, Mar 8, 2012 at 4:19 AM, Aurélien Bénel <[email protected]>wrote:
> 
>> Hi,
>> 
>>> The majority of the time a good HTTP client library and JSON library are
>> enough.
>> 
>> Indeed. Once you have good libraries for JSON and HTTP, it's rather easy
>> to write your own CouchDB library.
>> 
>> For instance, here is mine, following the "data access object" design
>> pattern, with a focus on read performance (cached bulk GET), easy
>> navigation in views and notifications on _changes:
>> 
>> 
>> https://github.com/Hypertopic/Porphyry/blob/master/src/org/hypertopic/RESTDatabase.java
>> 
>> https://github.com/Hypertopic/Porphyry/blob/master/src/org/hypertopic/RESTDatabaseTest.java
>> 
>> 
>> Regards,
>> 
>> Aurélien

Reply via email to