clickhousex v0.5.0 Clickhousex View Source
Clickhouse driver for Elixir.
This module handles the connection to Clickhouse, providing support for queries, connection backoff, logging, pooling and more.
Link to this section Summary
Functions
Connect to ClickHouse.
opts
expects a keyword list with zero or more of
Link to this section Types
Specs
conn() :: DBConnection.conn()
A connection process name, pid or reference.
A connection reference is used when making multiple requests to the same
connection, see transaction/3
.
Link to this section Functions
Specs
child_spec(Keyword.t()) :: Supervisor.Spec.spec()
Specs
query(DBConnection.conn(), binary(), list(), Keyword.t()) :: {:ok, iodata(), Clickhousex.Result.t()}
Specs
query!(DBConnection.conn(), binary(), list(), Keyword.t()) :: {iodata(), Clickhousex.Result.t()}
Specs
Connect to ClickHouse.
opts
expects a keyword list with zero or more of:
* `:scheme` - Scheme (:http | :https).
* default value: :http
* `:hostname` - The server hostname.
* default value: localhost
* `:database` - Database name.
* default value: "default"
* `:port` - The server port number.
* default value: 8123
* `:username` - Username.
* default value: empty
* `:password` - User's password.
* default value: empty