渋谷.rb[:20120215] で Ramaze と Sequel について発表しました。ありがとうございました。 http://speakerdeck.com/u/kyanny/p/shibuya-rb-20120215-ramaze-sequel まとめだけ書くと、 Ramaze は覚えることが少ない・全容を把握しやすいのがよい Sequel は dataset がとてもよい。 SQL 的な「行の集合」を集合のまま扱えるので (行オブジェクトの配列ではなく) どちらも使い始めるまでの設定とか前提となるものをほとんど必要としないので、プロトタイプ作りとか、思いついて 10 分後には飽きてしまいそうな小さいコードをちゃちゃっと書くのに向いてると思いました (ちなみに一緒に参加した同僚は「むしろ二層のモデルの上層部分を dataset の表現力でカバーしたり DataMapper パターン
UPDATE: DataMapper 2 was renamed to Ruby Object Mapper (ROM). For more info check out rom-rb.org We have a lot of different Object-Relational Mapper implementations in Ruby (and a ton and a half of Mongo mappers ;)) and it’s probably a good thing. It seems like the only ORM that really matters right now is ActiveRecord although in “the background” we still have DataMapper and Sequel with growing c
General Info, Guides, Examples, and Tutorials README Cheat Sheet Dataset Filtering Advanced Associations Prepared Statements/Bound Variables Master/Slave Databases and Sharding Schema Modification Full API RDoc, Main Classes/Modules: Sequel Sequel::Database Sequel::Dataset Sequel::Model Sequel::Model::Associations Sequel::Model::Associations::EagerLoading Change Log Release Notes License External
Cheat Sheet Open a database require 'rubygems' require 'sequel' DB = Sequel.sqlite('my_blog.db') DB = Sequel.connect('postgres://user:password@localhost/my_db') DB = Sequel.postgres('my_db', :user => 'user', :password => 'password', :host => 'localhost') DB = Sequel.ado('mydb') Open an SQLite memory database Without a filename argument, the sqlite adapter will setup a new sqlite database in memory
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く