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

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/clickhouse/table_definition.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.



112
113
114
115
116
117
118
119
120
121
122
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 112

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.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def after
  @after
end

#expressionObject (readonly)

Returns the value of attribute expression.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def expression
  @expression
end

#firstObject (readonly)

Returns the value of attribute first.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def first
  @first
end

#granularityObject (readonly)

Returns the value of attribute granularity.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def granularity
  @granularity
end

#if_existsObject (readonly)

Returns the value of attribute if_exists.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def if_exists
  @if_exists
end

#if_not_existsObject (readonly)

Returns the value of attribute if_not_exists.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def if_not_exists
  @if_not_exists
end

#nameObject (readonly)

Returns the value of attribute name.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def table
  @table
end

#typeObject (readonly)

Returns the value of attribute type.



110
111
112
# File 'lib/active_record/connection_adapters/clickhouse/table_definition.rb', line 110

def type
  @type
end