Get all available drivers : dbi drivers « Database « Ruby






Get all available drivers

require 'dbi'

DBI.available_drivers.each do |driver|
  puts "Driver: " + driver
  DBI.data_sources(driver).each do |dsn|
    puts "    Datasource: " + dsn
  end
end

 








Related examples in the same category