Class: ActiveRecord::ConnectionAdapters::Clickhouse::IndexDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Clickhouse::IndexDefinition
- Defined in:
- lib/active_record/connection_adapters/clickhouse/schema_definitions.rb
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#first ⇒ Object
readonly
Returns the value of attribute first.
-
#granularity ⇒ Object
readonly
Returns the value of attribute granularity.
-
#if_exists ⇒ Object
readonly
Returns the value of attribute if_exists.
-
#if_not_exists ⇒ Object
readonly
Returns the value of attribute if_not_exists.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(table, name, expression, type, granularity, first:, after:, if_exists:, if_not_exists:) ⇒ IndexDefinition
constructor
A new instance of IndexDefinition.
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
#after ⇒ Object (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 |
#expression ⇒ Object (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 |
#first ⇒ Object (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 |
#granularity ⇒ Object (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_exists ⇒ Object (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_exists ⇒ Object (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 |
#name ⇒ Object (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 |
#table ⇒ Object (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 |
#type ⇒ Object (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 |