Clickhouse.Query (Clickhouse v0.2.4) 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(),
  opts: term(),
  params: Clickhouse.params(),
  params_count: non_neg_integer(),
  statement: Clickhouse.statement()
}

Link to this section Functions

Specs

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

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

View Source

Specs

Link to this function

put_encoded(query, encoded)

View Source

Specs

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