couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bradford Winfrey <>
Subject Re: ruby client
Date Wed, 31 Dec 2008 19:33:12 GMT
The DataMapper version is "ok" (I've hacked it a long time ago to work with 0.8.1), I've used
it before with success and it's handling of views is really nice (just DataMapper.auto_migrate!)
but I've really come to enjoy Paul Carey's RelaxDB -

Some things to try out when looking at the various libraries:

Does it handle attachments well?
Does it handle paging (in an intelligent manner)?
How does it handle my views when creating them or when I need to update them?
Can I easily relate a class to it?
Can I validate the contents of what I'm saving in a clear, concise manner?

That's my two cents...


From: Flinn Mueller <>
Sent: Wednesday, December 31, 2008 1:18:12 PM
Subject: Re: ruby client

did you look at datamapper?  I'm somewhat interested in datamapper but I'm leery of being
tied to a sql orm.

On Dec 31, 2008, at 12:51 PM, Paul Gross wrote:

>> qq, your choice of couch ruby client (and why)?
> I use CouchRest ( and have been very happy
with it.  It has both a low-level API:
>   response ={:key => 'value', 'another key' => 'another value'})
>        doc = @db.get(response['id'])
> and an ActiveRecord like model class:
>   class Course < CouchRest::Model
>      key_accessor :title
>      cast :questions, :as => ['Question']
>      cast :professor, :as => 'Person'
>      view_by :title
>      view_by :dept, :ducktype => true
>   end
> Paul Gross

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message