I have no idea, however, I do know you will also need to write an
adapter that descends from
https://github.com/datamapper/dm-core/blob/master/lib/dm-core/adapters/abstract_adapter.rb
in order to user things like Model.all and the like. You can look at
the other dm-something-adapter repos for more examples of how to do
that.

On Aug 6, 1:50 pm, Abe Voelker <[email protected]> wrote:
> Greetings,
>
> I am really hoping to get support for a legacy database (called OpenEdge,
> formerly Progress) working with DataMapper.  I have a proprietary JDBC
> driver that I am planning on using; so far I have it working fine executing
> raw SQL from JRuby.
>
> To figure out how to do this, I've looked a little through the DM code, but
> as someone relatively new to Ruby / not smart I'm not 100% sure how to get
> started.  So far I'm thinking I have to write some type of Ruby wrapper for
> the JDBC driver, and then write some more Ruby that extends do_jdbc to get
> the DataObjects API implemented.
>
> I'm guessing that I could follow the route of the Derby
> driver<https://github.com/datamapper/do/tree/master/do_derby>as it
> looks simple enough for me to maybe grasp.
>
> If my assumptions are correct, then how would I get started wrapping the
> JDBC driver?  I noticed in the DataObjects repo this
> jdbc_drivers/README.developers<https://github.com/datamapper/do/blob/master/jdbc_drivers/README.deve...>file
> which states that "We now use the drivers bundled as Gems provided by
> the ActiveRecord-JDBC project. Only drivers that that project does not yet
> provide should be provided in this directory."  Does that mean that to get
> started I should follow the route of the adapters in this
> repo<https://github.com/nicksieger/activerecord-jdbc-adapter>
> ?
>
> Thanks!
> Abe

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to