clickhousex v0.4.0 Clickhousex.Codec behaviour View Source

Link to this section Summary

Link to this section Types

Link to this type param_replacements() View Source
param_replacements() :: iodata()
Link to this type select_response() View Source
select_response() :: %{
  column_names: [String.t()],
  rows: [row()],
  row_count: non_neg_integer()
}

Link to this section Callbacks

Link to this callback decode(any) View Source
decode(any()) :: {:ok, select_response()} | {:error, any()}
Link to this callback encode(query, param_replacements, list) View Source
encode(query(), param_replacements(), [param()]) :: iodata()
Link to this callback request_format() View Source
request_format() :: String.t()
Link to this callback response_format() View Source
response_format() :: String.t()