From 6e38bff28d6ca6bc403e7094024a97675f36cb28 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 9 Jul 2010 10:18:17 -0700 Subject: [PATCH] adding a class to wrap fields --- lib/mysql2.rb | 1 + lib/mysql2/field.rb | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 lib/mysql2/field.rb diff --git a/lib/mysql2.rb b/lib/mysql2.rb index 9fee43f..9e159f8 100644 --- a/lib/mysql2.rb +++ b/lib/mysql2.rb @@ -6,6 +6,7 @@ require 'mysql2/error' require 'mysql2/mysql2' require 'mysql2/client' require 'mysql2/result' +require 'mysql2/field' # = Mysql2 # diff --git a/lib/mysql2/field.rb b/lib/mysql2/field.rb new file mode 100644 index 0000000..4ca28ca --- /dev/null +++ b/lib/mysql2/field.rb @@ -0,0 +1,4 @@ +module Mysql2 + class Field < Struct.new(:name, :type) + end +end