On Thursday, July 17, 2014 8:48:44 AM UTC-7, [email protected] wrote: > > > On Thursday, July 17, 2014 6:51:37 AM UTC-7, > > [email protected] wrote: > >> > >> Hi, I started migrating the OpenEdge adapter to a separate plugin and I > >> have a couple of questions. > >> > >> From a plugin I can register the JDBC subadapter by modifying > >> `Sequel::JDBC::DATABASE_SETUP`, but how could I go about registering > the > >> shared adapter for ODBC (there's a case statement and init code in > >> Sequel::ODBC::Database#adapter_initialize)? > >> > > > > If you are on ruby 2.0+, then overriding the method via Module#prepend > is > > the way to go. > > Unfortunately it looks like JRuby doesn't understand that yet. I might > just leave ODBC support out for now, I've no way of testing it anyway.
> > Note that I plan on making changes soon that will allow subadapters to > be > > picked up automatically even if external, similar to how regular > adapters > > are picked up. This should make things easier on you and other external > > adapter writers. > > Cool, yeah that would be very useful :) > OK, I've pushed a commit that does this: https://github.com/jeremyevans/sequel/commit/673bda5ec6a79c189dc37c03d191211e1701cc47 The commit includes changes to the odbc adapter as well, which should solve the odbc issue. Hopefully you can figure out how to set things up so it is loaded automatically. If not, please let me know. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
