README.rdoc in ruote-dm-2.1.9 vs README.rdoc in ruote-dm-2.1.10
- old
+ new
@@ -4,10 +4,32 @@
ruote 2.1 extension for DataMapper (dm) persistence
== usage
-well...
+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