# File lib/dbd_msql/Msql.rb, line 50 def connect(dbname, user, auth, attr) # connect to database hash = Utils.parse_params(dbname) if hash['database'].nil? raise DBI::InterfaceError, "must specify database" end #hash['host'] ||= 'localhost' handle = ::Msql.connect(hash['host'], hash['database']) return Database.new(handle, attr) rescue MyError => err raise DBI::DatabaseError.new(err.message) end