Class: ActiveRecord::ConnectionAdapters::ClickHouse::Column
- Inherits:
-
ConnectionAdapters::Column
- Object
- ConnectionAdapters::Column
- ActiveRecord::ConnectionAdapters::ClickHouse::Column
- Defined in:
- lib/active_record/connection_adapters/clickhouse/schema_definitions.rb
Overview
Carries the ClickHouse-only column metadata the dumper needs: compression codec and MATERIALIZED/ALIAS server-computed expressions.
Instance Attribute Summary collapse
-
#codec ⇒ Object
readonly
Returns the value of attribute codec.
-
#computed_expression ⇒ Object
readonly
Returns the value of attribute computed_expression.
-
#computed_kind ⇒ Object
readonly
Returns the value of attribute computed_kind.
Instance Method Summary collapse
-
#initialize(codec: nil, computed_kind: nil, computed_expression: nil) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(codec: nil, computed_kind: nil, computed_expression: nil) ⇒ Column
Returns a new instance of Column.
33 34 35 36 37 38 |
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 33 def initialize(*, codec: nil, computed_kind: nil, computed_expression: nil, **) @codec = codec @computed_kind = computed_kind @computed_expression = computed_expression super(*, **) end |
Instance Attribute Details
#codec ⇒ Object (readonly)
Returns the value of attribute codec.
31 32 33 |
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 31 def codec @codec end |
#computed_expression ⇒ Object (readonly)
Returns the value of attribute computed_expression.
31 32 33 |
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 31 def computed_expression @computed_expression end |
#computed_kind ⇒ Object (readonly)
Returns the value of attribute computed_kind.
31 32 33 |
# File 'lib/active_record/connection_adapters/clickhouse/schema_definitions.rb', line 31 def computed_kind @computed_kind end |