Ecto v2.1.2 Ecto.UUID

An Ecto type for UUIDs strings.

Summary

Functions

Generates a version 4 (random) UUID in the binary format

Casts to UUID

Same as cast/1 but raises Ecto.CastError on invalid arguments

Converts a string representing a UUID into a binary

Generates a version 4 (random) UUID

Converts a binary UUID into a string

The Ecto type

Functions

bingenerate()

Generates a version 4 (random) UUID in the binary format.

cast(u)

Casts to UUID.

cast!(value)

Same as cast/1 but raises Ecto.CastError on invalid arguments.

dump(arg1)

Converts a string representing a UUID into a binary.

generate()

Generates a version 4 (random) UUID.

load(uuid)

Converts a binary UUID into a string.

type()

The Ecto type.