Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为HBase 数据库编写自己的ActiveRecord 适配器,因为目前不存在。但是,我在网上搜索了一段时间,找不到任何关于如何编写 ActiveRecord 适配器的好资源。你会怎么做,或者你有什么可以推荐的链接?
我认为最简单的方法是去源头。
rails trunk 有 mysql、postgres 和 sqlite 的适配器,您可以在这些适配器上使用。abstract_adapter.rb很短,实施起来也很直接。
abstract_adapter.rb
你应该看看犀牛。