From ed62fe51c36d91d33acfe11257aea777ae32435b Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Fri, 2 Apr 2010 16:14:16 -0700 Subject: [PATCH] initial lib dir stuff --- lib/mysql2.rb | 11 +++++++++++ lib/mysql2/mysql_gem.rb | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 lib/mysql2.rb create mode 100644 lib/mysql2/mysql_gem.rb diff --git a/lib/mysql2.rb b/lib/mysql2.rb new file mode 100644 index 0000000..bdf43fd --- /dev/null +++ b/lib/mysql2.rb @@ -0,0 +1,11 @@ +# encoding: UTF-8 +require 'mysql2_ext' + +# = Mysql2 +# +# A modern MySQL client library for Ruby, binding to libmysql +class Mysql2 + VERSION = "0.0.1" + + +end \ No newline at end of file diff --git a/lib/mysql2/mysql_gem.rb b/lib/mysql2/mysql_gem.rb new file mode 100644 index 0000000..20118fe --- /dev/null +++ b/lib/mysql2/mysql_gem.rb @@ -0,0 +1,14 @@ +# encoding: UTF-8 +require 'mysql2' unless defined? Mysql2 + +class Mysql2 + class Result + def each_hash(&block) + each(&block) + end + + def free + # no-op + end + end +end \ No newline at end of file