Kosuke Asami
null+****@clear*****
Tue Jul 16 14:37:35 JST 2013
Kosuke Asami 2013-07-16 14:37:35 +0900 (Tue, 16 Jul 2013) New Revision: 582cebf5484376488fdf52c3c10d65bac5d39f1e https://github.com/groonga/fluent-plugin-droonga/commit/582cebf5484376488fdf52c3c10d65bac5d39f1e Message: column_create: extract a method that defines column TODO: Add a method that defines index column Modified files: lib/droonga/plugin/groonga/column_create.rb Modified: lib/droonga/plugin/groonga/column_create.rb (+9 -1) =================================================================== --- lib/droonga/plugin/groonga/column_create.rb 2013-07-16 14:33:38 +0900 (277ef0d) +++ lib/droonga/plugin/groonga/column_create.rb 2013-07-16 14:37:35 +0900 (b304da4) @@ -29,6 +29,15 @@ module Droonga command_class = Groonga::Command.find("column_create") @command = command_class.new("column_create", request) + if****@comma*****_index? + # TODO: define_index + else + define_column + end + end + + private + def define_column table_name = @command["table"] column_name = @command["name"] column_type = @command["type"] @@ -42,7 +51,6 @@ module Droonga [true] end - private def create_column_options options = {} create_column_options_flags(options) -------------- next part -------------- HTML����������������������������...Download