Class: ActiveRecord::ConnectionAdapters::Clickhouse::IndexDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Clickhouse::IndexDefinition
- Defined in:
- lib/active_record/connection_adapters/clickhouse/table_definition.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.
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
#after ⇒ Object (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 |
#expression ⇒ Object (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 |
#first ⇒ Object (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 |
#granularity ⇒ Object (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_exists ⇒ Object (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_exists ⇒ Object (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 |
#name ⇒ Object (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 |
#table ⇒ Object (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 |
#type ⇒ Object (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 |