Class: ClickhouseRuby::ActiveRecord::TableOptionsExtractor
- Inherits:
-
Object
- Object
- ClickhouseRuby::ActiveRecord::TableOptionsExtractor
- Defined in:
- lib/clickhouse_ruby/active_record/schema_dumper.rb
Overview
Extracts ClickHouse-specific table options
Instance Method Summary collapse
-
#extract ⇒ Hash
Extract table options from system.tables.
-
#initialize(connection, table_name) ⇒ TableOptionsExtractor
constructor
A new instance of TableOptionsExtractor.
Constructor Details
#initialize(connection, table_name) ⇒ TableOptionsExtractor
Returns a new instance of TableOptionsExtractor.
228 229 230 231 |
# File 'lib/clickhouse_ruby/active_record/schema_dumper.rb', line 228 def initialize(connection, table_name) @connection = connection @table_name = table_name end |
Instance Method Details
#extract ⇒ Hash
Extract table options from system.tables
236 237 238 239 240 241 |
# File 'lib/clickhouse_ruby/active_record/schema_dumper.rb', line 236 def extract row = return {} unless row (row) end |