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