ClickHouse.Query (ClickHouse v0.12.0) View Source

A ClickHouse query.

Link to this section Summary

Types

The type of command being exectued in the query.

t()

A ClickHouse query

Functions

Encodes a ClickHouse query.

Creates a new ClickHouse query.

Link to this section Types

Specs

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

The type of command being exectued in the query.

Specs

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

A ClickHouse query

Link to this section Functions

Specs

encode(t()) :: t()

Encodes a ClickHouse query.

Link to this function

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

View Source

Specs

Creates a new ClickHouse query.