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

A behaviour to implement data formatting of ClickHouse queries and results.

Link to this section Summary

Link to this section Callbacks

Specs

decode(result :: ClickHouse.Result.t()) ::
  {:ok, ClickHouse.Result.t()} | {:error, ClickHouse.FormatError.t()}

Specs

encode(query :: ClickHouse.Query.t()) ::
  {:ok, ClickHouse.Query.t()} | {:error, ClickHouse.FormatError.t()}