Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 73412 invoked from network); 25 Aug 2008 20:55:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 20:55:13 -0000 Received: (qmail 6420 invoked by uid 500); 25 Aug 2008 20:55:11 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 6383 invoked by uid 500); 25 Aug 2008 20:55:11 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 6372 invoked by uid 99); 25 Aug 2008 20:55:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 13:55:11 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nexneo@me.com designates 17.148.16.99 as permitted sender) Received: from [17.148.16.99] (HELO asmtpout024.mac.com) (17.148.16.99) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 20:54:11 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from 59.161.147.153.hyd-cdma.vsnl.net.in ([59.161.147.153]) by asmtp024.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K6600IHKCKM4X70@asmtp024.mac.com> for couchdb-user@incubator.apache.org; Mon, 25 Aug 2008 13:50:56 -0700 (PDT) Message-id: From: Niket Patel To: couchdb-user@incubator.apache.org In-reply-to: <13ae4dd50808251322x585f9a0dq43b09fd40bdeb547@mail.gmail.com> Subject: Re: RelaxDB released Date: Tue, 26 Aug 2008 02:20:45 +0530 References: <13ae4dd50808251322x585f9a0dq43b09fd40bdeb547@mail.gmail.com> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org Thanks Paul, Just looked at documentation not code. but, Looks promising, specially uploading views using convention. I will try to use this in current project. On Aug 26, 2008, at 1:52 AM, Paul Carey wrote: > RelaxDB provides a(nother) Ruby interface to CouchDB. It takes its > inspiration from ActiveRecord and offers a simple idiom for specifying > object relationships. The underlying objects are persisted to CouchDB. > Combined with the schema free nature of CouchDB, RelaxDB's current > strength lies in quick prototyping of object models. > > More details on github > http://github.com/paulcarey/relaxdb/wikis > > A basic merb plugin, merb_relaxdb is also available on github. > > Paul > > ==== > > class Post < RelaxDB::Document > property :created_at > property :contents > > belongs_to :writer > has_many :ratings, :class => "Rating" > end > > class Rating < RelaxDB::Document > property :thumbs_up, :validator => lambda { |tu| tu < 3 } > > belongs_to :post > belongs_to :critic > end > > post.ratings << Rating.new(:critic => gromit) > Rating.all.sorted_by(:thumbs_up) { |q| q.key(2).count(1) }