Mysql Library for Ruby

Mysql2 is a Mysql library for Ruby that aims to serve the
use-case of connecting, querying and iterating on results. It uses
encoding-aware MySQL API calls wherever possible, and leverages the
MySQL C API’s non-blocking function mysql_send_query for all
queries. The Mysql2 EventMachine API allows async queries to be
made using EventMachine, while specifying callbacks for success or
failure.