UUID5_Ecto_Type v1.0.3 UUID5

An Ecto type for UUIDs v5 strings.

Summary

Functions

Casts to UUID

Converts a string representing a UUID into a binary

Generates a version 5 (dns) UUID

Converts a binary UUID into a string

The Ecto type

Functions

cast(u)

Specs

cast(binary) :: {atom, binary}

Casts to UUID.

dump(uuid)

Specs

dump(String.t) :: binary | atom | {atom, map}

Converts a string representing a UUID into a binary.

generate()

Specs

generate :: String.t

Generates a version 5 (dns) UUID.

load(uuid)

Specs

load(binary | map) :: {atom, String.t} | atom

Converts a binary UUID into a string.

type()

Specs

type :: atom

The Ecto type.