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
ruote.rubyforge.org/ github.com/jmettraux/ruote-sequel
feedback
mailing list : groups.google.com/group/openwferu-users irc : irc.freenode.net #ruote