UUID5_Ecto_Type v1.1.6 UUID5 View Source

An Ecto type for UUIDs v5 strings.

Link to this section Summary

Functions

Generates a loaded version of the data

Casts to UUID

Converts a string representing a UUID into a binary

Dictates how the type should be treated inside embeds

Checks if two terms are semantically equal

Generates a version 5 (dns) UUID

Generates a version 5 (dns) UUID without dashes

Converts a binary UUID into a string

The Ecto type

Link to this section Types

Link to this section Functions

Generates a loaded version of the data.

This is callback is invoked when a custom type is given to field with the :autogenerate flag.

Callback implementation for Ecto.Type.autogenerate/0.

Converts a string representing a UUID into a binary.

Dictates how the type should be treated inside embeds.

By default, the type is sent as itself, without calling dumping to keep the higher level representation. But it can be set to :dump so that it is dumped before being encoded.

Callback implementation for Ecto.Type.embed_as/1.

Checks if two terms are semantically equal.

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

Generates a version 5 (dns) UUID.

Generates a version 5 (dns) UUID without dashes.

Converts a binary UUID into a string.