Ruby 获取所有可用的 DBI 数据库驱动

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

require 'dbi'

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