Clickhouse (Clickhouse v0.5.2) View Source
A Clickhouse client.
This currently represents an early work in progress.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Executes a query using a Clickhouse client.
Prepares a query for a Clickhouse client.
Prepares and executes a query using a Clickhouse client.
Starts a Clickhouse client.
Link to this section Types
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
execute(Clickhouse.Query.t()) :: {:ok, Clickhouse.Result.t()} | {:error, Clichouse.Error.t()}
Executes a query using a Clickhouse client.
Specs
prepare(client(), statement(), params(), keyword()) :: {:ok, Clickhouse.Query.t()} | {:error, Clickhouse.Error.t()}
Prepares a query for a Clickhouse client.
Specs
query(client(), statement(), params(), keyword()) :: {:ok, Clickhouse.Result.t()} | {:error, Clickhouse.Error.t()}
Prepares and executes a query using a Clickhouse client.
Specs
start_link(options()) :: Supervisor.on_start()
Starts a Clickhouse client.
Options
:client
- The name of the client - defaults to:default
.:interface
- The interface to use for queries - defaults toClickhouse.Interface.HTTP
.:interface_opts
- Additional keyword options to pass to the interface.:formats
- A list of formats available for encoding/decoding.