Sha256: bafbd0253544928761292755d314ed088bbf4ce14ac31af2e031cbca36424483

Contents?: true

Size: 1.98 KB

Versions: 4

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module Elasticsearch
      # interlaced / nested definition to handle multiple grouped definitions
      InterlacedUpdateTableDefinition = Struct.new(:name, :definition)

      # mapping definitions
      AddMappingDefinition    = Struct.new(:items) # composite
      ChangeMappingDefinition = Struct.new(:items) # composite
      ChangeMetaDefinition    = Struct.new(:items) # composite

      # setting definitions
      AddSettingDefinition    = Struct.new(:items) # composite
      ChangeSettingDefinition = Struct.new(:items) # composite
      DeleteSettingDefinition = Struct.new(:items) # composite

      # alias definitions
      AddAliasDefinition    = Struct.new(:item) # single
      ChangeAliasDefinition = Struct.new(:item) # single
      DeleteAliasDefinition = Struct.new(:items) # composite
    end
  end
end

# WARNING: the loading order is mandatory and must not be changed
# ALSO: the requirements have to be below the upper definitions
require 'active_record/connection_adapters/elasticsearch/schema_definitions/attribute_methods'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/column_methods'

require 'active_record/connection_adapters/elasticsearch/schema_definitions/table_alias_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/table_mapping_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/table_setting_definition'

require 'active_record/connection_adapters/elasticsearch/schema_definitions/table_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/create_table_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/update_table_definition'
require 'active_record/connection_adapters/elasticsearch/schema_definitions/clone_table_definition'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elasticsearch_record-1.2.4 lib/active_record/connection_adapters/elasticsearch/schema_definitions.rb
elasticsearch_record-1.2.3 lib/active_record/connection_adapters/elasticsearch/schema_definitions.rb
elasticsearch_record-1.2.1 lib/active_record/connection_adapters/elasticsearch/schema_definitions.rb
elasticsearch_record-1.2.0 lib/active_record/connection_adapters/elasticsearch/schema_definitions.rb