Skip to content

Commit bc203da

Browse files
committed
Refactor Innodb::DataType; add SET/ENUM; fix DECIMAL
1 parent b04a009 commit bc203da

22 files changed

+714
-492
lines changed

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PATH
44
innodb_ruby (0.14.0)
55
bigdecimal (~> 3.1.8)
66
bindata (>= 1.4.5, < 3.0)
7+
csv (~> 3.3)
78
digest-crc (~> 0.4, >= 0.4.1)
89
getoptlong (~> 0.2.1)
910
histogram (~> 0.2)
@@ -14,6 +15,7 @@ GEM
1415
ast (2.4.2)
1516
bigdecimal (3.1.8)
1617
bindata (2.5.0)
18+
csv (3.3.0)
1719
diff-lcs (1.5.1)
1820
digest-crc (0.6.5)
1921
rake (>= 12.0.0, < 14.0.0)

innodb_ruby.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
2323

2424
s.add_dependency("bigdecimal", "~> 3.1.8")
2525
s.add_dependency("bindata", ">= 1.4.5", "< 3.0")
26+
s.add_dependency("csv", "~> 3.3")
2627
s.add_dependency("digest-crc", "~> 0.4", ">= 0.4.1")
2728
s.add_dependency("getoptlong", "~> 0.2.1")
2829
s.add_dependency("histogram", "~> 0.2")

lib/innodb.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ def self.debug=(value)
4545
require "innodb/page/sdi_blob"
4646
require "innodb/page/sys"
4747
require "innodb/page/undo_log"
48+
require "innodb/data_type"
49+
require "innodb/data_type/bit"
50+
require "innodb/data_type/blob"
51+
require "innodb/data_type/character"
52+
require "innodb/data_type/date"
53+
require "innodb/data_type/datetime"
54+
require "innodb/data_type/decimal"
55+
require "innodb/data_type/enum"
56+
require "innodb/data_type/floating_point"
57+
require "innodb/data_type/innodb_roll_pointer"
58+
require "innodb/data_type/innodb_transaction_id"
59+
require "innodb/data_type/integer"
60+
require "innodb/data_type/set"
61+
require "innodb/data_type/time"
62+
require "innodb/data_type/timestamp"
63+
require "innodb/data_type/year"
4864
require "innodb/record"
4965
require "innodb/field"
5066
require "innodb/space"

0 commit comments

Comments
 (0)