Skip to content

Instantly share code, notes, and snippets.

@omo
Created September 19, 2008 14:57
Show Gist options
  • Save omo/11598 to your computer and use it in GitHub Desktop.
Save omo/11598 to your computer and use it in GitHub Desktop.
class Mysql
def async_query(sql)
send_query(sql)
select [ (@sockets ||= {})[socket] ||= IO.new(socket) ], nil, nil, nil
get_result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment