ClickHouse.Interface.HTTP (ClickHouse v0.16.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 a query via HTTP.

Streams the next results of query 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.

Link to this function

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

View Source

Specs

stream(ClickHouse.Client.t(), ClickHouse.Query.t(), keyword()) ::
  {:ok, ClickHouse.Stream.t()} | {:error, ClickHouse.error()}

Streams a query via HTTP.

Link to this function

stream_next(client, stream)

View Source

Specs

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

Streams the next results of query via HTTP.