Class: Groonga::SchemaDumper

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/dumper.rb

Overview

スキーマの内容をRubyスクリプトまたはgrn式形式の文字列と して出力するクラス。

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SchemaDumper

Returns a new instance of SchemaDumper



146
147
148
# File 'lib/groonga/dumper.rb', line 146

def initialize(options={})
  @options = (options || {}).dup
end

Instance Method Details

#dumpObject



150
151
152
153
154
# File 'lib/groonga/dumper.rb', line 150

def dump
  run do |syntax|
    syntax.dump
  end
end

#dump_index_columnsObject



180
181
182
183
184
# File 'lib/groonga/dumper.rb', line 180

def dump_index_columns
  run do |syntax|
    syntax.dump_index_columns
  end
end

#dump_reference_columnsObject



168
169
170
171
172
# File 'lib/groonga/dumper.rb', line 168

def dump_reference_columns
  run do |syntax|
    syntax.dump_reference_columns
  end
end

#dump_tablesObject



156
157
158
159
160
# File 'lib/groonga/dumper.rb', line 156

def dump_tables
  run do |syntax|
    syntax.dump_tables
  end
end

#have_index_columns?Boolean

Returns:

  • (Boolean)


174
175
176
177
178
# File 'lib/groonga/dumper.rb', line 174

def have_index_columns?
  run do |syntax|
    syntax.have_index_columns?
  end
end

#have_reference_columns?Boolean

Returns:

  • (Boolean)


162
163
164
165
166
# File 'lib/groonga/dumper.rb', line 162

def have_reference_columns?
  run do |syntax|
    syntax.have_reference_columns?
  end
end