On 6/26/06, Charles O Nutter <[EMAIL PROTECTED]> wrote: > As I understand it, the biggest issue with getting automatic JDBC database > support in ActiveRecord is trying to figure out type mappings, yes?
Correct. > - There ought to be a way to do a "best guess" mapping across the board > based on Driver metadata. I understand that JDBC types often map to multiple > database types, but there ought to be additional metadata or a heuristic we > could use to improve our guesses. I've already written code that starts to do this. Of course, heuristics will always be sort of an 80/20 approach. That's why it's important to try out other db backends. > - As the adapter gets more widespread use, we'll certainly gather > information on more databases; we could in the future provide more specific > mappings for specific databases, or provide a configuration mechanism to > allow users to customize the process. Agree. This should be driven by demand so that we don't build out config that is not useful. Perhaps after trying several different databases an AR JDBC config will emerge that will allow folks to configure their specific database and yet fold that into the implementation after it's been shown to work. > Other than type mapping, what needs to be done with the adapter? What of > ActiveRecord doesn't it do or do well (for our simple case of MySQL with > hard-coded mappings)? The other thing I would like to do with it that I haven't tried for a while is to see if I can get the ActiveRecord unit tests working with it. It bombed pretty badly the last time I used it. The tests make heavy use of fixtures and I know yaml support has gotten better since then. /Nick Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel