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

Types

Functions

Callback implementation for Ecto.ParameterizedType.cast/2.

Link to this function

dump(value, dumper, params)

View Source

Callback implementation for Ecto.ParameterizedType.dump/3.

Callback implementation for Ecto.ParameterizedType.init/1.

Link to this function

load(value, loader, map)

View Source

Callback implementation for Ecto.ParameterizedType.load/3.

Callback implementation for Ecto.ParameterizedType.type/1.