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.
146 147 148 |
# File 'lib/groonga/dumper.rb', line 146 def initialize(={}) @options = ( || {}).dup end |
Instance Method Details
#dump ⇒ Object
150 151 152 153 154 |
# File 'lib/groonga/dumper.rb', line 150 def dump run do |syntax| syntax.dump end end |
#dump_index_columns ⇒ Object
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_columns ⇒ Object
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_tables ⇒ Object
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
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
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 |