mysqlplus/lib/mysqlplus.rb
2008-09-30 16:59:51 -06:00

13 lines
194 B
Ruby

require 'mysql'
class Mysql
def async_query(sql, timeout = nil)
send_query(sql)
select [ (@sockets ||= {})[socket] ||= IO.new(socket) ], nil, nil, nil
get_result
end
end