Database Support HOWTOs

DataMapper Howtos

Howtos specific to DataMapper.

CouchDB

CouchDB is a document oriented database that doesn’t impose the constraints of schemas and fixed size fields on your data. It's a natural fit for semi-structured data, and hence, many web apps.

Integrating via RelaxDB

RelaxDB provides a Ruby interface to CouchDB. It offers a familiar idiom for specifying object relationships, and an elegant wrapper for CouchDB queries. The merb_relaxdb plugin offers an easy way to hook Merb and RelaxDB together.

Grab merb_relaxdb from github and install

$ git clone git://github.com/paulcarey/merb_relaxdb.git
$ cd merb_relaxdb
$ rake install

In your_merb_app/config/dependencies.rb add

dependency "merb_relaxdb"

and in your_merb_app/config/init.rb add

use_orm :relaxdb

CouchRest

CouchRest is another popular Ruby library for CouchDB.

DataMapper CouchDB Adapter

This adapter is successfully used by many.

 
howto/database.txt · Last modified: 2008/10/18 10:07 by paulcarey