ClickHouse.Format behaviour (ClickHouse v0.11.0) View Source

A behaviour to implement formatting of ClickHouse queries and results.

Link to this section Summary

Types

A ClickHouse format name.

t()

Input and output formats from ClickHouse

Callbacks

A callback to decode results from the format.

A callback to encode queries with the format.

A callback to return the names used for the format.

Link to this section Types

Specs

name() :: binary()

A ClickHouse format name.

Specs

t() :: module()

Input and output formats from ClickHouse

Link to this section Callbacks

Specs

decode(result :: ClickHouse.Result.t()) :: ClickHouse.Result.t()

A callback to decode results from the format.

Specs

encode(query :: ClickHouse.Query.t()) :: ClickHouse.Query.t()

A callback to encode queries with the format.

Specs

names() :: [name()]

A callback to return the names used for the format.