ClickHouse.Query (ClickHouse v0.9.2) View Source

A ClickHouse query.

Link to this section Summary

Link to this section Types

Specs

command() :: :create | :select | :insert | :alter | :unknown

Specs

t() :: %ClickHouse.Query{
  client: ClickHouse.client(),
  command: command(),
  encoded: binary() | nil,
  format: ClickHouse.format() | nil,
  interface: ClickHouse.interface() | nil,
  opts: term(),
  params: ClickHouse.params(),
  params_count: non_neg_integer(),
  statement: ClickHouse.statement()
}

Link to this section Functions

Specs

encode(t()) :: {:ok, t()} | {:error, ClickHouse.FormatError.t()}

Specs

get_statement(t()) :: binary()
Link to this function

new(client, statement, params \\ [], opts \\ [])

View Source

Specs

Link to this function

put_encoded(query, encoded)

View Source

Specs

put_encoded(t(), binary()) :: t()