From 3198fc25e7fd1e7c98d3bc3f4c83bfa4d2335acf Mon Sep 17 00:00:00 2001 From: Roger Pack Date: Sat, 31 Jan 2009 20:15:37 +0000 Subject: [PATCH] add docu on how to use within rails--hopefully this is right --- README | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README b/README index e3691ff..b6d204e 100644 --- a/README +++ b/README @@ -20,6 +20,14 @@ An enhanced MySQL database driver. With support for async operations and threade --with-mysql-dir=/usr/local/mysql \ --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include +== 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