Class: MysqlWarmup::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/mysql_warmup/table.rb

Constant Summary collapse

DESC_TABLE_STRUCTURE =
{
  field:   0,
  type:    1,
  null:    2,
  key:     3,
  default: 4,
  extra:   5
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name, field_infos) ⇒ Table

Returns a new instance of Table.



14
15
16
17
18
# File 'lib/mysql_warmup/table.rb', line 14

def initialize(table_name, field_infos)
  @table_name  = table_name
  @field_infos = field_infos
  @indexes     = build_index
end

Instance Attribute Details

#indexesObject (readonly)

Returns the value of attribute indexes.



12
13
14
# File 'lib/mysql_warmup/table.rb', line 12

def indexes
  @indexes
end