View Source Rolex.EctoTypes.MappedUUID (Rolex v0.1.1)
Custom type to support persisting special atoms as specific "magic" UUIDs.
Options:
* `values` - maps atoms to the uuids that represent them in the database;
e.g. `[admin: "00000000-0000-0000-0000-000000000000"]`
Summary
Functions
Callback implementation for Ecto.ParameterizedType.cast/2
.
Callback implementation for Ecto.ParameterizedType.dump/3
.
Callback implementation for Ecto.ParameterizedType.init/1
.
Callback implementation for Ecto.ParameterizedType.load/3
.
Callback implementation for Ecto.ParameterizedType.type/1
.
Types
@type t() :: Ecto.Type.t()
Functions
Callback implementation for Ecto.ParameterizedType.cast/2
.
Callback implementation for Ecto.ParameterizedType.dump/3
.
Callback implementation for Ecto.ParameterizedType.init/1
.
Callback implementation for Ecto.ParameterizedType.load/3
.
Callback implementation for Ecto.ParameterizedType.type/1
.