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

A behaviour to implement encoding and decoding 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 columns and rows with the format.

A callback to encode query parameters 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

A callback to decode columns and rows with the format.

Specs

encode(params :: list()) :: iodata()

A callback to encode query parameters with the format.

Specs

names() :: [name()]

A callback to return the names used for the format.