Class: Droonga::Plugins::Groonga::ColumnCreate::Command

Inherits:
GenericCommand
  • Object
show all
Defined in:
lib/droonga/plugins/groonga/column_create.rb

Instance Method Summary collapse

Methods inherited from GenericCommand

#execute, #initialize

Constructor Details

This class inherits a constructor from Droonga::Plugins::Groonga::GenericCommand

Instance Method Details

#process_request(request) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/droonga/plugins/groonga/column_create.rb', line 26

def process_request(request)
  command_class = ::Groonga::Command.find("column_create")
  @command = command_class.new("column_create", request)

  table_name = valid_table_name("table", :error_result => false)

  if @command.column_index?
    define_index(table_name)
  else
    define_column(table_name)
  end
end