Class: Groonga::SchemaDumper
- Inherits:
-
Object
- Object
- Groonga::SchemaDumper
- Defined in:
- lib/groonga/dumper.rb
Overview
スキーマの内容をRubyスクリプトまたはgrn式形式の文字列と して出力するクラス。
Instance Method Summary collapse
-
#dump ⇒ Object
-
#dump_index_columns ⇒ Object
-
#dump_reference_columns ⇒ Object
-
#dump_tables ⇒ Object
-
#have_index_columns? ⇒ Boolean
-
#have_reference_columns? ⇒ Boolean
-
#initialize(options = {}) ⇒ SchemaDumper
constructor
A new instance of SchemaDumper.
Constructor Details
#initialize(options = {}) ⇒ SchemaDumper
Returns a new instance of SchemaDumper.
144 145 146 |
# File 'lib/groonga/dumper.rb', line 144 def initialize(={}) @options = ( || {}).dup end |
Instance Method Details
#dump ⇒ Object
148 149 150 151 152 |
# File 'lib/groonga/dumper.rb', line 148 def dump run do |syntax| syntax.dump end end |
#dump_index_columns ⇒ Object
178 179 180 181 182 |
# File 'lib/groonga/dumper.rb', line 178 def dump_index_columns run do |syntax| syntax.dump_index_columns end end |
#dump_reference_columns ⇒ Object
166 167 168 169 170 |
# File 'lib/groonga/dumper.rb', line 166 def dump_reference_columns run do |syntax| syntax.dump_reference_columns end end |
#dump_tables ⇒ Object
154 155 156 157 158 |
# File 'lib/groonga/dumper.rb', line 154 def dump_tables run do |syntax| syntax.dump_tables end end |
#have_index_columns? ⇒ Boolean
172 173 174 175 176 |
# File 'lib/groonga/dumper.rb', line 172 def have_index_columns? run do |syntax| syntax.have_index_columns? end end |
#have_reference_columns? ⇒ Boolean
160 161 162 163 164 |
# File 'lib/groonga/dumper.rb', line 160 def have_reference_columns? run do |syntax| syntax.have_reference_columns? end end |