Sha256: 67e7846b97413032320f336eb767713b76ea80cd9a4d1424ce3c873f48083764

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

= ruote-dm

ruote 2.1 extension for DataMapper (dm) persistence


== usage

This is how a ruote engine is setup with a ruote-dm storage (postgres) and a worker :

  require 'rubygems'
  require 'json' # gem install json
  require 'ruote'
  require 'ruote-dm' # gem install ruote-dm
  
  #DataMapper.setup(:default, 'sqlite3::memory:')
  #DataMapper.setup(:default, 'sqlite3:ruote_test.db')
  DataMapper.setup(:default, 'postgres://localhost/ruote_test')
  
  engine = Ruote::Engine.new(
    Ruote::Worker.new(
      Ruote::Dm::DmStorage.new(:default)))

  # ...

To create the tables in the database :

  Ruote::Dm::Document.auto_migrate!


Tested with dm 0.9.2 and dm 1.0.0, with the postgresql and the msyql adapters.


== running tests

assuming you have

  ruote/
  ruote-dm/

* unit tests :

get into ruote/ and do

  ruby test/unit/storage.rb --dm

* functional tests :

get into ruote/ and do

  ruby test/functional/test.rb --dm


== license

MIT


== links

http://datamapper.org/

http://ruote.rubyforge.org/
http://github.com/jmettraux/ruote-dm


== feedback

mailing list : http://groups.google.com/group/openwferu-users
irc : irc.freenode.net #ruote

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-dm-2.1.10 README.rdoc