Ecto.UUID

An Ecto type for UUIDs strings.

In contrast to the :uuid type, Ecto.UUID works with UUID as strings instead of binary data.

Source

Summary

blank?(value)

UUIDs are blank when given as strings and the string is blank

cast(u)

Casts to UUID

dump(arg1)

Converts an string representing a UUID into a binary

generate()

Generates a version 4 (random) UUID

load(arg1)

Converts a binary UUID into a string

type()

The Ecto primitive type

Functions

blank?(value)

UUIDs are blank when given as strings and the string is blank.

Source
cast(u)

Casts to UUID.

Source
dump(arg1)

Converts an string representing a UUID into a binary.

Source
generate()

Generates a version 4 (random) UUID.

Source
load(arg1)

Converts a binary UUID into a string.

Source
type()

The Ecto primitive type.

Source