Ruby 获取所有可用的 DBI 数据库驱动 2015/10/25 16837 require 'dbi' DBI.available_drivers.each do |driver| puts "Driver: " + driver DBI.data_sources(driver).each do |dsn| puts " Datasource: " + dsn end end