Snowflex.Transport.Http.Type (Snowflex v1.2.1)
View SourceType conversions for REST transport.
Summary
Types
Date as {year, month, day}
Datetime
Types that can be encoded for Snowflake
Output value.
Time as {hour, minute, sec, usec}
Type information for encoding/decoding
Functions
Transforms REST API return values to Elixir representations.
Transforms input params for the REST API. The REST API expects values in JSON format with type specified.
Types
@type date() :: {1..9999, 1..12, 1..31}
Date as {year, month, day}
Datetime
@type encodeable() :: boolean() | nil | integer() | float() | atom() | Decimal.t() | Date.t() | Time.t() | DateTime.t() | NaiveDateTime.t() | binary()
Types that can be encoded for Snowflake
Output value.
@type time() :: {0..24, 0..60, 0..60, 0..999_999}
Time as {hour, minute, sec, usec}
@type type_info() :: map()
Type information for encoding/decoding
Functions
@spec decode(nil, term()) :: nil
@spec decode(binary(), %{type: type_info()} | %{column: binary()}) :: return_value()
Transforms REST API return values to Elixir representations.
@spec encode(encodeable(), term()) :: encoded_value()
Transforms input params for the REST API. The REST API expects values in JSON format with type specified.