Module: Clickhouse::Connection::Client
- Included in:
- Clickhouse::Connection
- Defined in:
- lib/clickhouse/connection/client.rb
Instance Method Summary collapse
Instance Method Details
#connect! ⇒ Object
5 6 7 8 9 |
# File 'lib/clickhouse/connection/client.rb', line 5 def connect! return if connected? ensure_authentication ping! end |
#connected? ⇒ Boolean
11 12 13 |
# File 'lib/clickhouse/connection/client.rb', line 11 def connected? instance_variables.include?(:@client) && !!@client end |
#get(query) ⇒ Object
15 16 17 |
# File 'lib/clickhouse/connection/client.rb', line 15 def get(query) request(:get, query) end |
#post(query, body = nil) ⇒ Object
19 20 21 |
# File 'lib/clickhouse/connection/client.rb', line 19 def post(query, body = nil) request(:post, query, body) end |