Closed alexanderedge closed 11 years ago
Hi there!
You can use the code in orm_adapter itself as an example of how to do it. Look at lib/orm_adapter/adapters/active_record.rb
and the associated specs as an example.
You might want to try forking orm_adapter, and adding your adapter into your version of orm_adapter, then extracting it when its specs are passing. I just googled and found this recent orm_adapter plugin which could serve as an example: https://github.com/arukoh/orm_adapter-dynamoid
Hi Ian,
Thanks a lot! I'll take a look at that example.
Alex
Alexander Edge iOS Developer
+44 (0) 7732 077337 alexedge.co.uk (http://www.alexedge.co.uk) @alexedge (https://twitter.com/alexedge)
On Friday, 30 August 2013 at 14:48, Ian White wrote:
Hi there! You can use the code in orm_adapter itself as an example of how to do it. Look at lib/orm_adapter/adapters/active_record.rb and the associated specs as an example. You might want to try forking orm_adapter, and adding your adapter into your version of orm_adapter, then extracting it when it's specs are passing. I just googled and found this recent orm_adapter plugin which could server as an example: https://github.com/arukoh/orm_adapter-dynamoid
— Reply to this email directly or view it on GitHub (https://github.com/ianwhite/orm_adapter/issues/29#issuecomment-23562062).
Hi there,
You've mentioned in #25 that a gem should be created to add support for other databases. Are you able to provide an example of how this can be done? I'm trying with CouchRest Model but am getting te following error:
cannot load such file -- orm_adapter/adapters/couchrest_model (LoadError)