Astarte.Core.Mapping.ValueType (astarte_core v1.3.0)

Copy Markdown View Source

Summary

Types

t()

@type t() ::
  :double
  | :integer
  | :boolean
  | :longinteger
  | :string
  | :binaryblob
  | :datetime
  | :doublearray
  | :integerarray
  | :booleanarray
  | :longintegerarray
  | :stringarray
  | :binaryblobarray
  | :datetimearray

Functions

cast!(value)

dump!(value_type)

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.

from_int(int)

to_int(value_type)

validate_value(expected_type, value)