Skip to content

mkrentovskiy/clickhouse-client-erl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang client library for ClickHouse

Strart with

1> clickhouse:make_pool(default, #{ url => "http://127.0.0.1:8123/?database=default", user => "default", password => "" }, 2, 8).                     
{ok,<0.273.0>}
2> clickhouse:query(default, <<"SELECT 1;">>).
{ok,#{<<"connection">> => <<"Keep-Alive">>,
      <<"content-type">> =>
          <<"text/tab-separated-values; charset=UTF-8">>,
      <<"date">> => <<"Tue, 23 Nov 2021 15:29:00 GMT">>,
      <<"keep-alive">> => <<"timeout=3">>,
      <<"transfer-encoding">> => <<"chunked">>,
      <<"x-clickhouse-format">> => <<"TabSeparated">>,
      <<"x-clickhouse-query-id">> =>
          <<"5c5eb581-cf6d-4858-b287-c1596616a31c">>,
      <<"x-clickhouse-server-display-name">> =>
          <<"localhost">>,
      <<"x-clickhouse-summary">> =>
          <<"{\"read_rows\":\"0\",\"read_bytes\":\"0\",\"written_rows\":\"0\",\"written_bytes\":\"0\",\"total_rows_to_read\":\"0\"}">>,
      <<"x-clickhouse-timezone">> => <<"Etc/UTC">>},
    <<"1\n">>}

About

A Erlang client library for ClickHouse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 95.8%
  • Makefile 4.2%