7

I'd like to write my own ActiveRecord adapter for the HBase database since none currently exist. However, I've been searching for a while online and can't find any good resources on how to write an ActiveRecord adapter. How would you go about doing this, or are there any links you can recommend?

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
Chris Bunch
  • 87,773
  • 37
  • 126
  • 127

2 Answers2

12

I think the easiest thing to do is go to the source.

The rails trunk has adapters for mysql, postgres and sqlite, which you could base your adapter on. abstract_adapter.rb is pretty short and fairly straight forward to implement.

Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
1

You should check out Rhino.

gsiener
  • 863
  • 2
  • 8
  • 12