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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…