On Friday, June 1, 2012 12:07:03 PM UTC-5, Joe Van Dyk wrote: > > Hi, > > There's been lots of activity in the postgresql world in the past couple > years. Arrays, hstores, ranges, json, etc. AR's postgresql adapter in 4.0 > will have support for mapping ruby types to custom postgresql types ( > https://github.com/rails/rails/pull/4775). > > I've noticed that sequel, AR's postgresql adapter, and > jdbc-activerecord-postgres all contain similar, but different parsers for > handling those postgresql datatypes. Each of the ORMs have their own > plugins for arrays, hstores, etc. > > > https://github.com/jruby/activerecord-jdbc-adapter/blob/master/lib/arjdbc/postgresql/adapter.rb > > https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L119 > > https://github.com/jeremyevans/sequel/blob/master/lib/sequel/adapters/postgres.rb#L86 > > It seems like having a single gem for handling the postgresql parser code > would be helpful. Maybe this could be done before ActiveRecord 4.0? >
A separate gem would be great and probably the best for non-AR database adapters. From my standpoint as ar-jdbc maintainer I would love it if the AR postgresql adapter's methods were simply defined in a module and included so I could easily reuse them in AR-JDBC rather than having to copy them in all the time. /Nick -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/nNcnZZSVKnYJ. 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/sequel-talk?hl=en.
