Class: GDK::Clickhouse

Inherits:
Object
  • Object
show all
Defined in:
lib/gdk/clickhouse.rb

Overview

Provides ClickHouse utility methods

Instance Method Summary collapse

Instance Method Details

#client_cmd(args = []) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/gdk/clickhouse.rb', line 6

def client_cmd(args = [])
  config = GDK.config.clickhouse

  cmd = [config.bin.to_s]
  cmd << 'client'
  cmd << "--port=#{config.tcp_port}"
  (cmd + args).flatten
end