View Source ClickHouse.DataType (ClickHouse v0.30.1)

Functions for working with ClickHouse data types.

Link to this section Summary

Functions

Encodes the provided data using the ClickHouse.DataType.Encodable protocol.

Converts the given internal type into an external representation.

Converts the given external type into an internal representation.

Link to this section Functions

@spec encode(any()) :: iodata()

Encodes the provided data using the ClickHouse.DataType.Encodable protocol.

@spec to_external(ClickHouse.data_type()) :: String.t()

Converts the given internal type into an external representation.

@spec to_internal(String.t()) :: ClickHouse.data_type()

Converts the given external type into an internal representation.