Hi All,

Is there a way to determine the adapter type, as well as, other
information on the fly for a database? For example, can you make a
generic type connection to a database (assuming the db server port
and/or credentials are correct) and ask the db information about itself,
then based on the response configure the establish_connection
accordingly? The initial generic connection would not access the actual
data for ROR, but determine the information about the DB for use with
ROR.

One approach is to attempt to access the DB cycling through the
available adapter types until you get a response, however, this seems
clunky at best.

Any thoughts are appreciated.

thanks for any advice,
Rick
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to