ClickHouse.Interface.HTTP (ClickHouse v0.21.0) View Source

An interface to interact with a ClickHouse server via HTTP.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Executes a query via HTTP.

Starts the HTTP network interface.

Streams the next results of a query via HTTP.

Starts a query result stream via HTTP.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

execute(client, query, opts \\ [])

View Source

Specs

Executes a query via HTTP.

Specs

start_link(keyword()) :: GenServer.on_start()

Starts the HTTP network interface.

Specs

stream_next(ClickHouse.Stream.t()) ::
  {:cont, ClickHouse.Stream.t()}
  | {:cont, ClickHouse.Stream.t(), iodata()}
  | {:halt, ClickHouse.Stream.t()}
  | {:error, ClickHouse.error()}

Streams the next results of a query via HTTP.

Specs

stream_start(ClickHouse.Stream.t()) ::
  {:ok, ClickHouse.Stream.t()} | {:error, ClickHouse.error()}

Starts a query result stream via HTTP.