2008-08-26 23:05:20 +00:00
|
|
|
== MySQLPlus
|
|
|
|
|
|
|
|
An enhanced MySQL database driver. With support for async operations and threaded database access.
|
|
|
|
|
2008-08-27 23:11:30 +00:00
|
|
|
== Building
|
|
|
|
|
|
|
|
gem build mysqlplus.gemspec
|
|
|
|
|
2008-08-28 16:32:41 +00:00
|
|
|
on OSX with the default mysql installed:
|
|
|
|
|
2008-08-29 18:22:52 +00:00
|
|
|
sudo gem install mysqlplus-0.1.0.gem -- --with-mysql-config
|
2008-08-28 16:32:41 +00:00
|
|
|
|
2008-08-27 23:11:30 +00:00
|
|
|
on OSX, with mysql installed by macports:
|
|
|
|
|
|
|
|
sudo gem install mysqlplus-0.1.0.gem -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
|
|
|
|
|
|
|
|
on OSX, with x86 mysql (NOT x86_64!) installed from mysql.com:
|
|
|
|
|
|
|
|
sudo env ARCHFLAGS="-arch i386" gem install mysqlplus-0.1.0.gem -- \
|
|
|
|
--with-mysql-dir=/usr/local/mysql \
|
|
|
|
--with-mysql-lib=/usr/local/mysql/lib \
|
|
|
|
--with-mysql-include=/usr/local/mysql/include
|
2009-01-31 20:15:37 +00:00
|
|
|
== 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.
|
2008-08-27 23:11:30 +00:00
|
|
|
|
2008-08-26 23:05:20 +00:00
|
|
|
=== Credits
|
|
|
|
|
2008-08-28 00:41:18 +00:00
|
|
|
Aman Gupta, for help in threading support and improved tests
|
2008-08-28 16:32:41 +00:00
|
|
|
Tomita Masahiro--since this is a fork of his already excellent mysql lib [http://www.tmtm.org/en/mysql/ruby].
|
|
|
|
Roger Pack, for helping in the file descriptor hunt :)
|
2008-09-05 19:54:28 +00:00
|
|
|
Lourens Naude for 1.9 integration help.
|
2008-08-26 23:05:20 +00:00
|
|
|
|
|
|
|
=== License
|
|
|
|
Ruby License, http://www.ruby-lang.org/en/LICENSE.txt.
|