Tempus.Ecto.Composite.Type (Tempus SQL v1.0.0-rc.0)

Copy Markdown View Source

Implements the Ecto.Type behaviour for a user-defined postgres composite type called :tempus_slot to store instances of Tempus.Slot.

This type is preferred over Tempus.Ecto.Map.Type unless there is no way to use composite types (e. g. MySQL database.)

Summary

Functions

cast(slot)

cast_type(opts \\ [])

embed_as(term)

equal?(s1, s2)