Is there a easier way to output the contents of a Mysql::Result than
this command?
ActiveRecord::Base.connection.select_all(“show variables”).each {|r|
puts r[‘Variable_name’] + ": " + r[‘Value’] + “\n”}; nil
Thanks,
Mark
Is there a easier way to output the contents of a Mysql::Result than
this command?
ActiveRecord::Base.connection.select_all(“show variables”).each {|r|
puts r[‘Variable_name’] + ": " + r[‘Value’] + “\n”}; nil
Thanks,
Mark
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs