Class: GroongaSchema::Differ

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga-schema/differ.rb

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ Differ

Returns a new instance of Differ.

Parameters:

  • from (Schema)

    The original schema.

  • to (Schema)

    The changed schema.



23
24
25
26
# File 'lib/groonga-schema/differ.rb', line 23

def initialize(from, to)
  @from = from
  @to = to
end

Instance Method Details

#diffObject



28
29
30
31
32
33
34
# File 'lib/groonga-schema/differ.rb', line 28

def diff
  diff = Diff.new
  diff_plugins(diff)
  diff_tables(diff)
  diff_columns(diff)
  diff
end