Module: ActiveRecord::ConnectionAdapters::Clickhouse::Quoting::ClassMethods

Defined in:
lib/active_record/connection_adapters/clickhouse/quoting.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#quote_column_name(name) ⇒ Object



8
9
10
# File 'lib/active_record/connection_adapters/clickhouse/quoting.rb', line 8

def quote_column_name(name)
  name.to_s.include?('.') ? "`#{name}`" : name.to_s
end

#quote_table_name(name) ⇒ Object



12
13
14
# File 'lib/active_record/connection_adapters/clickhouse/quoting.rb', line 12

def quote_table_name(name)
  name.to_s
end