Using

to use within rails
add require 'mysqlplus' to the top of environment.rb
this instantiates the Mysql class that you can use.
and it will automagically use async_query instead of query, so it's a drop in replacement.
Same with other scripts that want to use it--just require 'mysqlplus' BEFORE you require 'mysql' and it will
load the asynchronous version, then ignore the sequent require 'mysql' call.

Credits

Aman Gupta, for help in threading support and improved tests Tomita
Masahiro–since this is a fork of his already excellent mysql lib [www.tmtm.org/en/mysql/ruby].
Roger Pack, for helping in the file descriptor hunt :) Lourens Naude for
1.9 integration help.