I'm currently trying to figure out how to get the username as a ruby variable however I end up getting the following
{"username"=>"test"}
I only want the username text in this case it is test.
client = Mysql2::Client.new(:host => "localhost", :username => "root", :password => "", :database =>"test")
results = client.query("SELECT username FROM accounts").each do |row|
puts row [0]
end