Closed kalw closed 12 years ago
Thanks for the schema example. I chose to remove the sequel/mysql example, since that's just an example of how to use the Sequel gem.
OK. For the record that' s just a dump from the (my)sql that the sequel setup did.
irb
1.9.3p0 :001 > require 'guillotine' => true
1.9.3p0 :002 > require 'sequel' => true
1.9.3p0 :003 > db = Guillotine::Adapters::SequelAdapter.new(Sequel.connect('mysql://user:passwd@myhost/mydb'))
=> #<Guillotine::Adapters::SequelAdapter:0x007fa1f1c884e0 @db=#<Sequel::MySQL::Database: "mysql://root@localhost/shorten_test">, @table=#<Sequel::MySQL::Dataset: "SELECT * FROM `urls`">>
1.9.3p0 :004 > db.setup => nil
here is a living example =)