Class: ActiveRecord::ConnectionAdapters::Clickhouse::IndexDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/clickhouse/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, name, expression, type, granularity, first:, after:, if_exists:, if_not_exists:) ⇒ IndexDefinition

Returns a new instance of IndexDefinition.



107
108
109
110
111
112
113
114
115
116
117
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 107

def initialize(table, name, expression, type, granularity, first:, after:, if_exists:, if_not_exists:)
  @table = table
  @name = name
  @expression = expression
  @type = type
  @granularity = granularity
  @first = first
  @after = after
  @if_exists = if_exists
  @if_not_exists = if_not_exists
end

Instance Attribute Details

#afterObject (readonly)

Returns the value of attribute after.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def after
  @after
end

#expressionObject (readonly)

Returns the value of attribute expression.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def expression
  @expression
end

#firstObject (readonly)

Returns the value of attribute first.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def first
  @first
end

#granularityObject (readonly)

Returns the value of attribute granularity.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def granularity
  @granularity
end

#if_existsObject (readonly)

Returns the value of attribute if_exists.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def if_exists
  @if_exists
end

#if_not_existsObject (readonly)

Returns the value of attribute if_not_exists.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def if_not_exists
  @if_not_exists
end

#nameObject (readonly)

Returns the value of attribute name.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def table
  @table
end

#typeObject (readonly)

Returns the value of attribute type.



105
106
107
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 105

def type
  @type
end