ClickHouse.Query (ClickHouse v0.9.0) 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
Specs
new(ClickHouse.client(), ClickHouse.statement(), ClickHouse.params(), keyword()) :: t()