Kosuke Asami
null+****@clear*****
Wed Jan 13 17:20:49 JST 2016
Kosuke Asami 2013-07-23 17:09:49 +0900 (Tue, 23 Jul 2013) New Revision: 446ec642ba33cc699409982204e9573e358a77b6 https://github.com/groonga/groonga-command/commit/446ec642ba33cc699409982204e9573e358a77b6 Message: doc table_create: add predicates Modified files: lib/groonga/command/table-create.rb Modified: lib/groonga/command/table-create.rb (+15 -0) =================================================================== --- lib/groonga/command/table-create.rb 2013-07-23 16:24:03 +0900 (b1fb11f) +++ lib/groonga/command/table-create.rb 2013-07-23 17:09:49 +0900 (6566670) @@ -39,22 +39,37 @@ module Groonga @flags ||= (self[:flags] || "").split(/\s*\|\s*/) end + # @return [Boolean] true if "TABLE_NO_KEY" is specified in {#flags}, + # false otherwise. + # @since 1.0.3 def table_no_key? flags.include?("TABLE_NO_KEY") end + # @return [Boolean] true if "TABLE_HASH_KEY" is specified in {#flags}, + # false otherwise. + # @since 1.0.3 def table_hash_key? flags.include?("TABLE_HASH_KEY") end + # @return [Boolean] true if "TABLE_PAT_KEY" is specified in {#flags}, + # false otherwise. + # @since 1.0.3 def table_pat_key? flags.include?("TABLE_PAT_KEY") end + # @return [Boolean] true if "TABLE_DAT_KEY" is specified in {#flags}, + # false otherwise. + # @since 1.0.3 def table_dat_key? flags.include?("TABLE_DAT_KEY") end + # @return [Boolean] true if "KEY_WITH_SIS" is specified in {#flags}, + # false otherwise. + # @since 1.0.3 def key_with_sis? flags.include?("KEY_WITH_SIS") end -------------- next part -------------- HTML����������������������������... Télécharger