Sha256: fa4d69b4fd55f1d3c279e2d7057b85d56ab6073b97585e8dd205f3df67c91dac

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

= ruote-sequel

Sequel storage implementation for ruote >= 2.2.0


== 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-sequel' # gem install ruote-sequel
  
  sequel = Sequel.connect('postgres://localhost/ruote_test')
  #sequel = Sequel.connect('mysql://root:root@localhost/ruote_test')
  
  engine = Ruote::Engine.new(
    Ruote::Worker.new(
      Ruote::Sequel::Storage.new(sequel)))

  # ...

To create the tables in the database :

  Ruote::Sequel.create_table($sequel, :re_create => true)


Tested with sequel 3.20.0, with the postgresql (pg 0.10.1) adapter.


== running tests

assuming you have

  ruote/
  ruote-sequel/

* unit tests :

get into ruote/ and do

  ruby test/unit/storage.rb -- --sequel

* functional tests :

get into ruote/ and do

  ruby test/functional/test.rb -- --sequel


== known issues

none


== license

MIT


== links

http://sequel.rubyforge.org/

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


== 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-sequel-2.2.0 README.rdoc