Gem 对于简单的数据操作,orm_adapter 还是挺不错的

fredwu · June 12, 2012 · Last by fredwu replied at June 13, 2012 · 2436 hits

orm_adapter 支持 ActiveRecord, DataMapper, MongoID 和 MongoMapper: https://github.com/ianwhite/orm_adapter

等我的 #destroy PR (https://github.com/ianwhite/orm_adapter/pull/15)被 merge 后,就比较完善了。还缺 #update#save——但这两个比较难搞。

orm_adapter 应用实例—— https://github.com/fredwu/bustle

嘿,这个用在 Gem 里面兼容不容的 ORM 应该非常有用处吧 以前这样写

case GemName.orm
when :mongoid
  # ...
when :active_record
  # ...
end

devise 用了这个

API 全部搞定。0.1.0 版本发布啦!http://rubygems.org/gems/bustle

回错贴了 泪流满面。。。

You need to Sign in before reply, if you don't have an account, please Sign up first.